A method and installation to embed pattern in two-dimensional bar code
A technology of two-dimensional barcode and embedding position, which is applied in the field of channel coding and data communication, which can solve the problems of reducing the available area of the surface of the carrying object and consuming resources, and achieve the effect of novel and vivid two-dimensional barcode, saving resources and increasing efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0087] Referring to Fig. 2, it is a flow chart of Embodiment 1 of the method of the present invention. In this embodiment, the case where the pattern to be embedded and the resolution of the two-dimensional barcode are different will be introduced as an example, wherein the comparison pattern and the embedded pattern are the pattern to be embedded Carry out the pattern after rasterization processing, embodiment 1 specifically comprises the following steps:
[0088] Step 201, perform two-dimensional barcode encoding on the preset original data to obtain a two-dimensional barcode, and obtain the position of the control symbol unit area of the two-dimensional barcode.
[0089] The preset raw data is the data that needs to be encoded in the two-dimensional barcode, and the original data is encoded by the encoding method specified by the user. The encoding method can adopt various encoding methods of the existing two-dimensional barcode according to the needs, such as Codc16K , C...
Embodiment 2
[0103] Referring to Fig. 3a, it is a flow chart of method embodiment 2 of the present invention, including:
[0104] Step 301, perform two-dimensional barcode encoding on the preset original data to obtain a two-dimensional barcode, and obtain the position of the control symbol unit area of the two-dimensional barcode.
[0105] Step 302 , judging whether the preset pattern to be embedded covers the control symbol unit area of the two-dimensional barcode according to the pre-specified embedding position of the pattern. If the pattern to be embedded covers the control symbol unit area of the two-dimensional barcode, perform step 303 ; otherwise, perform step 304 .
[0106] Step 303, embedding fails. The original parameters of the preset can be adjusted by the user, again for embedding.
[0107] Step 304, comparing the color values of the corresponding modules of the pattern to be embedded with the two-dimensional barcode, and judging whether the number of modules with ...
Embodiment 3
[0110] Referring to Fig. 4a, it is a flow chart of method embodiment 3 of the present invention, including:
[0111] Step 401, perform two-dimensional barcode encoding on the preset original data to obtain a two-dimensional barcode, and obtain the position of the control symbol unit area of the two-dimensional barcode.
[0112] Step 402, performing rasterization processing on the preset pattern to be embedded to obtain a rasterized pattern.
[0113] Step 403 , judging whether the rasterized pattern covers the control symbol unit area of the two-dimensional barcode according to the pre-designated embedding position of the pattern. If the grid pattern covers the control symbol unit area of the two-dimensional barcode, go to step 404 ; if not, go to step 405 .
[0114] Step 404, embedding fails. The preset original parameters can be adjusted by the user to re-embed the pattern.
[0115] Step 405 , comparing the grid pattern with the color values of corresponding module...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 