Two-dimensional code display method, apparatus, device, and medium
AssigneeBeijing Bytedance Network Technology Co., Ltd.
InventorsTong Xing, Sike Rong
Life of this patent
Estimating the term…
Abstract
The present disclosure relates to a two-dimensional (2D) code display method, apparatus, device, and medium. The 2D code display method includes: receiving a 2D code display operation for triggering display of a 2D code image corresponding to a target content, wherein the target content belongs to a first application; in response to the 2D code display operation, displaying the 2D code image including a first primary positioning point and a second primary positioning point that are arranged to overlap, wherein the first primary positioning point is above the second primary positioning point and has a preset color, and wherein the second primary positioning point has a representative color of the first application.
Claims14
A two-dimensional (2D) code display method for information sharing, comprising:
- receiving a 2D code display operation for triggering display of a 2D code image corresponding to a target item, wherein the target item belongs to a first application and corresponds to information to be shared;
- generating, via an electronic device, the 2D code image based on the target item, the 2D code image comprising a first primary positioning point and a second primary positioning point that are arranged to overlap, wherein the first primary positioning point is above the second primary positioning point and has a preset color, and the second primary positioning point has a representative color of the first application, wherein the representative color comprises a first-type color, and a binarized color obtained by binarizing the first-type color is the same as the preset color,
- wherein the generating the 2D code image comprises:
- generating an initial data point matrix, in which each data point is in the preset color, according to the target item,
- randomly selecting a preset ratio of data points from the initial data points and converting the selected data points from the preset color to the representative color, so that the data point matrix has the first data points having the preset color and the second data points having the representative color, and
- disposing, at at least one preset vertex of the 2D code image based on the data point matrix, the first primary positioning point and the second primary positioning point, and
- in response to the 2D code display operation, superimposing and displaying the 2D code image on an interface displayed when the 2D code display operation is received, via a display screen of the electronic device,
- wherein the data point matrix in the 2D code image, when scanned or recognized by a second application, enables the second application to switch to the first application for the target item.
A two-dimensional (2D) code display apparatus for information sharing, comprising:
- a first receiving unit configured to receive a 2D code display operation for triggering display of a 2D code image corresponding to a target item, wherein the target item belongs to a first application and corresponds to information to be shared;
- a unit configured to generate, via an electronic device, the 2D code image based on the target item, the 2D code image comprising a first primary positioning point and a second primary positioning point that are arranged to overlap, wherein the first primary positioning point is above the second primary positioning point and has a preset color, and the second primary positioning point has a representative color of the first application, wherein the representative color comprises a first-type color, and a binarized color obtained by binarizing the first-type color is the same as the preset color,
- wherein the unit configured to generate the 2D code image is further configured to:
- generate an initial data point matrix, in which each data point is in the preset color, according to the target item,
- randomly select a preset ratio of data points from the initial data points and converting the selected data points from the preset color to the representative color, so that the data point matrix has the first data points having the preset color and the second data points having the representative color, and
- dispose, at at least one preset vertex of the 2D code image based on the data point matrix, the first primary positioning point and the second primary positioning point, and
- a first display unit configured to, in response to the 2D code display operation, superimposing and display the 2D code image on an interface displayed when the 2D code display operation is received, via a display screen of the electronic device,
- wherein the data point matrix in the 2D code image, when scanned or recognized by a second application, enables the second application to jump to the first application to obtain the target item.
An electronic device, comprising:
- a processor;
- and
- a memory for storing executable instructions;
- wherein, the processor is configured to read the executable instructions from the memory and perform the executable instructions to implement operations comprising:
- receiving a 2D code display operation for triggering display of a 2D code image corresponding to a target item, wherein the target item belongs to a first application and corresponds to information to be shared;
- generating, via an electronic device, the 2D code image based on the target item, the 2D code image comprising a first primary positioning point and a second primary positioning point that are arranged to overlap, wherein the first primary positioning point is above the second primary positioning point and has a preset color, and the second primary positioning point has a representative color of the first application, wherein the representative color comprises a first-type color, and a binarized color obtained by binarizing the first-type color is the same as the preset color,
- wherein the generating the 2D code image comprises:
- generating an initial data point matrix, in which each data point is in the preset color, according to the target item,
- randomly selecting a preset ratio of data points from the initial data points and converting the selected data points from the preset color to the representative color, so that the data point matrix has the first data points having the preset color and the second data points having the representative color, and
- disposing, at at least one preset vertex of the 2D code image based on the data point matrix, the first primary positioning point and the second primary positioning point, and
- in response to the 2D code display operation, superimposing and displaying the 2D code image on an interface displayed when the 2D code display operation is received, via a display screen of the electronic device,
- wherein the data point matrix in the 2D code image, when scanned or recognized by a second application, enables the second application to jump to the first application to obtain the target item.
Dependencies are inferred from the claim text.