Novel two-dimensional code scanning method

A two-dimensional code and two-dimensional code scanning technology, which is applied in the field of new scanning two-dimensional code, can solve the problem of not being able to obtain ImageData data, etc., so as to reduce the space occupation of mobile phones and unnecessary costs, reduce the difficulty of development, and improve production efficiency Effect

Pending Publication Date: 2022-01-11
中科大数据研究院
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Canvas also has a variety of methods for drawing images, intercepting images, and reading images. Among them, the getImageData method can obtain pixel information on the entire Canvas, but Canvas does not have the ability to directly obtain ImageData data from MediaStream.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Novel two-dimensional code scanning method
  • Novel two-dimensional code scanning method
  • Novel two-dimensional code scanning method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0026] Embodiment 1: This embodiment provides a new method for scanning two-dimensional codes, which can be applied to the development of various scenarios of H5 scanning two-dimensional codes, for example:

[0027] (1) In the equipment management system, when it is necessary to scan the QR code pasted on the equipment to enter the equipment information, the common practice is to enter it through the code scanning gun. If this method is adopted, only one H5 page needs to be developed, which can be entered by using a mobile phone, which greatly saves hardware costs.

[0028] (2) During promotional activities, it is often necessary to scan the code to participate in the activity. The common practice is to develop a WeChat H5 webpage, and many permissions need to be applied for in the middle of the development. If the present invention is adopted, it is possible to get rid of the development restriction of the WeChat H5 interface, directly access the H5 interface with a browser o...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention belongs to the technical field of two-dimensional code scanning, and particularly relates to a novel two-dimensional code scanning method. The method comprises the following steps: acquiring camera data by calling a getUserMedia interface of a browser, storing an acquired MediaStream object in a Video, loading MediaStream data and Canvas through a Video label to intercept frame image information, and acquiring each frame image information loaded by the Video, thereby indirectly acquiring ImageData and transmitting the ImageData data to a jsQR (jsQR) for analysis; finally, drawing the intercepted Video into an interface at high frequency by using the drawing capability of Canvas to achieve an effect of simulating video playing, positioning the position where the two-dimensional code exists through data returned by the jsQR, and marking the position by using the drawing capability of Canvas. According to the method, the development limitation of the WeChat H5 interface can be eliminated, the H5 interface can be directly accessed on a mobile phone through a browser, development can be carried out without applying for many permissions, the problem that the H5 scanning two-dimensional code cannot get rid of underlying development or a server side can be effectively solved, the development difficulty is reduced, and the production efficiency is improved.

Description

technical field [0001] The invention belongs to the technical field of two-dimensional codes, and in particular relates to a novel method for scanning two-dimensional codes. Background technique [0002] At present, QR codes, as a fast-response technical means, have spread across every corner of our lives. Scanning QR codes has become our daily behavior, such as scanning codes to log in, scan codes to pay, scan codes to enter, scan codes to order food, etc. . [0003] When realizing the H5 scanning QR code function, the common method is to add an interface to call the hardware camera in the webview, and use the native operating system to play video and analyze the QR code to achieve the scanning effect, such as H5 page scanning in WeChat code and scan the code on the H5 page in Alipay. This method requires the development of an interface for calling the device hardware at the bottom layer of the webview. Due to the large number of operating system versions and APP types, t...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/448G06K7/14
CPCG06F9/4488G06K7/1417
Inventor 程松庆王元卓程伯群赵俊霞胡玉龙赵起张宸硕谷世宇陈中正
Owner 中科大数据研究院
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products