IP Library Granted Patent US 11,064,112
Granted Patent B2
US 11,064,112 · App. 16/686,415 · Granted Jul 13, 2021

Image display method and device, and electronic device

Inventors: Lingnan Shen (Hangzhou, CN); Jie Qi (Hangzhou, CN); Fen Zhai (Shanghai, CN); Zhixiang Tang (Hangzhou, CN); Huifeng Jin (Shanghai, CN)
Assignee: Advanced New Technologies Co., Ltd.
H04N5/23222G06K9/00255G06K9/00912H04N5/2628
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,064,112
App. No.
16/686,415
Granted
Jul 13, 2021
Kind
B2
Abstract

An end-user device displays an image at a first size. The end-user device obtains a distance between the end-user device and an object. The end-user device includes a predetermined mapping relationship between distance and size. The end-user device determines a second size based on the distance and the predetermined mapping relationship. The end-user device displays the image at the second size.

Claims (67)

1. A computer-implemented method, comprising:

displaying, by an end-user device for a scanning device, a code image at a first size, wherein the end-user device comprises at least one camera, wherein the code image includes at least one of a payment code image or a ticket collection code image, and wherein the end-user device stores a predetermined mapping relationship between distance and size; and

after displaying the code image at the first size:

emitting, by a distance sensor disposed in the end-user device, an infrared ray at a first time;

receiving, by the distance sensor, a reflection of the infrared ray from an object the scanning device at a second time;

calculating, by the end-user device, a first distance based on a time difference between the first time and the second time;

obtaining an image of the scanning device captured by the at least one camera;

calculating, by the end-user device, a second distance based on the image of the scanning device using an image processing algorithm;

jointly determining a distance between the end-user device and the scanning device according to the first distance calculated based on the time difference and the second distance calculated based on the image of the scanning device;

determining, by the end-user device, a second optimized size based on a screen size of the end-user device, the distance between the end-user device and the scanning device, and the predetermined mapping relationship; and

displaying, by the end-user device for the scanning device, the code image at the second optimized size as being determined by the screen size of the end-user device, the distance between the end-user device and the scanning device, and the predetermined mapping relationship.

2. The computer-implemented method of claim 1 , wherein the code image comprises a two-dimensional code.

3. The computer-implemented method of claim 1 , wherein the at least one camera comprises a rotary camera or a front-facing camera.

4. The computer-implemented method of claim 1 , wherein a third-party detection device having a short-range wireless connection to the end-user device detects the distance between the end-user device and the scanning device, and the method further comprises:

receiving, by the end-user device and from the third-party detection device, the distance between the end-user device and the scanning device through the short-range wireless connection, wherein the short-range wireless connection comprises one of Bluetooth, infrared, a wireless local area network, Wi-Fi, ultra-wideband communication, ZigBee, and near field communication.

5. The computer-implemented method of claim 4 , wherein the third-party detection device is in the scanning device, and the scanning device establishes the short-range wireless connection to the end-user device.

6. The computer-implemented method of claim 1 , wherein the first size is a default size, and displaying the code image at the second optimized size comprises at least one of:

automatically increasing the displayed code image at the first size to the second optimized size if the second optimized size is greater than the first size;

automatically decreasing the displayed code image at the first size to the second optimized size if the second optimized size is less than the first size; or

maintaining the displayed code image at the first size if the second optimized size equals to the first size.

7. A non-transitory, computer-readable medium storing one or more instructions executable by a computer system to perform operations comprising:

displaying, by an end-user device for a scanning device, a code image at a first size, wherein the end-user device comprises at least one camera, wherein the code image includes at least one of a payment code image or a ticket collection code image, and wherein the end-user device stores a predetermined mapping relationship between distance and size; and

after displaying the code image at the first size:

emitting, by a distance sensor disposed in the end-user device, an infrared ray at a first time;

receiving, by the distance sensor, a reflection of the infrared ray from the scanning device at a second time;

calculating, by the end-user device, a first distance based on a time difference between the first time and the second time;

obtaining an image of the scanning device captured by the at least one camera;

calculating, by the end-user device, a second distance based on the image of the scanning device using an image processing algorithm;

jointly determining a distance between the end-user device and the scanning device according to the first distance calculated based on the time difference and the second distance calculated based on the image of the scanning device;

determining, by the end-user device, a second optimized size based on a screen size of the end-user device, the distance between the end-user device and the scanning device, and the predetermined mapping relationship; and

displaying, by the end-user device for the scanning device, the code image at the second optimized size as being determined by the screen size of the end-user device, the distance between the end-user device and the scanning device, and the predetermined mapping relationship.

8. The non-transitory, computer-readable medium of claim 7 , wherein the code image comprises a two-dimensional code.

9. The non-transitory, computer-readable medium of claim 7 , wherein the at least one camera comprises a rotary camera or a front-facing camera.

10. The non-transitory, computer-readable medium of claim 7 , wherein a third-party detection device having a short-range wireless connection to the end-user device detects the distance between the end-user device and the scanning device, and the operations further comprise:

receiving, by the end-user device and from the third-party detection device, the distance between the end-user device and the scanning device through the short-range wireless connection, wherein the short-range wireless connection comprises one of Bluetooth, infrared, a wireless local area network, Wi-Fi, ultra-wideband communication, ZigBee, and near field communication.

11. The non-transitory, computer-readable medium of claim 10 , wherein the third-party detection device is in the scanning device, and the scanning device establishes the short-range wireless connection to the end-user device.

12. The non-transitory, computer-readable medium of claim 7 , wherein the first size is a default size, and displaying the code image at the second optimized size comprises at least one of:

automatically increasing the displayed code image at the first size to the second optimized size if the second optimized size is greater than the first size;

automatically decreasing the displayed code image at the first size to the second optimized size if the second optimized size is less than the first size; or

maintaining the displayed code image at the first size if the second optimized size equals to the first size.

13. A computer-implemented system, comprising:

one or more computers; and

one or more computer memory devices interoperably coupled with the one or more computers and having tangible, non-transitory, machine-readable media storing one or more instructions that, when executed by the one or more computers, perform one or more operations comprising:

displaying, by an end-user device for a scanning device, a code image at a first size, wherein the end-user device comprises at least one camera, wherein the code image includes at least one of a payment code image or a ticket collection code image, and wherein the end-user device stores a predetermined mapping relationship between distance and size; and

after displaying the code image at the first size:

emitting, by a distance sensor disposed in the end-user device, an infrared ray at a first time;

receiving, by the distance sensor, a reflection of the infrared ray from the scanning device at a second time;

calculating, by the end-user device, a first distance based on a time difference between the first time and the second time;

obtaining an image of the scanning device captured by the at least one camera;

calculating, by the end-user device, a second distance based on the image of the scanning device using an image processing algorithm;

jointly determining a distance between the end-user device and the scanning device according to the first distance calculated based on the time difference and the second distance calculated based on the image of the scanning device;

determining, by the end-user device, a second optimized size based on a screen size of the end-user device, the distance between the end-user device and the scanning device, and the predetermined mapping relationship; and

displaying, by the end-user device for the scanning device, the code image at the second optimized size as being determined by the screen size of the end-user device, the distance between the end-user device and the scanning device, and the predetermined mapping relationship.

14. The computer-implemented system of claim 13 , wherein the code image comprises a two-dimensional code.

15. The computer-implemented system of claim 13 , wherein the at least one camera comprises a rotary camera or a front-facing camera.

16. The computer-implemented system of claim 13 , wherein a third-party detection device having a short-range wireless connection to the end-user device detects the distance between the end-user device and the scanning device, and the operations further comprise:

receiving, by the end-user device and from the third-party detection device, the distance between the end-user device and the scanning device through the short-range wireless connection, wherein the short-range wireless connection comprises one of Bluetooth, infrared, a wireless local area network, Wi-Fi, ultra-wideband communication, ZigBee, and near field communication.

17. The computer-implemented system of claim 16 , wherein the third-party detection device is in the scanning device, and the scanning device establishes the short-range wireless connection to the end-user device.

18. The computer-implemented method of claim 1 , wherein determining the second optimized size comprises:

determining the second optimized size based on the predetermined mapping relationship and the distance between the end-user device and the scanning device; and

in response to determining that the second optimized size is larger than the screen size of the end-user device, determining the second optimized size as the screen size of the end-user device.

19. The non-transitory, computer-readable medium of claim 7 , wherein determining the second optimized size comprises:

determining the second optimized size based on the predetermined mapping relationship and the distance between the end-user device and the scanning device; and

in response to determining that the second optimized size is larger than the screen size of the end-user device, determining the second optimized size as the screen size of the end-user device.

20. The computer-implemented system of claim 13 , wherein determining the second optimized size comprises:

determining the second optimized size based on the predetermined mapping relationship and the distance between the end-user device and the scanning device; and

in response to determining that the second optimized size is larger than the screen size of the end-user device, determining the second optimized size as the screen size of the end-user device.

Assignments (3)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 10, 2020
From: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
To: ADVANCED NEW TECHNOLOGIES CO., LTD.
Reel/Frame 053754/0625 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 31, 2020
From: ALIBABA GROUP HOLDING LIMITED
To: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
Reel/Frame 053743/0464 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 7, 2020
From: SHEN, LINGNAN; QI, JIE; ZHAI, FEN; TANG, ZHIXIANG; JIN, HUIFENG
To: ALIBABA GROUP HOLDING LIMITED
Reel/Frame 052333/0349 →