WO2017113784A1 - Barcode scanning payment method and apparatus of pos terminal - Google Patents
Barcode scanning payment method and apparatus of pos terminal Download PDFInfo
- Publication number
- WO2017113784A1 WO2017113784A1 PCT/CN2016/092344 CN2016092344W WO2017113784A1 WO 2017113784 A1 WO2017113784 A1 WO 2017113784A1 CN 2016092344 W CN2016092344 W CN 2016092344W WO 2017113784 A1 WO2017113784 A1 WO 2017113784A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- barcode
- pos
- camera
- front camera
- fill light
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/10544—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
- G06K7/10712—Fixed beam scanning
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/10544—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
- G06K7/10821—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices
- G06K7/10861—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices sensing of data fields affixed to objects or articles, e.g. coded labels
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07G—REGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
- G07G1/00—Cash registers
- G07G1/0036—Checkout procedures
- G07G1/0045—Checkout procedures with a code reader for reading of an identifying code of the article to be registered, e.g. barcode reader or radio-frequency identity [RFID] reader
- G07G1/0081—Checkout procedures with a code reader for reading of an identifying code of the article to be registered, e.g. barcode reader or radio-frequency identity [RFID] reader the reader being a portable scanner or data reader
Definitions
- the present invention relates to the field of image decoding technologies, and in particular, to a POS scan code payment method and apparatus.
- the traditional scan code payment system uses the camera on the back to collect barcode images. Since the external light source is generally above the barcode, the design of the back camera is convenient to use external light to avoid the barcode paper being in the backlight state. The light fills the camera to ensure that the barcode image is captured in a well-lit condition to deliver a higher quality barcode image frame sequence for the decoding module.
- the technical problem to be solved by the present invention is: Providing a bar code payment method based on the POS front camera with a fill light, using the light emitted from the screen of the mobile phone to provide a light source for the camera without additional light.
- the adaptive light fill light can meet the needs of a wider range of scanning codes.
- the technical solution adopted by the present invention is: Providing a POS scan code payment method, including:
- S1 align the barcode with the camera on the front of the POS machine to collect the image frame sequence of the barcode
- S2 transmitting the image frame sequence to the data decoding module for decoding.
- the present invention further provides a POS scan code payment device, including: [0009] an image acquisition module, comprising a front camera disposed on the front of the device, configured to collect a sequence of barcode image frames
- a control module configured to control whether the front camera mode is activated to collect a sequence of barcode image frames
- a data decoding module configured to decode the barcode image.
- the beneficial effects of the present invention are: Different from the prior art, the present invention collects the image frame sequence of the barcode by aligning the barcode with the front camera of the POS machine; and transmits it to the data decoding module for decoding to implement the POS scan code. Pay.
- the invention is convenient to operate, and can scan code without holding a cumbersome POS machine. Brief description of the drawing
- FIG. 1 is a front elevational view showing the appearance of a bar code payment system based on a POS front camera according to an embodiment of the present invention
- FIG. 2 is a schematic diagram of a bar code payment device based on a POS front camera according to an embodiment of the present invention
- FIG. 3 is a schematic flow chart of a bar code payment system based on a POS front camera according to an embodiment of the present invention.
- the most important idea of the present invention is to: when the barcode is aligned with the front camera of the POS machine, it is judged whether or not the light is needed to selectively fill the light, and the image is acquired and decoded.
- Embodiment 1 of the present invention provides a POS scan code payment method, including:
- S1 align the barcode with the camera on the front of the POS machine, and collect a sequence of image frames of the barcode
- S2 transmitting the image frame sequence to the data decoding module for decoding.
- step S1 if the barcode is on the carrier that needs to be filled, the fill light is turned on; if the barcode is on the carrier that does not need to fill light, the barcode is directly aligned with the camera.
- the carrier that needs to fill light here includes a barcode paper; the carrier that does not require light supplementation includes a mobile terminal.
- step SO ⁇ front camera of the POS machine.
- the camera After the front camera is turned on, preferably, the camera has a depth of field of 30 to 500 mm; Align the front camera ⁇ of the POS machine with a distance of 50 ⁇ 200mm from the front camera.
- the present invention collects a sequence of image frames of a barcode by aligning the barcode with the front camera of the POS machine; and transmits the image frame sequence to the data decoding module for decoding to implement POS scan payment.
- the invention is convenient to operate, and can scan code without holding a cumbersome POS machine.
- the second embodiment of the present invention provides a POS scan code payment device, which includes:
- an image acquisition module comprising a front camera disposed on a front side of the device
- a control module configured to control whether the front camera mode is activated to collect a sequence of barcode image frames
- a data decoding module configured to decode the barcode image.
- the lighting module further includes at least one fill light
- the control module controls the opening/closing of the fill light; when the barcode is in the carrier that needs to be filled, the fill light can be turned on.
- the front side of the P OS scan code payment device further includes a fill light switch connected to the control module for controlling the opening/closing of the lighting module.
- the data decoding module decodes the barcode image using ZBar. Preferably, decoding
- the camera depth range is set to 30 ⁇ 500mm.
- the present invention provides a barcode payment method based on a POS front camera with a self-contained fill light.
- the acquired barcode is a mobile terminal barcode
- the light emitted from the screen of the mobile terminal can be used to provide a light source for the camera.
- the front camera setting in the case of not moving the POS machine, only needs the mobile terminal to call up the barcode, and the screen is directed downwards to the POS machine, so that the scanning code can be realized and the operation is convenient.
- the bar code is a common bar code paper, it can be adapted to start the light, which satisfies the scanning code requirement of ordinary bar code paper.
- the mobile terminal of the present invention may be a mobile phone, a tablet or other electronic device with a displayable barcode screen.
- FIG. 1 is a front elevational view of a bar code payment system based on a POS front camera according to an embodiment of the present invention.
- the present invention implements a scan code payment of a bar code of a mobile terminal by using a front camera, and does not need to turn on the LED fill light, thereby saving cost.
- this design only needs to align the barcode of the mobile terminal with the camera, and does not need to move the POS machine, the design is more reasonable and the operation is more convenient.
- the system includes a control module, an image acquisition module, and a data decoding module, wherein:
- the control module includes an imaging control unit.
- the camera control unit is electrically connected to the image acquisition module.
- the camera mode control unit receives the signal of the bar code image, the unit controls the front camera to start collecting the bar code image.
- the image acquisition module may be composed of a traditional analog or digital camera of more than 300,000 pixels.
- control module Forming a front camera of the system, the control module is electrically connected to the module, and passes through the camera control unit
- the control module includes at least a camera control unit and a light control unit.
- the lighting module is composed of one or more LED fill lights, and is electrically connected to the control module, and realizes the LED fill light by controlling the light control unit of the module.
- the camera switching control unit is electrically connected to the image capturing module, and the front camera is activated by the control unit.
- the front side of the payment device may be provided with a fill light switch, and the fill light switch is connected to the control module.
- the fill light switch can be manually controlled.
- the present invention also provides a bar code payment scheme for the system as described above: by setting a fill light control button, an artificially controllable fill light is implemented.
- the POS front camera captures the bar code image.
- the bar code is the bar code of the mobile phone
- the feature of the mobile phone screen is used to bring the light on the screen of the mobile phone. It is not necessary to turn on the LED fill light to save energy.
- the bar code is ordinary bar code paper, press the fill light control button. ⁇ LED LED fill light for the camera fill light, convenient camera capture high quality barcode image frame sequence. At the same time, it is not necessary to move the POS machine, making the scanning code payment more convenient.
- FIG. 3 is a schematic flow chart of a bar code payment system based on a POS front camera according to an embodiment of the present invention.
- the specific implementation steps of the embodiment of the present invention are as follows:
- step S2 determines whether the barcode is a mobile phone barcode or a common barcode paper, if it is a mobile phone barcode, step S2 is performed, otherwise step S4 is performed;
- the camera control unit controls the image acquisition module to enter the front camera image mode, the phone bar code is placed 50 to 200 mm away from the front camera of the POS, and the front camera is aligned to perform bar code image acquisition, step S5 is performed;
- the camera control unit controls the image acquisition module to enter the front camera image mode, and presses the fill light control button.
- Button, ⁇ LED fill light place the barcode paper 50 ⁇ 200mm away from the front camera of the POS, aim at the front camera, and collect the barcode image;
- the POS machine performs the scan code payment
- the distance between the barcode and the camera is generally 50 to 200 mm, in order to ensure the clarity of the acquired barcode image and the proportion of the target in the entire image.
- the suitability of the camera depth range should be controlled at around 30 ⁇ 500mm.
- the data decoding module can perform decoding using the source code ZBar, but is not limited to ZBar.
- the decoding mode those skilled in the art can perform some transformation or optimization on this basis.
- the barcode payment system based on the POS front camera adopts the design of the front camera to fully utilize the characteristics of the mobile phone barcode (self-contained light source), and adopts the front camera mode to realize the scanning of the barcode of the mobile phone without the need to fill the camera. Code payment.
- the design of the invention is more practical and convenient.
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Electromagnetism (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Toxicology (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Theoretical Computer Science (AREA)
- Cash Registers Or Receiving Machines (AREA)
Abstract
Disclosed are a barcode scanning payment method and apparatus of a POS terminal. The method comprises: S1, aligning a barcode with a front camera of a POS terminal, to acquire an image frame sequence of the barcode; and S2, transferring the image frame sequence to a data decoding module for decoding. By means of the method, the present invention is easy in operation, and barcode scanning can be implemented without holding a heavy POS terminal.
Description
说明书 发明名称: POS扫码支付方法及装置 技术领域 Instruction manual Name: POS scan code payment method and device
[0001] 本发明涉及图像解码技术领域, 尤其是涉及一种 POS扫码支付方法及装置。 [0001] The present invention relates to the field of image decoding technologies, and in particular, to a POS scan code payment method and apparatus.
背景技术 Background technique
[0002] 传统的扫码支付系统都是利用背面的摄像头采集条形码图像, 由于外界光源一 般都在条形码上方, 背面摄像头的设计便于利用外界光线, 避免条形码纸处于 背光状态, 同吋幵启补光灯为摄像头补光, 保证能够在光线充足的条件下采集 条形码图像, 以便为解码模块传送较高质量的条形码图像帧序列。 [0002] The traditional scan code payment system uses the camera on the back to collect barcode images. Since the external light source is generally above the barcode, the design of the back camera is convenient to use external light to avoid the barcode paper being in the backlight state. The light fills the camera to ensure that the barcode image is captured in a well-lit condition to deliver a higher quality barcode image frame sequence for the decoding module.
[0003] 同吋, 现在手机条形码支付已成为支付的一大热点, 微信条形码支付、 支付宝 条形码支付的相继推出, 使得条形码支付成为线下支付的一个主流方式。 人们 出行甚至无需现金, 只要一部智能手机即可实现付款, POS机针对手机条形码支 付的模块也随之应运而生。 但是这种方式需要拿起 POS机进行扫码, 操作不够便 捷; 而且用户没有充分利用手机条形码自身就能为摄像头补光的特性, 资源浪 费, 有些会存在多余补光, 造成不必要的电源消耗。 [0003] At the same time, mobile phone bar code payment has become a hot spot for payment. The launch of WeChat bar code payment and Alipay bar code payment has made bar code payment a mainstream way of offline payment. People travel without even cash, as long as a smartphone can be used for payment, and the POS machine's module for mobile phone barcode payment comes into being. However, this method needs to pick up the POS machine for scanning code, and the operation is not convenient enough; and the user does not make full use of the mobile phone barcode itself to fill the camera with the characteristics of the light, the waste of resources, some will have excess fill light, resulting in unnecessary power consumption. .
技术问题 technical problem
[0004] 本发明所要解决的技术问题是: 提供一种基于 POS正面摄像头自带补光灯条形 码支付方式, 利用手机屏幕射出的光线, 为摄像头提供光源, 而不需要额外补 光。 同吋, 针对普通条形码纸吋, 适应性幵启补光灯, 满足更大范围的扫码需 求。 [0004] The technical problem to be solved by the present invention is: Providing a bar code payment method based on the POS front camera with a fill light, using the light emitted from the screen of the mobile phone to provide a light source for the camera without additional light. At the same time, for ordinary barcode paper, the adaptive light fill light can meet the needs of a wider range of scanning codes.
问题的解决方案 Problem solution
技术解决方案 Technical solution
[0005] 为了解决上述技术问题, 本发明采用的技术方案为: 提供一种 POS扫码支付方 法, 包括: [0005] In order to solve the above technical problem, the technical solution adopted by the present invention is: Providing a POS scan code payment method, including:
[0006] S1 : 将条形码对准 POS机正面摄像头, 采集条形码的图像帧序列; [0006] S1: align the barcode with the camera on the front of the POS machine to collect the image frame sequence of the barcode;
[0007] S2: 传送所述图像帧序列到数据解码模块, 进行解码。 [0007] S2: transmitting the image frame sequence to the data decoding module for decoding.
[0008] 为解决上述问题, 本发明还提供一种 POS扫码支付装置, 包括:
[0009] 图像采集模块, 包括设于装置正面的正面摄像头, 用于采集条形码图像帧序列 [0008] In order to solve the above problem, the present invention further provides a POS scan code payment device, including: [0009] an image acquisition module, comprising a front camera disposed on the front of the device, configured to collect a sequence of barcode image frames
[0010] 控制模块, 用于控制是否幵启正面摄像模式以采集条形码图像帧序列; [0010] a control module, configured to control whether the front camera mode is activated to collect a sequence of barcode image frames;
[0011] 数据解码模块, 用于对条形码图像进行解码。 [0011] a data decoding module, configured to decode the barcode image.
发明的有益效果 Advantageous effects of the invention
有益效果 Beneficial effect
[0012] 本发明的有益效果在于: 区别于现有技术, 本发明通过将条形码对准 POS机正 面摄像头, 采集条形码的图像帧序列; 并传送到数据解码模块, 进行解码, 以 实现 POS扫码支付。 本发明操作方便, 不用握持笨重的 POS机即可进行扫码。 对附图的简要说明 [0012] The beneficial effects of the present invention are: Different from the prior art, the present invention collects the image frame sequence of the barcode by aligning the barcode with the front camera of the POS machine; and transmits it to the data decoding module for decoding to implement the POS scan code. Pay. The invention is convenient to operate, and can scan code without holding a cumbersome POS machine. Brief description of the drawing
附图说明 DRAWINGS
[0013] 图 1为本发明具体实施例的基于 POS正面摄像头的条码支付系统的外观正面示 意图; 1 is a front elevational view showing the appearance of a bar code payment system based on a POS front camera according to an embodiment of the present invention;
[0014] 图 2为本发明具体实施例的基于 POS正面摄像头的条码支付装置示意图; 2 is a schematic diagram of a bar code payment device based on a POS front camera according to an embodiment of the present invention;
[0015] 图 3为本发明具体实施例的基于 POS正面摄像头的条码支付系统流程示意图。 3 is a schematic flow chart of a bar code payment system based on a POS front camera according to an embodiment of the present invention.
具体实施方式 detailed description
[0016] 本发明最关键的构思在于:在条形码对准 POS机正面摄像头吋, 判断是否需要 补光, 以选择性幵启补光, 实现采集图像, 并解码。 [0016] The most important idea of the present invention is to: when the barcode is aligned with the front camera of the POS machine, it is judged whether or not the light is needed to selectively fill the light, and the image is acquired and decoded.
[0017] 本发明实施例一提供一种 POS扫码支付方法, 包括: [0017] Embodiment 1 of the present invention provides a POS scan code payment method, including:
[0018] S1 : 将条形码对准 POS机正面摄像头, 采集条形码的图像帧序列; [0018] S1: align the barcode with the camera on the front of the POS machine, and collect a sequence of image frames of the barcode;
[0019] S2: 传送所述图像帧序列到数据解码模块, 进行解码。 [0019] S2: transmitting the image frame sequence to the data decoding module for decoding.
[0020] 其中, 步骤 S1中, 若条形码处于需要补光的载体上, 则幵启补光灯; 若条形码 处于无需补光的载体上, 则直接将条形码对准摄像头。 这里的需要补光的载体 包括条形码纸; 所述无需补光的载体包括移动终端。 [0020] wherein, in step S1, if the barcode is on the carrier that needs to be filled, the fill light is turned on; if the barcode is on the carrier that does not need to fill light, the barcode is directly aligned with the camera. The carrier that needs to fill light here includes a barcode paper; the carrier that does not require light supplementation includes a mobile terminal.
[0021] 在实际操作中, 需要在进行扫码前, 需要执行步骤 SO: 幵启 POS机正面摄像头 。 在幵启正面摄像头后, 优选地, 所述摄像头景深范围为 30~500mm; 将条形码
对准 POS机正面摄像头吋, 与正面摄像头距离为 50~200mm。 [0021] In actual operation, before performing the scan code, it is necessary to perform step SO: 幵 front camera of the POS machine. After the front camera is turned on, preferably, the camera has a depth of field of 30 to 500 mm; Align the front camera 吋 of the POS machine with a distance of 50~200mm from the front camera.
[0022] 区别于现有技术, 本发明通过将条形码对准 POS机正面摄像头, 采集条形码的 图像帧序列; 并传送到数据解码模块, 进行解码, 以实现 POS扫码支付。 本发明 操作方便, 不用握持笨重的 POS机即可进行扫码。 [0022] Different from the prior art, the present invention collects a sequence of image frames of a barcode by aligning the barcode with the front camera of the POS machine; and transmits the image frame sequence to the data decoding module for decoding to implement POS scan payment. The invention is convenient to operate, and can scan code without holding a cumbersome POS machine.
[0023] 承上, 本发明实施例二对应提供一种 POS扫码支付装置, 包括: [0023] The second embodiment of the present invention provides a POS scan code payment device, which includes:
[0024] 图像采集模块, 包括设于装置正面的正面摄像头; [0024] an image acquisition module, comprising a front camera disposed on a front side of the device;
[0025] 控制模块, 用于控制是否幵启正面摄像模式以采集条形码图像帧序列; [0025] a control module, configured to control whether the front camera mode is activated to collect a sequence of barcode image frames;
[0026] 数据解码模块, 用于对条形码图像进行解码。 [0026] A data decoding module, configured to decode the barcode image.
[0027] 其中, 还包括照明模块, 所述照明模块包括至少一个补光灯, 由控制模块控制 补光灯的幵启 /关闭; 当条形码处于需要补光的载体吋, 可幵启补光灯。 所述的 P OS扫码支付装置正面还包括一与控制模块相连的补光幵关, 用于控制照明模块 的幵启 /关闭。 [0027] wherein, the lighting module further includes at least one fill light, and the control module controls the opening/closing of the fill light; when the barcode is in the carrier that needs to be filled, the fill light can be turned on. . The front side of the P OS scan code payment device further includes a fill light switch connected to the control module for controlling the opening/closing of the lighting module.
[0028] 解码吋, 所述数据解码模块运用 ZBar对条形码图像进行解码。 优选地, 解码吋 [0028] After decoding, the data decoding module decodes the barcode image using ZBar. Preferably, decoding
, 所述摄像头景深范围设为 30~500mm。 The camera depth range is set to 30~500mm.
[0029] 为方便理解本发明技术方案, 以下结合附图通过具体的实施例进行详细说明。 [0029] In order to facilitate the understanding of the technical solutions of the present invention, the following detailed description will be made by way of specific embodiments with reference to the accompanying drawings.
[0030] 首先, 本发明是提供一种基于 POS正面摄像头的自带补光灯的条码支付方式, 当获取的条码为移动终端条码吋, 能够利用移动终端屏幕射出的光线, 为摄像 头提供光源, 而不需要额外为摄像头幵启补光灯。 正面摄像头的设置, 在不移 动 POS机的情况下, 只需要移动终端调出条形码, 屏幕朝下对准 POS机, 就能实 现扫码支付, 操作方便。 与此同吋, 当条码为普通条码纸吋, 能适吋幵启补光 灯, 满足普通条码纸的扫码需求。 [0030] Firstly, the present invention provides a barcode payment method based on a POS front camera with a self-contained fill light. When the acquired barcode is a mobile terminal barcode, the light emitted from the screen of the mobile terminal can be used to provide a light source for the camera. There is no need to additionally add a fill light to the camera. The front camera setting, in the case of not moving the POS machine, only needs the mobile terminal to call up the barcode, and the screen is directed downwards to the POS machine, so that the scanning code can be realized and the operation is convenient. At the same time, when the bar code is a common bar code paper, it can be adapted to start the light, which satisfies the scanning code requirement of ordinary bar code paper.
[0031] 本发明所述的移动终端可以是手机、 平板电脑或其他带有可显示条码屏幕的电 子设备。 [0031] The mobile terminal of the present invention may be a mobile phone, a tablet or other electronic device with a displayable barcode screen.
[0032] 图 1为本发明实施例的基于 POS正面摄像头的条码支付系统的外观正面示意图 , 本发明以正面摄像头实现移动终端条码的扫码支付, 不需要幵启 LED补光灯, 节约成本, 同吋此设计只需要将移动终端条码对准摄像头, 而不需要移动 POS机 , 设计更加合理性, 操作更为方便。 1 is a front elevational view of a bar code payment system based on a POS front camera according to an embodiment of the present invention. The present invention implements a scan code payment of a bar code of a mobile terminal by using a front camera, and does not need to turn on the LED fill light, thereby saving cost. At the same time, this design only needs to align the barcode of the mobile terminal with the camera, and does not need to move the POS machine, the design is more reasonable and the operation is more convenient.
[0033] 图 2为本发明实施例的基于 POS正面摄像头的条码支付装置, 如图 2所示, 本发
明系统包括控制模块、 图像采集模块以及数据解码模块, 其中: 2 is a bar code payment device based on a POS front camera according to an embodiment of the present invention, as shown in FIG. The system includes a control module, an image acquisition module, and a data decoding module, wherein:
[0034] 控制模块包括摄像控制单元。 摄像控制单元与图像采集模块电连接, 当摄像模 式控制单元接收到幵始采集条码图像的信号吋, 本单元将控制正面摄像头幵始 采集条码图像。 [0034] The control module includes an imaging control unit. The camera control unit is electrically connected to the image acquisition module. When the camera mode control unit receives the signal of the bar code image, the unit controls the front camera to start collecting the bar code image.
[0035] 具体地, 图像采集模块可由一个 30万像素以上的传统的模拟或数字摄像头组成 [0035] Specifically, the image acquisition module may be composed of a traditional analog or digital camera of more than 300,000 pixels.
, 构成系统的正面摄像头, 所述控制模块与此模块电连接, 通过摄像控制单元Forming a front camera of the system, the control module is electrically connected to the module, and passes through the camera control unit
, 控制是否幵启正面摄像模式采集条码图像帧序列; , controlling whether the front camera mode is used to capture a sequence of barcode image frames;
[0036] 所述控制模块至少包含摄像幵关控制单元、 灯光控制单元。 [0036] The control module includes at least a camera control unit and a light control unit.
[0037] 所述照明模块由一个或多个 LED补光灯构成, 与控制模块电连接, 通过控制模 块的灯光控制单元实现 LED补光灯的幵启。 [0037] The lighting module is composed of one or more LED fill lights, and is electrically connected to the control module, and realizes the LED fill light by controlling the light control unit of the module.
[0038] 所述摄像幵关控制单元, 与图像采集模块电连接, 通过此控制单元幵启正面摄 像头。 [0038] The camera switching control unit is electrically connected to the image capturing module, and the front camera is activated by the control unit.
[0039] 所述支付装置的正面可设置一补光幵关, 所述补光幵关与所述控制模块相连, 当条形码需要补光吋, 可手动控制补光幵关打幵照明模块。 [0039] The front side of the payment device may be provided with a fill light switch, and the fill light switch is connected to the control module. When the barcode needs to fill light, the fill light switch can be manually controlled.
[0040] 本发明还提供一种如上所述系统的条码支付方案: 通过设置补光控制按钮, 实 现人为可控补光灯的幵启。 采用 POS正面摄像头采集条码图像, 当条码为手机条 码吋, 利用手机屏幕自带亮光的特性, 无需幵启 LED补光灯, 节约能源; 当条码 为普通条码纸吋, 按下补光控制按钮, 幵启 LED补光灯为摄像头补光, 方便摄像 头采集高质量条码图像帧序列。 同吋无需移动 POS机, 使得扫码支付更加方便。 [0040] The present invention also provides a bar code payment scheme for the system as described above: by setting a fill light control button, an artificially controllable fill light is implemented. The POS front camera captures the bar code image. When the bar code is the bar code of the mobile phone, the feature of the mobile phone screen is used to bring the light on the screen of the mobile phone. It is not necessary to turn on the LED fill light to save energy. When the bar code is ordinary bar code paper, press the fill light control button.幵 LED LED fill light for the camera fill light, convenient camera capture high quality barcode image frame sequence. At the same time, it is not necessary to move the POS machine, making the scanning code payment more convenient.
[0041] 如图 3所示, 为本发明实施例的基于 POS正面摄像头的条码支付系统流程示意 图。 本发明实施例具体实施步骤如下: 3 is a schematic flow chart of a bar code payment system based on a POS front camera according to an embodiment of the present invention. The specific implementation steps of the embodiment of the present invention are as follows:
[0042] 1.人眼判断条码是手机条码还是普通条码纸, 如果是手机条码, 执行步骤 S2, 否则执行步骤 S4; [0042] 1. The human eye determines whether the barcode is a mobile phone barcode or a common barcode paper, if it is a mobile phone barcode, step S2 is performed, otherwise step S4 is performed;
[0043] 2.手机调出条形码; [0043] 2. The mobile phone calls up the barcode;
[0044] 3.摄像控制单元控制图像采集模块进入正面摄像头摄像模式, 将手机条码置于 距离 POS正面摄像头 50~200mm处, 对准正面摄像头, 进行条码图像采集, 执行 步骤 S5; [0044] 3. The camera control unit controls the image acquisition module to enter the front camera image mode, the phone bar code is placed 50 to 200 mm away from the front camera of the POS, and the front camera is aligned to perform bar code image acquisition, step S5 is performed;
[0045] 4.摄像控制单元控制图像采集模块进入正面摄像头摄像模式, 按下补光控制按
钮, 幵启 LED补光灯, 将条码纸置于距离 POS正面摄像头 50~200mm处, 对准正 面摄像头, 进行条码图像采集; [0045] 4. The camera control unit controls the image acquisition module to enter the front camera image mode, and presses the fill light control button. Button, 幵启LED fill light, place the barcode paper 50~200mm away from the front camera of the POS, aim at the front camera, and collect the barcode image;
[0046] 5.传送条码图像帧序列到数据解码模块, 运用 ZBar进行解码; [0046] 5. Transfer the barcode image frame sequence to the data decoding module, using ZBar for decoding;
[0047] 6.POS机完成扫码支付。 [0047] 6. The POS machine completes the scan code payment.
[0048] 在此, 对摄像头的选取做一个补充说明, POS机进行扫码支付吋, 条码与摄像 头距离一般在 50~200mm, 为保证获取的条码图像清晰度和目标在整幅图像所占 比例的合适度, 摄像头景深范围应控制在 30~500mm左右。 [0048] Here, a supplementary explanation is made for the selection of the camera, and the POS machine performs the scan code payment, and the distance between the barcode and the camera is generally 50 to 200 mm, in order to ensure the clarity of the acquired barcode image and the proportion of the target in the entire image. The suitability of the camera depth range should be controlled at around 30~500mm.
[0049] 此外, 数据解码模块可运用幵源代码 ZBar进行解码, 但不局限于 ZBar, 在解码 方式上, 本领域技术人员可在此基础上做一些变形或优化。 In addition, the data decoding module can perform decoding using the source code ZBar, but is not limited to ZBar. In the decoding mode, those skilled in the art can perform some transformation or optimization on this basis.
[0050] 基于 POS正面摄像头的条码支付系统采用正面摄像头的设计能充分利用手机条 码的特点 (自带光源) , 采用正面摄像模式, 在不需要为摄像头补光的条件下 , 实现手机条码的扫码支付。 本发明设计更具实用性及便捷性。
[0050] The barcode payment system based on the POS front camera adopts the design of the front camera to fully utilize the characteristics of the mobile phone barcode (self-contained light source), and adopts the front camera mode to realize the scanning of the barcode of the mobile phone without the need to fill the camera. Code payment. The design of the invention is more practical and convenient.
Claims
权利要求书 Claim
一种 POS扫码支付方法, 其特征在于, 包括: A POS scan code payment method, comprising:
S1 : 将条形码对准 P0S机正面摄像头, 采集条形码的图像帧序列; S1: Align the barcode with the front camera of the P0S machine to collect the image frame sequence of the barcode;
S2: 传送所述图像帧序列到数据解码模块, 进行解码。 S2: transmitting the image frame sequence to the data decoding module for decoding.
根据权利要求 1所述的 POS扫码支付方法, 其特征在于, 步骤 S1中, 若条形码处于需要补光的载体上, 则幵启补光灯; 若条形码处于无需 补光的载体上, 则直接将条形码对准摄像头。 The POS scan payment method according to claim 1, wherein in step S1, if the barcode is on a carrier that needs to be filled, the fill light is turned on; if the barcode is on a carrier that does not need to be filled, the direct Align the barcode with the camera.
根据权利要求 1所述的 POS扫码支付方法, 其特征在于, 步骤 S1之前 The POS scan code payment method according to claim 1, wherein before step S1
, 还包括: , Also includes:
SO: 幵启 POS机正面摄像头。 SO: 幵 POS front camera.
根据权利要求 1所述的 POS扫码支付方法, 其特征在于, The POS scan code payment method according to claim 1, wherein
所述摄像头景深范围为 30~500mm; The camera has a depth of field ranging from 30 to 500 mm;
将条形码对准 POS机正面摄像头吋, 与正面摄像头距离为 50~200mm 根据权利要求 2所述的 POS扫码支付方法, 其特征在于, 所述需要补 光的载体包括条形码纸; 所述无需补光的载体包括移动终端。 Aligning the barcode with the front camera 吋, and the distance from the front camera is 50-200 mm. The POS scan payment method according to claim 2, wherein the carrier that needs to fill light includes barcode paper; The carrier of light includes a mobile terminal.
一种 POS扫码支付装置, 其特征在于, 包括: A POS scan code payment device, comprising:
图像采集模块, 包括设于装置正面的正面摄像头; 控制模块, 用于控制是否幵启正面摄像模式以采集条形码图像帧序列 数据解码模块, 用于对条形码图像进行解码。 The image acquisition module includes a front camera disposed on the front side of the device; and a control module configured to control whether the front camera mode is activated to collect a barcode image frame sequence data decoding module for decoding the barcode image.
[权利要求 7] 根据权利要求 6所述的 POS扫码支付装置, 其特征在于, 还包括: 照明模块, 包括至少一个补光灯, 由控制模块控制补光灯的幵启 /关 闭; 当条形码处于需要补光的载体吋, 可幵启补光灯。 [Claim 7] The POS scan payment device according to claim 6, further comprising: a lighting module, comprising at least one fill light, wherein the control module controls the opening/closing of the fill light; In the carrier 需要 that needs to fill light, the fill light can be turned on.
[权利要求 8] 根据权利要求 6所述的 POS扫码支付装置, 其特征在于, 所述数据解 码模块运用 ZBar对条形码图像进行解码。 [Claim 8] The POS scan payment device according to claim 6, wherein the data decoding module decodes the barcode image using ZBar.
[权利要求 9] 根据权利要求 7所述的 POS扫码支付装置, 其特征在于, 装置正面还 包括一与控制模块相连的补光幵关, 用于控制照明模块的幵启 /关闭
[权利要求 10] 根据权利要求 5所述的 POS扫码支付装置, 其特征在于, 所述摄像头 景深范围为 30~500mm。
[Claim 9] The POS scan payment device according to claim 7, wherein the front side of the device further comprises a fill light switch connected to the control module for controlling the opening/closing of the lighting module. [Claim 10] The POS scan payment device according to claim 5, wherein the camera has a depth of field of 30 to 500 mm.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511025083.0 | 2015-12-30 | ||
CN201511025083.0A CN105654012A (en) | 2015-12-30 | 2015-12-30 | POS code scanning payment method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017113784A1 true WO2017113784A1 (en) | 2017-07-06 |
Family
ID=56490908
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/092344 WO2017113784A1 (en) | 2015-12-30 | 2016-07-29 | Barcode scanning payment method and apparatus of pos terminal |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105654012A (en) |
WO (1) | WO2017113784A1 (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105654012A (en) * | 2015-12-30 | 2016-06-08 | 福建联迪商用设备有限公司 | POS code scanning payment method and device |
JP6813310B2 (en) * | 2016-09-02 | 2021-01-13 | 東芝テック株式会社 | Article reader and program |
CN107609434B (en) * | 2017-07-28 | 2020-05-19 | 福建联迪商用设备有限公司 | Method and system for testing performance of code scanning equipment |
CN107704182B (en) * | 2017-09-29 | 2020-03-31 | 维沃移动通信有限公司 | Code scanning method and mobile terminal |
CN107808284B (en) * | 2017-11-17 | 2021-12-28 | 上海瀚银信息技术有限公司 | Payment method based on POS machine system |
CN110677595A (en) * | 2019-10-16 | 2020-01-10 | 广东旭龙物联科技股份有限公司 | Exposure control method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN200969098Y (en) * | 2006-06-20 | 2007-10-31 | 北京意锐新创科技有限公司 | Hand-hold two-dimensional bar code reader |
CN104598862A (en) * | 2015-01-04 | 2015-05-06 | 江苏智联天地科技有限公司 | Miniature embedded code scanning system and method for mobile intelligent terminal |
CN105654012A (en) * | 2015-12-30 | 2016-06-08 | 福建联迪商用设备有限公司 | POS code scanning payment method and device |
CN105654634A (en) * | 2015-12-30 | 2016-06-08 | 福建联迪商用设备有限公司 | Mobile terminal payment method |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201622651U (en) * | 2009-12-29 | 2010-11-03 | 江西科技师范学院 | Wireless POS machine supporting two-dimensional bar code recognition |
TWI369637B (en) * | 2010-06-17 | 2012-08-01 | Mstar Semiconductor Inc | Barcode image recognition system and associated method for hand-held device |
CN204557682U (en) * | 2015-04-25 | 2015-08-12 | 张志超 | A kind of intelligent financial POS machine device |
CN105138940A (en) * | 2015-08-14 | 2015-12-09 | 福建联迪商用设备有限公司 | Light supplementing method in two-dimensional code scanning and system thereof |
-
2015
- 2015-12-30 CN CN201511025083.0A patent/CN105654012A/en active Pending
-
2016
- 2016-07-29 WO PCT/CN2016/092344 patent/WO2017113784A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN200969098Y (en) * | 2006-06-20 | 2007-10-31 | 北京意锐新创科技有限公司 | Hand-hold two-dimensional bar code reader |
CN104598862A (en) * | 2015-01-04 | 2015-05-06 | 江苏智联天地科技有限公司 | Miniature embedded code scanning system and method for mobile intelligent terminal |
CN105654012A (en) * | 2015-12-30 | 2016-06-08 | 福建联迪商用设备有限公司 | POS code scanning payment method and device |
CN105654634A (en) * | 2015-12-30 | 2016-06-08 | 福建联迪商用设备有限公司 | Mobile terminal payment method |
Also Published As
Publication number | Publication date |
---|---|
CN105654012A (en) | 2016-06-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017113784A1 (en) | Barcode scanning payment method and apparatus of pos terminal | |
US12069375B2 (en) | Multi-channel video recording method and device | |
CN103379275B (en) | The image processing apparatus and method of video camera | |
WO2017113776A1 (en) | Mobile terminal based payment method | |
WO2017113777A1 (en) | Barcode scanning payment method, system and device of pos terminal | |
US9948847B2 (en) | Wearable device, photography device and associated photographing method | |
CN105379248B (en) | Control device, control method and electronic device | |
US9252879B2 (en) | Visible light receiving method and apparatus using the same | |
CN105721748B (en) | Imaging control device and fill-flash control device | |
CN105530438B (en) | Camera system and xenon flasher | |
CN103327243A (en) | Camera control method for mobile terminal | |
US20070269203A1 (en) | Image-taking system and image-taking apparatus | |
KR20140007518A (en) | Control system for camera and portable device including the same, and control method thereof | |
EP1622364A3 (en) | Image signal processing apparatus and method thereof in mobile communications terminal | |
WO2009066788A1 (en) | Imaging device, information processing terminal, mobile telephone, program, and light emission control method | |
US12108161B2 (en) | Photographing apparatus and method | |
KR20120020543A (en) | Method and apparatus for capturing picture in a portable terminal | |
CN103618851A (en) | Self-photographing method and terminal | |
WO2023142959A1 (en) | Photography method of multi-camera photography system, and device, storage medium and program product | |
JP2006270987A5 (en) | ||
JP2005319096A5 (en) | ||
CN103369230B (en) | A kind of carry out taking method and mobile terminal | |
CN207218885U (en) | A kind of intelligent terminal auto-exposure control structure for wireless light communication | |
CN109862273A (en) | Shooting object space automatic induction system and method based on camera array | |
CN116156030A (en) | Smart phone self-timer light supplementing lamp system and control method thereof |
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: 16880579 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: 16880579 Country of ref document: EP Kind code of ref document: A1 |