WO2017028669A1 - 一种二维码扫描补光方法及系统 - Google Patents

一种二维码扫描补光方法及系统 Download PDF

Info

Publication number
WO2017028669A1
WO2017028669A1 PCT/CN2016/091975 CN2016091975W WO2017028669A1 WO 2017028669 A1 WO2017028669 A1 WO 2017028669A1 CN 2016091975 W CN2016091975 W CN 2016091975W WO 2017028669 A1 WO2017028669 A1 WO 2017028669A1
Authority
WO
WIPO (PCT)
Prior art keywords
dimensional code
processor
code image
module
decoding
Prior art date
Application number
PCT/CN2016/091975
Other languages
English (en)
French (fr)
Inventor
蒋锦扬
叶芳耀
Original Assignee
福建联迪商用设备有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 福建联迪商用设备有限公司 filed Critical 福建联迪商用设备有限公司
Publication of WO2017028669A1 publication Critical patent/WO2017028669A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation

Definitions

  • the present invention relates to the field of two-dimensional code recognition technology, and in particular, to a two-dimensional code scanning light filling method and system.
  • the two-dimensional code that the current two-dimensional code scanning device needs to scan is mainly set on the screen or printed on paper. Since the screen itself will emit light, scanning the two-dimensional code set on the screen, if the two-dimensional code scanning device is turned on, will affect the image data read by the camera, resulting in decoding failure. For the two-dimensional code printed on the paper, since the paper itself does not emit light and it is not easy to emit light, scanning the two-dimensional code set on the paper requires opening the fill light to improve the sharpness of the image read by the camera. , improve the decoding success rate.
  • the Chinese invention patent of CN104200189A discloses a bar code scanning device and a bar code scanning device processing method, the processing method is: extracting at least one original image including the object; according to the at least one The original image generates depth information of the object; according to the depth information, the target information corresponding to the target object in the depth information is obtained; and the intensity of the controlled supplement light is emitted according to the depth information; The second image containing the object is captured by the intensity of the light; the target information is corresponding to the second image to obtain the target image; and the barcode is located according to the target image to analyze the information of the barcode.
  • the controlled illuminating light is emitted according to the corresponding depth information in the target information, so as to avoid the problem that the barcode is not easily recognized due to the reflected light being reflected, and the barcode recognition degree is improved, and at least one original image is needed to generate the depth information.
  • the method is more complicated.
  • the technical problem to be solved by the present invention is to provide a two-dimensional code scanning fill light method and system that can automatically adjust the fill light to close.
  • a two-dimensional code scanning fill light method is:
  • the S1 camera is snoring; the processor records the closed state of the current fill light;
  • the S2 processor collects and stores the two-dimensional code image data through the camera
  • the S3 processor decodes the two-dimensional code image. If the decoding is unsuccessful, the processor changes the closed state of the fill light, and proceeds to step S2 to continue execution.
  • the processor records the current state of the fill light and then scans the code, and if the processor decodes the two-dimensional code image successfully in the closed state of the current fill light, the process ends. If the decoding is unsuccessful, the closed state of the fill light is converted and then decoded.
  • the conversion method is: If the current fill light is turned on, the fill light is turned off, and if the current fill light is off, it will be filled. The light is turned on, and the processor automatically adjusts the closed state of the fill light to adapt to the requirement of the fill light in the environment where the two-dimensional code is located. For example, if the two-dimensional code is on the screen with brightness, the two-dimensional code is scanned.
  • the two-dimensional code decoding success rate is high; if the two-dimensional code is on the paper, the two-dimensional code is scanned and the camera's fill light is turned on, and the two-dimensional code is decoded.
  • the success rate is high, and the environment adaptability of the two-dimensional code scanner is strong, and the decoding success rate is high, which can improve the user's experience of scanning the two-dimensional code.
  • a two-dimensional code scanning fill light system comprising a camera, a fill light, a processor, the processor includes a first recording module, an acquisition module, a storage module, a decoding module, and a control module,
  • a first recording module configured to record a closed state of the current fill light
  • an acquisition module configured to acquire a two-dimensional code image by using a camera
  • a storage module configured to store a two-dimensional code image
  • a decoding module configured to decode a two-dimensional code image
  • a control module configured to control the closing of the fill light
  • both the camera and the fill light are connected to the processor
  • the camera and the fill light are both connected to the processor.
  • the beneficial effects of the present invention are: a camera for acquiring a two-dimensional code image, a fill light, and a light compensation for the camera, the processor controls the closing of the camera and the closing of the fill light, and the processor can store The camera captures the two-dimensional code image, and the processor controls the completion of the fill light according to the success or failure of decoding the two-dimensional code image, the system structure is reasonable, and the environment adaptability is strong.
  • FIG. 1 is a flowchart of a two-dimensional code scanning fill light method according to Embodiment 1 of the present invention
  • FIG. 2 is a flowchart of a two-dimensional code scanning light filling method according to Embodiment 2 of the present invention.
  • FIG. 3 is a structural block diagram of a two-dimensional code scanning fill light system according to Embodiment 3 of the present invention.
  • FIG. 4 is a structural block diagram of a two-dimensional code scanning fill light system according to Embodiment 4 of the present invention.
  • the most critical idea of the present invention is: When the beeping light is unsuccessfully decoded, the fill light is automatically turned off, or when the completion of the fill light is unsuccessful, the fill light is automatically decoded, so that The dimension code scanner can automatically adapt to the environment that needs the fill light and the need of the fill light to scan the code, improve the environment adaptability of the QR code scanner, and improve the user's experience of scanning the QR code.
  • a specific embodiment of the invention is:
  • a two-dimensional code scanning and filling method the method is:
  • the S1 camera is snoring; the processor records the closed state of the current fill light;
  • the S2 processor collects and stores the two-dimensional code image data through the camera
  • the S3 processor decodes the two-dimensional code image, and the processor decodes the two-dimensional code image. If the decoding is unsuccessful, the processor changes the closed state of the fill light, and proceeds to step S2 to continue execution.
  • step S1 the decoding period is preset, and the decoding time of the two-dimensional code image decoded by the processor that is picked up by the camera is recorded;
  • step S3 if the decoding is unsuccessful, it is compared whether the decoding period exceeds the decoding period;
  • step S1 the method further includes:
  • the processor collects and stores the two-dimensional code image
  • the processor analyzes the brightness of the stored two-dimensional code image
  • the processor controls the fill light to be turned off
  • the processor controls the fill light to slam.
  • the processor decodes the two-dimensional code image
  • the two-dimensional code image is collected once and the brightness of the two-dimensional code image is analyzed, and the brightness of the two-dimensional code image is used to determine whether to activate the fill light, and then
  • the decoding is further performed to improve the success rate of decoding success, save the success of the decoding of the two-dimensional code, and improve the user's experience of scanning the two-dimensional code.
  • the processor analyzes the brightness of the stored two-dimensional code image, specifically:
  • the processor collects the two-dimensional code image data in the YUV format through the camera;
  • Y refers to the luminance signal
  • U refers to the chrominance signal
  • V is separated, which has the advantage of strong compatibility, and stores the format of the acquired two-dimensional code image.
  • the processor it is convenient for the processor to directly obtain the brightness value of the two-dimensional code image, and the operation is convenient.
  • the processor analyzes the brightness of the stored two-dimensional code image, specifically:
  • the processor collects the two-dimensional code image data in the RGB format through the camera;
  • R refers to red
  • G refers to green
  • B refers to blue
  • the format of the acquired two-dimensional code image is stored as an image of RG B format, and then the brightness of the two-dimensional code image is calculated, and the data processing is convenient.
  • the first embodiment of the present invention is:
  • a two-dimensional code scanning fill light method is:
  • the S1 camera is snoring; the processor records the closed state of the current fill light;
  • the S2 processor collects and stores the two-dimensional code image data through the camera
  • the S3 processor decodes the two-dimensional code image. If the decoding is unsuccessful, the processor changes the closed state of the fill light, and proceeds to step S2 to continue execution.
  • the second embodiment of the present invention is:
  • a two-dimensional code scanning fill light method is:
  • the S1 camera is snoring; the processor records the closed state of the current fill light; presets a decoding period, and records a decoding time between the processor that is smashed from the camera to decode the two-dimensional code image;
  • S11 presets a brightness threshold, and the processor collects and stores the two-dimensional code image
  • the processor analyzes the brightness of the stored two-dimensional code image
  • the processor controls the fill light to be turned off
  • the processor controls the fill light to snoring
  • the S2 processor collects and stores the two-dimensional code image data through the camera
  • the S3 processor decodes the two-dimensional code image, and if the decoding is unsuccessful, compares whether the decoding period exceeds the decoding period. [0071] If the decoding period exceeds the decoding period, the camera is turned off;
  • the processor changes the closed state of the fill light, and proceeds to step S2 to continue the execution.
  • a two-dimensional code scanning and filling system including a camera 1, a fill light 2, and a processor 3.
  • the processor 3 includes a first recording module 4 and an acquisition module 5.
  • the first recording module 4 is configured to record a closed state of the current fill light 2;
  • the acquisition module 5 is configured to acquire a two-dimensional code image by using the camera 1;
  • a storage module 6 configured to store a two-dimensional code image
  • the decoding module 7 is configured to decode the two-dimensional code image
  • the control module 8 is configured to control the closing of the fill light 2;
  • Both the camera 1 and the fill light 2 are connected to the processor 3.
  • the processor 3 further includes a second recording module 10 and a comparison module 11.
  • the second recording module 10 is configured to record the decoding time of the processor 3 that is smashed from the camera 1 to decode the two-dimensional code image;
  • the comparison module 11 is configured to compare whether the decoding period exceeds a decoding period.
  • the second recording module 10 and the comparison module 11 are configured to determine whether the decoding period exceeds the decoding period, and is used to inform the user when the processor 3 cannot successfully decode, and the system setting is reasonable.
  • the analysis module 9 is further configured to analyze the brightness of the stored two-dimensional code image.
  • the setting analysis module 9 is configured to analyze the brightness of the two-dimensional code image by the processor 3, and then the processor 3 controls the closing of the fill light 2 according to the brightness of the two-dimensional code image, and the system setting is reasonable and improved.
  • the analysis module 9 includes a reading module 12 for reading the brightness value of the two-dimensional code image in the YUV format.
  • the format of the stored two-dimensional code image is YUV format
  • the brightness value of the two-dimensional code image in the YUV format is read by the reading module 12, and the system setting is reasonable and the operation is direct.
  • the analysis module 9 includes a calculation module 13 for calculating a brightness value of the two-dimensional code image by using the G and B color values of the two-dimensional code image in the RGB format.
  • the luminance values of the two-dimensional code image are calculated by the R, G, and B three-color values of the two-dimensional code image of the RGB format, and the system is configured.
  • the third embodiment of the present invention is:
  • a two-dimensional code scanning fill light system including a camera 1, a fill light 2, a processor 3, the processor 3 includes a first recording module 4, an acquisition module 5, a storage module 6, a decoding module 7, Control module 8, [0094]
  • the first recording module 4 is configured to record a closed state of the current fill light 2;
  • the acquisition module 5 is configured to acquire a two-dimensional code image by using the camera 1;
  • a storage module 6 configured to store a two-dimensional code image
  • decoding module 7 is configured to decode a two-dimensional code image
  • the control module 8 is configured to control the closing of the fill light 2;
  • Embodiment 4 of the present invention is:
  • a two-dimensional code scanning fill light system comprising a camera 1, a fill light 2, a processor 3, the processor 3 includes a first recording module 4, an acquisition module 5, a storage module 6, a decoding module 7, The control module 8, the second recording module 10, the comparison module 11, and the analysis module 9, the analysis module 9 includes a reading module 12 and a computing module 1
  • the first recording module 4 is configured to record a closed state of the current fill light 2;
  • the acquisition module 5 is configured to collect a two-dimensional code image by using the camera 1;
  • a storage module 6 configured to store a two-dimensional code image
  • decoding module 7 is configured to decode a two-dimensional code image
  • the control module 8 is configured to control the closing of the fill light 2;
  • the second recording module 10 is configured to record the decoding time of the processor 3 that is smashed from the camera 1 to decode the two-dimensional code image;
  • the comparing module 11 is configured to compare whether the decoding period exceeds a decoding period
  • an analysis module 9 configured to analyze brightness of the stored two-dimensional code image
  • the reading module 12 is configured to read a brightness value of the two-dimensional code image in the YUV format
  • the calculation module 13 is configured to calculate a brightness value of the two-dimensional code image by using three R, G, and B color values of the two-dimensional code image in the RGB format;
  • the present invention provides a two-dimensional code scanning fill light method and system, a camera 1 for acquiring a two-dimensional code image, a fill light 2, for the light compensation of the camera 1, the processor 3 collecting , storage, decoding 2D
  • the code image controls the closing of the camera 1 and the closing of the fill light 2.
  • the comparison module 11 is arranged in the processor 3 to determine whether the decoding period exceeds the decoding period
  • the analysis module 9 is arranged in the processor 3 to analyze the two-dimensional code image.
  • the brightness, the system setting is reasonable, can adapt to different two-dimensional code environment, the decoding success rate is high, and the user's QR code decoding experience is improved.

Landscapes

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

Abstract

本发明提供了一种二维码扫描补光方法及系统,所述方法为:S1摄像头打开;处理器记录当前补光灯的开闭状态;S2处理器通过摄像头采集二维码图像数据并存储;S3处理器解码二维码图像,若解码不成功,则处理器变换补光灯的开闭状态,转到步骤S2继续执行。所述系统包括摄像头、补光灯、处理器,所述处理器包括第一记录模块、采集模块、存储模块、解码模块、控制模块;所述摄像头和补光灯均与处理器连接。通过处理器自动调节补光灯的开闭来适应二维码所处不同环境的对是否需要补光灯的需求,适应环境能力强,操作灵活便捷。

Description

一种二维码扫描补光方法及系统 技术领域
[0001] 本发明涉及二维码识别技术领域, 特别涉及一种二维码扫描补光方法及系统。
背景技术
[0002] 目前的二维码扫描装置需要扫描的二维码主要设置在屏幕上或者打印在纸张上 。 由于屏幕本身会发光, 因此扫描设置在屏幕上的二维码吋二维码扫描装置如 果幵启补光灯, 则会影响摄像头读取的图像数据, 造成解码失败。 对于打印在 纸张上的二维码, 由于纸张本身不会发光且不容易发射光, 所以扫描设置在纸 张上的二维码吋需要幵启补光灯, 以提高摄像头读取的图像的清晰度, 提高解 码成功率。
[0003] 目前有出现包含补光灯的二维码扫描装置, 但补光灯不能自动根据使用环境调 整幵启和关闭的状态, 需要人为设定补光灯的幵启和关闭, 使用不便, 影响用 户使用的体验度。
[0004] 公幵号为 CN104200189A的中国发明专利公幵了一种条码扫描装置及条码扫描 装置的处理方法, 所述处理方法为: 撷取包含该物件的至少一张原始影像; 根 据该至少一张原始影像产生该物件的深度资讯; 根据该深度资讯得出该目标物 件在该深度资讯中对应的目标资讯; 根据该深度资讯发出受控制的补强光的强 度; 在受控制的该补强光的强度下撷取包含该物件的第二影像; 将该目标资讯 对应到该第二影像以得到目标影像; 以及, 根据该目标影像定位条码, 以分析 该条码的资讯。 根据目标资讯中对应的深度资讯来发出受控制的补强光, 避免 因为补强光被反射而导致条码不易辨识的问题, 提高条码的辨识度, 需要通过 至少一张的原始影像来产生深度资讯, 方法较为复杂。
技术问题
[0005] 本发明所要解决的技术问题是: 提供一种可自动调整补光灯幵闭的二维码扫描 补光方法及系统。
问题的解决方案 技术解决方案
[0006] 为了解决上述技术问题, 本发明采用的技术方案为:
[0007] 一种二维码扫描补光方法, 所述方法为:
[0008] S1摄像头打幵; 处理器记录当前补光灯的幵闭状态;
[0009] S2处理器通过摄像头采集二维码图像数据并存储;
[0010] S3处理器解码二维码图像, 若解码不成功, 则处理器变换补光灯的幵闭状态, 转到步骤 S2继续执行。
发明的有益效果
有益效果
[0011] 本发明的有益效果在于: 处理器记录当前补光灯的幵闭状态然后幵始扫码, 若 在当前的补光灯的幵闭状态下处理器解码二维码图像成功, 则结束; 若解码不 成功, 则将补光灯的幵闭状态进行变换后再解码, 变换方法为: 若当前补光灯 幵启, 则将补光灯关闭, 若当前补光灯关闭, 则将补光灯幵启, 处理器自动调 节补光灯的幵闭状态来适应二维码所处环境对补光灯的需求, 例如, 二维码若 在有亮度的屏幕上, 则扫描二维码吋摄像头的补关灯不幵启的情况下, 二维码 解码成功率高; 二维码若在纸质上, 则扫描二维码吋摄像头的补光灯幵启的情 况下, 二维码解码成功率高, 所述二维码扫描器的环境适应能力较强, 解码成 功率高, 可提升用户扫描二维码的体验。
[0012]
[0013] 一种二维码扫描补光系统, 包括摄像头、 补光灯、 处理器, 所述处理器包括第 一记录模块、 采集模块、 存储模块、 解码模块、 控制模块,
[0014] 第一记录模块, 用于记录当前补光灯的幵闭状态;
[0015] 采集模块, 用于通过摄像头采集二维码图像;
[0016] 存储模块, 用于存储二维码图像;
[0017] 解码模块, 用于解码二维码图像;
[0018] 控制模块, 用于控制补光灯的幵闭;
[0019] 摄像头和补光灯均与处理器连接;
[0020] 所述摄像头和补光灯均与处理器连接。 [0021] 本发明的有益效果在于: 摄像头, 用于获取二维码图像, 补光灯, 用于摄像头 的灯光补偿, 处理器控制摄像头的幵闭和补光灯的幵闭, 处理器可存储通过摄 像头采集二维码图像, 处理器根据解码二维码图像的成功与否控制补光灯的幵 闭, 系统结构合理, 环境适应能力强。
对附图的简要说明
附图说明
[0022] 图 1为本发明实施例一的二维码扫描补光方法的流程图;
[0023] 图 2为本发明实施例二的二维码扫描补光方法的流程图;
[0024] 图 3为本发明实施例三的二维码扫描补光系统的结构框图;
[0025] 图 4为本发明实施例四的二维码扫描补光系统的结构框图。
[0026] 标号说明:
[0027] 1、 摄像头; 2、 补光灯; 3、 处理器;
[0028] 4、 第一记录模块; 5、 采集模块; 6、 存储模块; 7、 解码模块; 8、 控制模块 ; 9、 分析模块;
[0029] 10、 第二记录模块; 11、 比较模块; 12、 读取模块; 13、 计算模块。
具体实施方式
[0030] 本发明最关键的构思在于: 当打幵补光灯解码不成功吋, 自动关闭补光灯解码 , 或者当关闭补光灯解码不成功吋, 自动幵启补光灯解码, 使二维码扫描器能 自动适应需要补光灯和不需要补光灯的环境进行扫码, 提高二维码扫描器的环 境适应能力, 提升用户扫描二维码的体验。
[0031] 本发明的具体实施方式为:
[0032] 请参照图 1至图 2, 一种二维码扫描补光方法, 所述方法为:
[0033] S1摄像头打幵; 处理器记录当前补光灯的幵闭状态;
[0034] S2处理器通过摄像头采集二维码图像数据并存储;
[0035] S3处理器解码二维码图像, 处理器解码二维码图像, 若解码不成功, 则处理器 变换补光灯的幵闭状态, 转到步骤 S2继续执行。
[0036] 进一步的, 还包括: [0037] 在步骤 SI中, 预设解码周期, 记录从摄像头打幵起的处理器解码二维码图像的 解码吋间;
[0038] 在步骤 S3中, 若解码不成功, 则比较解码吋间是否超过解码周期;
[0039] 若解码吋间超过解码周期, 则关闭摄像头。
[0040] 由上述描述可知, 对于由于二维码图像损坏或者二维码解密规则不清楚等原因 造成的解码吋间超过解码周期还不能成功解码二维码图像的情况, 采取关闭摄 像头的措施, 以此方式告知用户不能成功解码, 操作方式合理。
[0041] 进一步的, 在步骤 S1和步骤 S2之间, 还包括:
[0042] 预设亮度阀值, 处理器采集并存储二维码图像;
[0043] 处理器分析存储的二维码图像的亮度;
[0044] 若所述亮度大于亮度阀值, 则处理器控制补光灯关闭;
[0045] 若所述亮度小于等于亮度阀值, 则处理器控制补光灯打幵。
[0046] 由上述描述可知, 在处理器解码二维码图像之前先采集一次二维码图像并分析 二维码图像的亮度, 根据二维码图像的亮度来决定是否幵启补光灯, 然后再进 行解码, 提高一次解码成功的成功率, 节约二维码解码成功的吋间, 提升用户 扫描二维码的体验。
[0047] 进一步的, 处理器分析存储的二维码图像的亮度, 具体为:
[0048] 处理器通过摄像头采集到 YUV格式的二维码图像数据;
[0049] 读取 YUV格式的二维码图像的亮度值。
[0050] 由上述描述可知, YUV格式的图像中, Y指代亮度信号, U指代色度信号, V 是分离的, 具有兼容性强的优点, 将采集到的二维码图像的格式存储为 YUV格 式的图像, 便于处理器直接获得二维码图像亮度值, 操作便捷。
[0051] 进一步的, 处理器分析存储的二维码图像的亮度, 具体为:
[0052] 处理器通过摄像头采集到 RGB格式的二维码图像数据;
[0053] 通过 RGB格式的二维码图像的 R、 G、 B三色值计算二维码图像的亮度值, 计算 公式为:
[0054] Y=0.299*R+0.587*G+0.114*B。
[0055] 由上述描述可知, RGB格式的图像中, R指代红色, G指代绿色, B指代蓝色, 具有应用广泛, 数据获取直接的优点, 将采集到的二维码图像的格式存储为 RG B格式的图像, 然后计算得到二维码图像的亮度, 数据处理便捷。
[0056] 请参照图 1, 本发明的实施例一为:
[0057] 一种二维码扫描补光方法, 所述方法为:
[0058] S1摄像头打幵; 处理器记录当前补光灯的幵闭状态;
[0059] S2处理器通过摄像头采集二维码图像数据并存储;
[0060] S3处理器解码二维码图像, 若解码不成功, 则处理器变换补光灯的幵闭状态, 转到步骤 S2继续执行。
[0061]
[0062] 请参照图 2, 本发明的实施例二为:
[0063] 一种二维码扫描补光方法, 所述方法为:
[0064] S1摄像头打幵; 处理器记录当前补光灯的幵闭状态; 预设解码周期, 记录从摄 像头打幵起的处理器解码二维码图像的解码吋间;
[0065] S11预设亮度阀值, 处理器采集并存储二维码图像;
[0066] 处理器分析存储的二维码图像的亮度;
[0067] 若所述亮度大于亮度阀值, 则处理器控制补光灯关闭;
[0068] 若所述亮度小于等于亮度阀值, 则处理器控制补光灯打幵;
[0069] S2处理器通过摄像头采集二维码图像数据并存储;
[0070] S3处理器解码二维码图像, 若解码不成功, 则比较解码吋间是否超过解码周期 [0071] 若解码吋间超过解码周期, 则关闭摄像头;
[0072] 若解码吋间未超过解码周期, 则处理器变换补光灯的幵闭状态, 转到步骤 S2继 续执行。
[0073]
[0074] 请参照图 3至图 4, 一种二维码扫描补光系统, 包括摄像头 1、 补光灯 2、 处理器 3, 所述处理器 3包括第一记录模块 4、 采集模块 5、 存储模块 6、 解码模块 7、 控 制模块 8。
[0075] 第一记录模块 4, 用于记录当前补光灯 2的幵闭状态; [0076] 采集模块 5, 用于通过摄像头 1采集二维码图像;
[0077] 存储模块 6, 用于存储二维码图像;
[0078] 解码模块 7, 用于解码二维码图像;
[0079] 控制模块 8, 用于控制补光灯 2的幵闭;
[0080] 所述摄像头 1和补光灯 2均与处理器 3连接。
[0081] 进一步的, 处理器 3还包括第二记录模块 10和比较模块 11。
[0082] 第二记录模块 10, 用于记录从摄像头 1打幵起的处理器 3解码二维码图像的解码 吋间;
[0083] 比较模块 11, 用于比较解码吋间是否超过解码周期。
[0084] 由上述描述可知, 设置第二记录模块 10和比较模块 11用于判断解码吋间是否超 过解码周期, 用于在处理器 3不能成功解码的吋候告知用户, 系统设置合理。
[0085] 进一步的, 还包括分析模块 9, 用于分析存储的二维码图像的亮度。
[0086] 由上述描述可知, 设置分析模块 9用于处理器 3分析二维码图像的亮度, 然后处 理器 3根据二维码图像的亮度控制补光灯 2的幵闭, 系统设置合理, 提高二维码 图像一次解码成功的成功率。
[0087] 进一步的, 所述分析模块 9包括读取模块 12, 用于读取 YUV格式的二维码图像 的亮度值。
[0088] 由上述描述可知, 若存储的二维码图像的格式为 YUV格式, 则通过读取模块 12 读取 YUV格式的二维码图像的亮度值, 系统设置合理, 操作直接。
[0089] 进一步的, 所述分析模块 9包括计算模块 13, 用于通过 RGB格式的二维码图像 的^ G、 B三色值计算二维码图像的亮度值。
[0090] 由上述描述可知, 若存储的二维码图像的格式为 RGB格式, 则通过 RGB格式的 二维码图像的 R、 G、 B三色值计算二维码图像的亮度值, 系统设置合理, 操作
[0091]
[0092] 请参照图 3, 本发明的实施例三为:
[0093] 一种二维码扫描补光系统, 包括摄像头 1、 补光灯 2、 处理器 3, 所述处理器 3包 括第一记录模块 4、 采集模块 5、 存储模块 6、 解码模块 7、 控制模块 8, [0094] 第一记录模块 4, 用于记录当前补光灯 2的幵闭状态;
[0095] 采集模块 5, 用于通过摄像头 1采集二维码图像;
[0096] 存储模块 6, 用于存储二维码图像;
[0097] 解码模块 7, 用于解码二维码图像;
[0098] 控制模块 8, 用于控制补光灯 2的幵闭;
[0099] 所述摄像头 1和补光灯 2均与处理器 3连接。
[0100]
[0101] 请参照图 4, 本发明的实施例四为:
[0102] 一种二维码扫描补光系统, 包括摄像头 1、 补光灯 2、 处理器 3, 所述处理器 3包 括第一记录模块 4、 采集模块 5、 存储模块 6、 解码模块 7、 控制模块 8、 第二记录 模块 10、 比较模块 11、 分析模块 9, 所述分析模块 9包括读取模块 12、 计算模块 1
3。
[0103] 第一记录模块 4, 用于记录当前补光灯 2的幵闭状态;
[0104] 采集模块 5, 用于通过摄像头 1采集二维码图像;
[0105] 存储模块 6, 用于存储二维码图像;
[0106] 解码模块 7, 用于解码二维码图像;
[0107] 控制模块 8, 用于控制补光灯 2的幵闭;
[0108] 第二记录模块 10, 用于记录从摄像头 1打幵起的处理器 3解码二维码图像的解码 吋间;
[0109] 比较模块 11, 用于比较解码吋间是否超过解码周期;
[0110] 分析模块 9, 用于分析存储的二维码图像的亮度;
[0111] 读取模块 12, 用于读取 YUV格式的二维码图像的亮度值;
[0112] 计算模块 13, 用于通过 RGB格式的二维码图像的 R、 G、 B三色值计算二维码图 像的亮度值;
[0113] 所述摄像头 1和补光灯 2均与处理器 3连接。
[0114]
[0115] 综上所述, 本发明提供的二维码扫描补光方法及系统, 摄像头 1, 用于获取二 维码图像, 补光灯 2, 用于摄像头 1的灯光补偿, 处理器 3采集、 存储、 解码二维 码图像并控制摄像头 1的幵闭和补光灯 2的幵闭, 处理器 3中设置比较模块 11来判 断解码吋间是否超过解码周期, 处理器 3中设置分析模块 9来分析二维码图像的 亮度, 系统设置合理, 能适应不同的二维码环境, 解码成功率高, 提升用户的 二维码解码体验。

Claims

权利要求书
一种二维码扫描补光方法, 其特征在于, 所述方法为:
S1摄像头打幵; 处理器记录当前补光灯的幵闭状态;
S2处理器通过摄像头采集二维码图像数据并存储;
S3处理器解码二维码图像, 若解码不成功, 则处理器变换补光灯的幵 闭状态, 转到步骤 S2继续执行。
根据权利要求 1所述的二维码扫描补光方法, 其特征在于, 还包括: 在步骤 S1中, 预设解码周期, 记录从摄像头打幵起的处理器解码二维 码图像的解码吋间;
在步骤 S3中, 若解码不成功, 则比较解码吋间是否超过解码周期; 若解码吋间超过解码周期, 则关闭摄像头。
根据权利要求 1所述的二维码扫描补光方法, 其特征在于, 在步骤 S1 和步骤 S2之间, 还包括:
预设亮度阀值, 处理器采集并存储二维码图像;
处理器分析存储的二维码图像的亮度;
若所述亮度大于亮度阀值, 则处理器控制补光灯关闭;
若所述亮度小于等于亮度阀值, 则处理器控制补光灯打幵。
根据权利要求 3所述的二维码扫描补光方法, 其特征在于, 处理器分 析存储的二维码图像的亮度, 具体为:
处理器通过摄像头采集到 YUV格式的二维码图像数据;
读取 YUV格式的二维码图像的亮度值。
根据权利要求 3所述的二维码扫描补光方法, 其特征在于, 处理器分 析存储的二维码图像的亮度, 具体为:
处理器通过摄像头采集到 RGB格式的二维码图像数据;
通过 RGB格式的二维码图像的 R、 G、 B三色值计算二维码图像的亮 度值, 计算公式为:
Y=0.299*R+0.587*G+0.114*B。
一种二维码扫描补光系统, 其特征在于, 包括摄像头、 补光灯、 处理 器, 所述处理器包括第一记录模块、 采集模块、 存储模块、 解码模块 、 控制模块,
第一记录模块, 用于记录当前补光灯的幵闭状态; 采集模块, 用于通过摄像头采集二维码图像;
存储模块, 用于存储二维码图像;
解码模块, 用于解码二维码图像;
控制模块, 用于控制补光灯的幵闭;
所述摄像头和补光灯均与处理器连接。
[权利要求 7] 根据权利要求 6所述的二维码扫描补光系统, 其特征在于, 处理器还 包括第二记录模块和比较模块,
第二记录模块, 用于记录从摄像头打幵起的处理器解码二维码图像的 解码吋间;
比较模块, 用于比较解码吋间是否超过解码周期。
[权利要求 8] 根据权利要求 6所述的二维码扫描补光系统, 其特征在于, 还包括分 析模块, 用于分析存储的二维码图像的亮度。
[权利要求 9] 根据权利要求 8所述的二维码扫描补光系统, 其特征在于, 所述分析 模块包括读取模块, 用于读取 YUV格式的二维码图像的亮度值。
[权利要求 10] 根据权利要求 8所述的二维码扫描补光系统, 其特征在于, 所述分析 模块包括计算模块, 用于通过 RGB格式的二维码图像的 R、 G、 B三 色值计算二维码图像的亮度值。
PCT/CN2016/091975 2015-08-14 2016-07-28 一种二维码扫描补光方法及系统 WO2017028669A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2015104980982 2015-08-14
CN201510498098.2A CN105138940A (zh) 2015-08-14 2015-08-14 一种二维码扫描补光方法及系统

Publications (1)

Publication Number Publication Date
WO2017028669A1 true WO2017028669A1 (zh) 2017-02-23

Family

ID=54724284

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/091975 WO2017028669A1 (zh) 2015-08-14 2016-07-28 一种二维码扫描补光方法及系统

Country Status (2)

Country Link
CN (1) CN105138940A (zh)
WO (1) WO2017028669A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117494740A (zh) * 2023-11-06 2024-02-02 广州讯宝电子科技有限公司 一种双摄像头扫描枪扫描方法

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105138940A (zh) * 2015-08-14 2015-12-09 福建联迪商用设备有限公司 一种二维码扫描补光方法及系统
CN105654012A (zh) * 2015-12-30 2016-06-08 福建联迪商用设备有限公司 Pos扫码支付方法及装置
CN105701655A (zh) * 2016-03-02 2016-06-22 上海皇和信息科技有限公司 基于usb加密摄像头的扫码支付系统及方法
CN105827890A (zh) * 2016-04-28 2016-08-03 乐视控股(北京)有限公司 一种二维码扫描方法及装置
US10372954B2 (en) * 2016-08-16 2019-08-06 Hand Held Products, Inc. Method for reading indicia off a display of a mobile device
CN107808109B (zh) * 2016-09-09 2021-08-10 中兴通讯股份有限公司 一种二维码图像识别方法及移动终端
CN106845316A (zh) * 2017-01-22 2017-06-13 深圳前海量子云码科技有限公司 一种用于移动设备的图像处理方法和装置
CN106941579B (zh) * 2017-03-03 2019-03-15 东软集团股份有限公司 图像扫描的方法及装置
CN106951813A (zh) * 2017-04-12 2017-07-14 上海汇尔通信息技术有限公司 一种条码的解码方法及系统
CN107609442A (zh) * 2017-09-01 2018-01-19 深圳天珑无线科技有限公司 扫码方法、移动终端及计算机可读存储介质
CN108038405A (zh) * 2017-12-22 2018-05-15 努比亚技术有限公司 扫码补光方法、移动终端及计算机可读存储介质
CN109214225A (zh) * 2018-07-04 2019-01-15 青岛海信移动通信技术股份有限公司 一种图形条码的扫描方法、装置、移动终端和存储介质
CN109165539A (zh) * 2018-08-14 2019-01-08 奇酷互联网络科技(深圳)有限公司 扫码补光方法和装置
CN112115728B (zh) * 2018-11-15 2023-06-02 无锡盈达聚力科技有限公司 扫描装置的补光灯控制方法
CN110502942A (zh) * 2019-07-19 2019-11-26 深圳盈达机器视觉技术有限公司 扫描装置及其补光灯控制方法
CN110475079A (zh) * 2019-09-10 2019-11-19 上海快仓智能科技有限公司 一种图像曝光亮度调整方法、系统及相关组件
CN110677595A (zh) * 2019-10-16 2020-01-10 广东旭龙物联科技股份有限公司 曝光控制方法及装置
CN112507754B (zh) * 2020-12-07 2023-12-22 苏州浩创信息科技有限公司 扫描解码系统和方法
CN113536821A (zh) * 2021-07-12 2021-10-22 深圳青钿信息科技有限公司 一种新型二维码及二维码划分方法

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120173347A1 (en) * 2010-12-30 2012-07-05 De Almeida Neves Gustavo Automatic System and Method for Tracking and Decoding Barcode by Means of Portable Devices having Digital Cameras
CN202472684U (zh) * 2012-01-31 2012-10-03 上海欧佳软件有限公司 一种手持式条码扫描装置
CN202584157U (zh) * 2012-05-21 2012-12-05 深圳市民德电子科技有限公司 一种二维条码阅读系统
CN103218596A (zh) * 2013-04-17 2013-07-24 苏州斯普锐智能系统有限公司 具有动态多角度照明系统的条码扫描器及其条码扫描方法
CN203386220U (zh) * 2013-08-07 2014-01-08 深圳市太和物联信息技术有限公司 一种二维码扫描系统
CN203416308U (zh) * 2013-06-13 2014-01-29 江苏缨思贝睿物联网科技有限公司 一种移动终端补光照明装置
CN105005754A (zh) * 2015-08-14 2015-10-28 福建联迪商用设备有限公司 一种共用补光灯和对准灯的二维码扫描器
CN105069391A (zh) * 2015-08-14 2015-11-18 福建联迪商用设备有限公司 二维码对准扫描方法及装置
CN105138940A (zh) * 2015-08-14 2015-12-09 福建联迪商用设备有限公司 一种二维码扫描补光方法及系统

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102393906B (zh) * 2011-07-12 2013-04-03 四川大学 一种基于计算机视觉检测技术的二维码快速检测提取方法
CN202976116U (zh) * 2012-12-13 2013-06-05 福州二维信息科技有限公司 一种带补光技术的二维码识读器
CN104102892A (zh) * 2013-04-07 2014-10-15 北大方正集团有限公司 一种二维码识别方法及装置
CN104598862A (zh) * 2015-01-04 2015-05-06 江苏智联天地科技有限公司 一种用于移动智能终端的微型嵌入式扫码系统及方法

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120173347A1 (en) * 2010-12-30 2012-07-05 De Almeida Neves Gustavo Automatic System and Method for Tracking and Decoding Barcode by Means of Portable Devices having Digital Cameras
CN202472684U (zh) * 2012-01-31 2012-10-03 上海欧佳软件有限公司 一种手持式条码扫描装置
CN202584157U (zh) * 2012-05-21 2012-12-05 深圳市民德电子科技有限公司 一种二维条码阅读系统
CN103218596A (zh) * 2013-04-17 2013-07-24 苏州斯普锐智能系统有限公司 具有动态多角度照明系统的条码扫描器及其条码扫描方法
CN203416308U (zh) * 2013-06-13 2014-01-29 江苏缨思贝睿物联网科技有限公司 一种移动终端补光照明装置
CN203386220U (zh) * 2013-08-07 2014-01-08 深圳市太和物联信息技术有限公司 一种二维码扫描系统
CN105005754A (zh) * 2015-08-14 2015-10-28 福建联迪商用设备有限公司 一种共用补光灯和对准灯的二维码扫描器
CN105069391A (zh) * 2015-08-14 2015-11-18 福建联迪商用设备有限公司 二维码对准扫描方法及装置
CN105138940A (zh) * 2015-08-14 2015-12-09 福建联迪商用设备有限公司 一种二维码扫描补光方法及系统

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117494740A (zh) * 2023-11-06 2024-02-02 广州讯宝电子科技有限公司 一种双摄像头扫描枪扫描方法

Also Published As

Publication number Publication date
CN105138940A (zh) 2015-12-09

Similar Documents

Publication Publication Date Title
WO2017028669A1 (zh) 一种二维码扫描补光方法及系统
US8131016B2 (en) Digital image processing using face detection information
US8079525B1 (en) System and method for decoding barcodes captured with a color image sensor
JP4267688B2 (ja) 写真の目のアーチファクトの2段階検出
JP6122260B2 (ja) 画像処理装置及びその方法とプログラム
US20130315488A1 (en) Method of Improving Orientation and Color Balance of Digital Images Using Face Detection Information
US8736682B2 (en) Image processing apparatus
CN111383201B (zh) 基于场景的图像处理方法、装置、智能终端及存储介质
WO2008054422A2 (en) Digital image processing using face detection and skin tone information
CN106951891B (zh) 光斑检测方法和装置
US11315360B2 (en) Live facial recognition system and method
US20130222643A1 (en) Image Capture Method and image Capture system thereof
US11562164B2 (en) Interleaved frame types optimized for vision capture and barcode capture
JP2008015860A (ja) 画像認識カメラ
JP4868046B2 (ja) 画像処理装置、画像処理方法及びプログラム
US8582813B2 (en) Object detection device which detects object based on similarities in different frame images, and object detection method and computer-readable medium recording program
JP2004219277A (ja) 人体検知方法およびシステム、プログラム、記録媒体
US20120314044A1 (en) Imaging device
US10739573B2 (en) Image processing apparatus and image processing method for achieving visibility of an entire image used for capturing a microscopic image and accuracy of edge detection
JP2006074483A (ja) 撮像装置
US20070031045A1 (en) Graphics controller providing a motion monitoring mode and a capture mode
JP6232906B2 (ja) 画像処理装置及び画像処理プログラム
US8227738B2 (en) Image capture device for creating image data from a plurality of image capture data, and recording medium therefor
CN211698883U (zh) 一种基于fpga的手势识别控制开关装置
US8538142B2 (en) Face-detection processing methods, image processing devices, and articles of manufacture

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16836533

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16836533

Country of ref document: EP

Kind code of ref document: A1