CN108154058B - Graphic code display and position area determination method and device - Google Patents

Graphic code display and position area determination method and device Download PDF

Info

Publication number
CN108154058B
CN108154058B CN201611103857.1A CN201611103857A CN108154058B CN 108154058 B CN108154058 B CN 108154058B CN 201611103857 A CN201611103857 A CN 201611103857A CN 108154058 B CN108154058 B CN 108154058B
Authority
CN
China
Prior art keywords
display screen
area
position area
graphic code
target position
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611103857.1A
Other languages
Chinese (zh)
Other versions
CN108154058A (en
Inventor
赵文雅
陈悦
梁于阳
张蕊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Miaomiaoce Technology Beijing Co ltd
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Miaomiaoce Technology Beijing Co ltd
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Miaomiaoce Technology Beijing Co ltd, Beijing Xiaomi Mobile Software Co Ltd filed Critical Miaomiaoce Technology Beijing Co ltd
Priority to CN201611103857.1A priority Critical patent/CN108154058B/en
Publication of CN108154058A publication Critical patent/CN108154058A/en
Application granted granted Critical
Publication of CN108154058B publication Critical patent/CN108154058B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10544Methods 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/10821Methods 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/1095Methods 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 the scanner comprising adaptations for scanning a record carrier that is displayed on a display-screen or the like
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1439Methods for optical code recognition including a method step for retrieval of the optical code

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Electromagnetism (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a graphic code display method and a device and a method for determining a position area, wherein the graphic code display method comprises the following steps: determining a target position area on a display screen which can be scanned by a scanning terminal; and adjusting the graphic code on the display screen according to the target position area so that the adjusted graphic code is displayed in the target position area. According to the method and the device, the target position area on the display screen which can be scanned by the scanning terminal is determined firstly, the graphic code on the display screen is adjusted according to the target position area, so that the adjusted graphic code is displayed in the target position area, and the target position area is an area which can be scanned by a user, so that the user can scan the two-dimensional code quickly, information corresponding to the two-dimensional code is obtained, the scanning efficiency is improved, and convenience is brought to the user.

Description

Graphic code display and position area determination method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for displaying a graphic code and determining a location area.
Background
Graphic codes have been widely used in various fields. Taking the two-dimensional code as an example, a download link or a commodity link of an Application (APP) can be displayed on a screen in a two-dimensional code manner, so that a scanning user can obtain corresponding information in a manner of scanning the two-dimensional code through a scanning terminal.
However, when the scanning user is too close to the screen and the two-dimensional code is too large, or the scanning user is too far from the screen and the two-dimensional code is too small, or the screen is large and the two-dimensional code is at a screen position where the scanning user cannot scan, the scanning user is difficult to scan the two-dimensional code displayed on the screen, and further cannot acquire information corresponding to the two-dimensional code.
Disclosure of Invention
In order to overcome the problems in the related art, the disclosure provides a graphic code display method and a position area determination method and device.
According to a first aspect of the embodiments of the present disclosure, a method for displaying a graphic code is provided, where the method includes:
determining a target position area on a display screen which can be scanned by a scanning terminal;
and adjusting the graphic code on the display screen according to the target position area so that the adjusted graphic code is displayed in the target position area.
Optionally, the determining a target location area on a display screen that can be scanned by the scanning terminal includes:
shooting a figure image containing a scanning user through a camera device arranged on a display screen;
determining the relative position of the scanning user and the display screen according to the figure image;
and determining a target position area on a display screen which can be scanned by a scanning terminal according to the relative position, wherein the scanning terminal is a terminal held by the scanning user.
Optionally, the determining, according to the relative position, a target position area on a display screen that can be scanned by the scanning terminal includes:
and determining the position area corresponding to the determined relative position as a target position area on a display screen which can be scanned by the scanning terminal according to the corresponding relation between the pre-stored relative position and the position area.
Optionally, the determining a target location area on a display screen that can be scanned by the scanning terminal includes:
broadcasting identification information for identifying a display screen;
receiving a target position area sent by a server;
wherein the target location area is: and after determining the current display picture of the display screen according to the identification information, the server determines a target position area on the display screen which can be scanned by the scanning terminal according to the relation between the shot image and the current display picture, wherein the identification information and the shot image are sent to the server by the scanning terminal, and the shot image is an image obtained by shooting the picture on the display screen by the scanning terminal.
Optionally, the determining a target location area on a display screen that can be scanned by the scanning terminal includes:
receiving a shot image sent by a scanning terminal, wherein the shot image is an image obtained by shooting a picture on a display screen by the scanning terminal;
determining a current display picture of a display screen;
and determining a target position area on the display screen which can be scanned by the scanning terminal according to the relation between the shot image and the current display picture.
Optionally, the determining, according to the relationship between the shot image and the current display picture, a target position area on the display screen that can be scanned by the scanning terminal includes:
if the shot image contains the current display picture, the target position area on the display screen which can be scanned by the scanning terminal is the full-screen area of the display screen;
if the current display picture contains the shot image, the shot image is compared with the current display picture to determine the position area of the shot image in the current display picture, and the target position area on the display screen which can be scanned by the scanning terminal is determined according to the determined position area.
Optionally, the target position area is a target coordinate area;
the adjusting the graphic code on the display screen according to the target position area so that the adjusted graphic code is displayed in the target position area includes:
acquiring a coordinate area of the graphic code on the display screen;
and comparing the target coordinate area with the coordinate area of the graphic code, zooming the graphic code according to the comparison result, and moving the zoomed graphic code to the target coordinate area for display.
Optionally, the method further includes:
and after the adjustment of the graphic code is finished and preset time is separated, restoring to display the graphic code.
According to a second aspect of embodiments of the present disclosure, there is provided a location area determination method, the method comprising:
receiving a shot image sent by a scanning terminal and identification information for identifying a display screen, wherein the shot image is an image obtained by shooting a picture on the display screen by the scanning terminal;
determining a current display picture of the display screen according to the identification information;
determining a target position area on a display screen which can be scanned by a scanning terminal according to the relation between the shot image and the current display picture;
and sending the target position area to the display screen so that the display screen adjusts the graphic code on the display screen according to the target position area, and the adjusted graphic code is displayed in the target position area.
According to a third aspect of the embodiments of the present disclosure, there is provided a graphic code display apparatus, the apparatus including:
the area determination module is configured to determine a target position area on a display screen which can be scanned by the scanning terminal;
and the graphic code display module is configured to adjust the graphic code on the display screen according to the target position area so that the adjusted graphic code is displayed in the target position area.
Optionally, the area determining module includes:
an image capturing sub-module configured to capture a person image including a scanning user by an image capturing device provided on a display screen;
a relative position determination sub-module configured to determine a relative position of the scanning user and the display screen from the person image;
a first area determination submodule configured to determine a target position area on a display screen that can be scanned by a scanning terminal according to the relative position, the scanning terminal being a terminal held by the scanning user.
Optionally, the first region determining sub-module is further configured to: and determining the position area corresponding to the determined relative position as a target position area on a display screen which can be scanned by the scanning terminal according to the corresponding relation between the pre-stored relative position and the position area.
Optionally, the area determining module includes:
an information broadcasting sub-module configured to broadcast identification information for identifying a display screen;
the information receiving submodule is configured to receive a target position area sent by the server side;
wherein the target location area is: and after determining the current display picture of the display screen according to the identification information, the server determines a target position area on the display screen which can be scanned by the scanning terminal according to the relation between the shot image and the current display picture, wherein the identification information and the shot image are sent to the server by the scanning terminal, and the shot image is an image obtained by shooting the picture on the display screen by the scanning terminal.
Optionally, the area determining module includes:
the image receiving sub-module is configured to receive a shot image sent by the scanning terminal, and the shot image is an image obtained by shooting a picture on a display screen by the scanning terminal;
a picture determination submodule configured to determine a currently displayed picture of the display screen;
and the second area determining submodule is configured to determine a target position area on the display screen which can be scanned by the scanning terminal according to the relation between the shot image and the current display picture.
Optionally, the second region determining sub-module is further configured to:
if the shot image contains the current display picture, the target position area on the display screen which can be scanned by the scanning terminal is the full-screen area of the display screen;
if the current display picture contains the shot image, the shot image is compared with the current display picture to determine the position area of the shot image in the current display picture, and the target position area on the display screen which can be scanned by the scanning terminal is determined according to the determined position area.
Optionally, the target position area is a target coordinate area; the graphic code presentation module is further configured to:
acquiring a coordinate area of the graphic code on the display screen;
and comparing the target coordinate area with the coordinate area of the graphic code, zooming the graphic code according to the comparison result, and moving the zoomed graphic code to the target coordinate area for display.
Optionally, the apparatus further comprises:
and the restoration module is configured to restore and display the graphic code after the adjustment of the graphic code is completed and a preset time interval is set.
According to a fourth aspect of embodiments of the present disclosure, there is provided a location area determination apparatus, the apparatus comprising:
the information receiving module is configured to receive a shot image sent by the scanning terminal and identification information for identifying the display screen, wherein the shot image is an image obtained by shooting a picture on the display screen by the scanning terminal;
the picture determining module is configured to determine a currently displayed picture of the display screen according to the identification information;
the position area determining module is configured to determine a target position area on a display screen which can be scanned by a scanning terminal according to the relation between the shot image and the current display picture;
the information sending module is configured to send the target position area to the display screen, so that the display screen adjusts the graphic code on the display screen according to the target position area, and the adjusted graphic code is displayed in the target position area.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a graphic code display apparatus, the apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
determining a target position area on a display screen which can be scanned by a scanning terminal;
and adjusting the graphic code on the display screen according to the target position area so that the adjusted graphic code is displayed in the target position area.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
according to the method and the device, the target position area on the display screen which can be scanned by the scanning terminal is determined firstly, the graphic code on the display screen is adjusted according to the target position area, so that the adjusted graphic code is displayed in the target position area, and the target position area is an area which can be scanned by a user, so that the user can scan the two-dimensional code quickly, information corresponding to the two-dimensional code is obtained, the scanning efficiency is improved, and convenience is brought to the user.
The method comprises the steps of shooting a figure image containing a scanning user, analyzing the figure image to determine the relative position of the scanning user and a display screen, and determining a target position area on the display screen which can be scanned by a scanning terminal according to the relative position, so that the position area is positioned.
According to the method and the device, the target position area on the display screen which can be scanned by the scanning terminal is determined according to the corresponding relation and the determined relative position.
According to the method, the identification information is broadcasted through the display screen, the scanning terminal receives the identification information and sends the shot image and the identification information to the server side, the server side can determine the display screen according to the identification information and can further judge whether the display screen to be scanned by a scanning user is the display screen identified by the identification information according to the current display pictures in the shot image and the display screen, double judgment is achieved, accurate adjustment of the graphic code is achieved, and the adjusted graphic code is displayed in the position area conveniently. Meanwhile, the determination of the position area is realized through a server instead of a display screen, so that the hardware requirement on the display screen is reduced.
The method and the device for determining the target position area through the display screen can achieve real-time determination of the target position area, and avoid the defect that the target position area is not determined timely due to network reasons, and further the graphic code is not adjusted timely.
According to the method and the device, after the graphic code is adjusted and the preset time is set, the graphic code is automatically restored and displayed, and the situation that the original display picture of the display screen is influenced due to the fact that the adjusted graphic code is displayed all the time is avoided, so that convenience is brought to a user.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a scene diagram showing a graphic code according to the present disclosure.
Fig. 2 is a flowchart illustrating a graphic code presentation method according to an exemplary embodiment of the present disclosure.
Fig. 3 is a flow chart illustrating a location area determination method according to an exemplary embodiment of the present disclosure.
Fig. 4A is an application scenario diagram illustrating a graphical code presentation method according to an exemplary embodiment of the present disclosure.
Fig. 4B is a timing diagram illustrating a graphical code presentation method according to an exemplary embodiment of the present disclosure.
Fig. 4C is an application scenario diagram of another graphic code presentation method according to an exemplary embodiment of the present disclosure.
Fig. 4D is an application scenario diagram of another graphical code presentation method according to an exemplary embodiment of the present disclosure.
Fig. 4E is an application scenario diagram illustrating another graphical code presentation method according to an exemplary embodiment of the present disclosure.
Fig. 5 is a block diagram illustrating a graphic code presentation apparatus according to an exemplary embodiment of the present disclosure.
Fig. 6 is a block diagram illustrating another graphical code presentation device according to an example embodiment of the present disclosure.
Fig. 7 is a block diagram of another graphical code presentation device shown in accordance with an exemplary embodiment of the present disclosure.
Fig. 8 is a block diagram illustrating another graphical code presentation device according to an example embodiment of the present disclosure.
Fig. 9 is a block diagram illustrating another graphical code presentation device according to an example embodiment of the present disclosure.
Fig. 10 is a block diagram illustrating a location area determination device according to an exemplary embodiment of the present disclosure.
Fig. 11 is a block diagram illustrating an apparatus for graphic code presentation according to an exemplary embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
The graphic code may be a graphic identifier arranged according to a certain rule by using a certain specific graphic to express certain information. For example, the graphic code may be a two-dimensional code, a bar code, or the like. The graphic code can be used for information acquisition, website skip, advertisement push, preferential promotion and the like. The scanning user (also called as a viewer) can scan the graphic code through the scanning terminal, so as to obtain the information corresponding to the graphic code. The graphic code can be applied to various fields and scenes, for example, the graphic code is displayed on a large screen, so that a scanning user can obtain corresponding information by scanning a two-dimensional code through a scanning terminal.
However, the situation that the scanning user is too close to the screen and the two-dimensional code is too large, or the scanning user is too far away from the screen and the two-dimensional code is too small, or the screen is large and the two-dimensional code is at a screen position where the scanning user cannot scan, and the like often occurs, and at this moment, the user is difficult to scan the graphic code on the screen. The user often needs to scan the graphic code by means of being far away from the display screen, being close to the graphic code by means of external force and the like, the efficiency of visible scanning of the graphic code is low, and inconvenience is brought to the user.
As shown in fig. 1, fig. 1 is a scene diagram showing a graphic code according to the present disclosure. Under this scene, because the display screen is great, user's cell-phone can only scan A position area on the display screen, and the two-dimensional code is in the upper left corner of display screen, and the user need adopt modes such as taking the ladder just can scan the two-dimensional code, otherwise can't scan the two-dimensional code through the cell-phone, then can't acquire the information that the two-dimensional code corresponds.
In order to avoid the defect that the two-dimensional code in the display screen cannot be scanned in the related art, the target position area on the display screen which can be scanned by the scanning terminal is determined firstly, the graphic code on the display screen is adjusted according to the target position area, so that the adjusted graphic code is displayed in the target position area, and the target position area is an area which can be scanned by a user, so that the user can quickly scan the two-dimensional code, further information corresponding to the two-dimensional code is acquired, the scanning efficiency is improved, and convenience is brought to the user.
As shown in fig. 2, fig. 2 is a flowchart illustrating a graphic code presentation method according to an exemplary embodiment of the present disclosure, which may include the following steps:
in step 201, a target location area on a display screen that can be scanned by a scanning terminal is determined.
In step 202, the graphic code on the display screen is adjusted according to the target location area, so that the adjusted graphic code is displayed in the target location area.
The embodiment of the present disclosure can be applied to a display screen, which is a display device and has not only a display capability but also an information processing capability. For example, the display screen may be a display screen, a tiled wall, or the like. The display screen the currently displayed picture may comprise text information, image information, video information, etc. The scanning terminal in the embodiments of the present disclosure is an electronic device with a scanning function, for example, the scanning terminal may be a smart phone, a tablet computer, a PDA (Personal Digital Assistant), a smart band, a smart watch, and so on.
In the present disclosure, the target position area is an area of the display screen that the scanning terminal can scan. When the display screen is larger and the scanning user is closer to the display screen, the scanning terminal can scan only a partial area on the display screen, and when the display screen is smaller or the scanning user is farther from the display screen, the scanning terminal can scan the whole area of the display screen.
This disclosure lists several ways of determining the target location area on the display screen that the scanning terminal can scan:
in an optional implementation manner, the determining a target location area on a display screen that can be scanned by a scanning terminal includes:
the image of the person including the scanning user is photographed by a camera device provided on the display screen.
And determining the relative position of the scanning user and the display screen according to the person image.
And determining a target position area on a display screen which can be scanned by a scanning terminal according to the relative position, wherein the scanning terminal is a terminal held by the scanning user.
In the embodiment, a camera device may be disposed on the display screen, and the image of the person including the scanned user is captured by the camera device. The timing when the image pickup device picks up the person image may be that a preset shooting condition is satisfied. Specifically, when the preset shooting condition is met, the image of the person including the scanning user is shot through the image pickup device arranged on the display screen.
The preset shooting condition may be that a preset time interval is reached, that a person is scanned, or that a scanning request sent by a scanning terminal is received. For example, the scanning terminal may log in a preset application program, send a scanning request to the display screen through the preset application program, and shoot a person image including a scanning user through the camera device arranged on the display screen only when the display screen receives the scanning request, so that resource waste caused by real-time shooting by the camera device is avoided.
The scanning user is a user who scans the graphic code by using the scanning terminal. The photographing device photographs a person image including a scanning user in order to determine a relative position of the scanning user and a display screen, that is, to determine the relative position of the scanning user and the display screen based on the person image.
The relative position may include scanning a distance between the user and the display screen, and may further include scanning a forward projection area of the user on the display screen or scanning a corresponding position of the user on the display screen. Several methods of determining the relative position of the scanning user and the display screen are listed below.
In one example, a contrast object may be provided in the right opposite and lateral directions of the display screen, the relative position of the contrast object to the display screen being known. By comparing the person with the contrast object, the relative position of the scanning user and the display screen can be determined according to the relation between the person in the person image and the contrast object.
In another example, the distance measuring device can be formed by combining a camera and a laser pen, so that the distance between the scanning user and the display screen can be detected.
In another example, the distance between the scanning user and the display screen may also be measured by passive ranging methods such as stereo vision, motion ranging, monocular ranging, and the like. The stereoscopic vision is a stereoscopic perception analysis method simulating human beings, a binocular or multi-view camera observes the same scene at different viewpoints, and two-dimensional images of an object shot by target images at different viewing angles are acquired. The three-dimensional information of the scenery is obtained by calculating the position deviation, namely parallax, among the pixels of the image through the principle of triangulation. The motion distance measurement method can acquire continuous target images at different times or different spatial positions by using a monocular camera, and calculate the distance and other parameters of a scanning user through the time and spatial change of the scanning user in a two-dimensional image sequence. The distance measurement method based on image processing in monocular distance measurement includes a Depth From Focus (DFF) method and a Defocus From Defocus (DFD) method, and the specific test method is not described herein again.
It can be understood that other manners may also be adopted to determine the relative position between the scanning user and the display screen according to the person image, and details are not repeated herein.
After determining the relative position between the scanning user and the display screen, the target position area on the display screen that can be scanned by the scanning terminal can be determined according to the relative position.
In one example, if the relative position includes scanning a forward projection area of the user on the display screen, the forward projection area may be directly determined as a target position area that the scanning terminal can scan onto the display screen.
In another example, the correspondence of the relative position to the position area may be stored in advance. For example, when the relative position includes a distance of the scanning user from the display screen and a forward projection area of the scanning user on the display screen, the positional relationship of the distance, the forward projection area, and the position area is stored in advance. Based on the position area, the position area corresponding to the determined relative position can be determined as a target position area on the display screen which can be scanned by the scanning terminal according to the corresponding relation between the pre-stored relative position and the position area. Therefore, the target position area on the display screen which can be scanned by the scanning terminal is determined according to the corresponding relation and the determined relative position, the method is easy to realize, and the efficiency of determining the position area is improved.
As can be seen from the foregoing embodiments, in the present embodiment, the person image including the scanning user is captured, the relative position between the scanning user and the display screen is determined by analyzing the person image, and the target position area on the display screen that can be scanned by the scanning terminal is determined according to the relative position, so as to achieve positioning of the position area.
In another alternative implementation manner, the determining a target location area on a display screen that can be scanned by a scanning terminal includes:
identification information for identifying the display screen is broadcast.
And receiving the target position area sent by the server.
Wherein the target location area is: and after determining the current display picture of the display screen according to the identification information, the server determines a target position area on the display screen which can be scanned by the scanning terminal according to the relation between the shot image and the current display picture, wherein the identification information and the shot image are sent to the server by the scanning terminal, and the shot image is an image obtained by shooting the picture on the display screen by the scanning terminal.
The display screen may broadcast identification information for identifying the display screen. The identification information may be the name, number, and geographical location information of the display screen, or may be any combination of numbers, character strings, symbols, and the like, as long as the display screen can be uniquely identified.
The display screen may broadcast the identification information via short-range wireless communication techniques such as bluetooth. The purpose of broadcasting the identification information is to allow the service end to identify the display screen by scanning the terminal. Specifically, the scanning terminal can receive the identification information broadcasted by the display screen, shoot the picture on the display screen, send the shot image and the identification information to the server, and the server determines the target position area on the display screen which can be scanned by the scanning terminal according to the shot image and the identification information.
When the scanning terminal needs to scan, a preset application program can be logged in, the camera is called by the preset application program to shoot a picture on the display screen, one shot image can be shot, and multiple shot images can also be shot. The user can photograph at an arbitrary position of the picture on the display screen. The area that can be photographed by the scanning terminal can be considered as an area that can be scanned by the scanning terminal. After the shot image and the identification information are obtained, the scanning terminal can send the shot image and the identification information to the server through a preset application program, for example, a scanning request carrying the shot image and the identification information can be sent to the server, so that when the server receives the scanning request, a target position area on a display screen which can be scanned by the scanning terminal is determined according to the shot image and the identification information.
As to how the server determines the target location area on the display screen that can be scanned by the scanning terminal according to the shot image and the identification information, the present disclosure also provides a location area determining method, as shown in fig. 3, where fig. 3 is a flowchart of a location area determining method shown in the present disclosure according to an exemplary embodiment, and the method may be applied to the server and includes the following steps 301 to 304:
in step 301, a shot image and identification information for identifying a display screen, which are sent by a scanning terminal, are received, wherein the shot image is obtained by shooting a picture on the display screen by the scanning terminal.
In step 302, a currently displayed picture of the display screen is determined according to the identification information.
The server can identify the display screen according to the identification information, and the server can determine the current display picture of the display screen due to the fact that the server is in network connection with the display screen.
In step 303, a target position area on the display screen that can be scanned by the scanning terminal is determined according to the relationship between the shot image and the current display frame.
The shot image is an image obtained by shooting a picture on the display screen, so that a target position area on the display screen which can be scanned by the scanning terminal can be determined according to an overlapped picture of the shot image and the current display picture.
In one example, if the shot image includes the current display frame, the target position area on the display screen that can be scanned by the scanning terminal is a full-screen area of the display screen.
The position area is a full screen area of the display screen, the position of a scanning user far away from the display screen can be estimated, or the size of the display screen is small, and when the graphic code is adjusted subsequently, the graphic code can be amplified so that the scanning user can scan through the scanning terminal.
In one example, if the current display picture includes a shot image, the shot image is compared with the current display picture to determine a position area of the shot image in the current display picture, and a target position area on a display screen which can be scanned by a scanning terminal is determined according to the determined position area.
The current display picture contains the shot image, the shot image is a part of the current display picture, and the position area of the shot image in the current display picture can be determined by comparing the shot image with the current display picture. In one aspect, the determined location area may be directly determined as a target location area that the scanning terminal can scan onto the display screen. On the other hand, the zoom adjustment may be performed according to the determined position region, and the adjustment result may be determined as a target position region on the display screen that can be scanned by the scanning terminal.
For example, when the captured image is an image, after the position area of the captured image in the current display frame is determined, it is estimated that the position area of the captured image that can be scanned on the display screen by the scanning terminal is larger than the position area of the captured image in the current display frame, the position area of the captured image in the current display frame may be enlarged in proportion, and the enlarged area may be determined as a target position area that can be scanned on the display screen by the scanning terminal.
For another example, when the captured image is a plurality of images, after the position area of the captured image in the current display frame is determined, it may be estimated that the position area that the scanning terminal can scan on the display screen is close to the determined position area, so that the determined position area is directly determined as the target position area that the scanning terminal can scan on the display screen.
When the current display picture contains the shot image, the distance from the scanning user to the display screen can be estimated to be short, or the screen is large, and when the graphic code is adjusted subsequently, the graphic code can be moved to the determined position area, so that the scanning user can scan through the scanning terminal.
In step 304, the target location area is sent to the display screen, so that the display screen adjusts the graphic code on the display screen according to the target location area, and the adjusted graphic code is displayed in the target location area.
As can be seen from the above embodiments, in the present embodiment, the server receives the shot image and the identification information, determines the target location area on the display screen that can be scanned by the scanning terminal according to the shot image and the identification information, and implements determination of the location area through the server instead of the display screen, thereby reducing the hardware requirement on the display screen.
For ease of understanding, the present disclosure is described in connection with a server and a scanning terminal. As shown in fig. 4A and 4B, fig. 4A is a diagram of an application scenario of a graphic code presentation method according to an exemplary embodiment of the present disclosure, where the scenario includes a scanning terminal, a server, and a display screen. It is to be understood that only one scanning terminal and display screen are shown in fig. 4A, and are not limited to one in nature, and only one is illustrated here. Fig. 4B is a timing diagram illustrating a graphical code presentation method according to an exemplary embodiment of the present disclosure, which may include the steps of:
1. the display screen broadcasts identification information for identifying the display screen.
2. The scanning terminal receives the identification information broadcast by the display screen and shoots the picture on the display screen.
3. And the scanning terminal sends the shot image and the identification information to the server.
4. And the server determines the current display picture of the display screen according to the identification information, and determines a target position area on the display screen which can be scanned by the scanning terminal according to the relationship between the received shot image and the determined current display picture.
5. And the server side sends the target position area to a display screen.
6. And the display screen adjusts the graphic code on the display screen according to the target position area so as to display the adjusted graphic code in the target position area.
It can be seen from the above embodiments that, the identification information is broadcasted through the display screen, the scanning terminal receives the identification information and sends the shot image and the identification information to the server, and the server can determine the display screen according to the identification information and further determine whether the display screen to be scanned by the scanning user is the display screen identified by the identification information according to the shot image and the current display picture in the display screen, so as to implement double determination and to implement accurate adjustment of the graphic code, so as to display the adjusted graphic code in the location area. Meanwhile, the determination of the position area is realized through a server instead of a display screen, so that the hardware requirement on the display screen is reduced.
In another alternative implementation, the present disclosure also provides another method for determining a target location area on a display screen that can be scanned by a scanning terminal, where the determining the target location area on the display screen that can be scanned by the scanning terminal includes:
and receiving a shot image sent by the scanning terminal, wherein the shot image is an image obtained by shooting a picture on a display screen by the scanning terminal.
And determining the current display picture of the display screen.
And determining a target position area on the display screen which can be scanned by the scanning terminal according to the relation between the shot image and the current display picture.
When a scanning user scans the graphic code on the display screen by using the scanning terminal, the scanning terminal can shoot the picture on the display screen to obtain a shot image, and the shot image is sent to the display screen. As one of the sending modes, the scanning terminal may send a scanning request carrying a shot image to the display screen, so that when the display screen receives the scanning request, the current display frame of the display screen is determined, and the target position area on the display screen that can be scanned by the scanning terminal is determined according to a relationship between the shot image and the current display frame in the scanning request.
Since the shot image is an image obtained by shooting a picture on the display screen, the target position area on the display screen that can be scanned by the scanning terminal can be determined according to the overlapped picture of the shot image and the currently displayed picture.
In one example, if the shot image includes the current display frame, the target position area on the display screen that can be scanned by the scanning terminal is a full-screen area of the display screen.
The position area is a full screen area of the display screen, the position of a scanning user far away from the display screen can be estimated, or the size of the display screen is small, and when the graphic code is adjusted subsequently, the graphic code can be amplified so that the scanning user can scan through the scanning terminal.
In one example, if the current display picture includes a shot image, the shot image is compared with the current display picture to determine a position area of the shot image in the current display picture, and a target position area on a display screen which can be scanned by a scanning terminal is determined according to the determined position area.
The current display picture contains the shot image, the shot image is a part of the current display picture, and the position area of the shot image in the current display picture can be determined by comparing the shot image with the current display picture. On one hand, the determined position area can be directly determined as a target position area which can be scanned on a display screen by the scanning terminal; on the other hand, the zoom adjustment may be performed according to the determined position region, and the adjustment result may be determined as a target position region on the display screen that can be scanned by the scanning terminal.
It can be seen from the above embodiments that, in the present embodiment, the target location area is determined through the display screen, so that the real-time property of determining the target location area can be realized, and the defect that the determination of the target location area is not timely due to network reasons, and further the graphic code is not timely adjusted is avoided.
After the target position area is determined, the graphic code on the display screen can be adjusted according to the target position area, and the purpose of the adjustment is to enable the adjusted graphic code to be displayed in the target position area.
As one of the adjusting means, the adjusting may include moving and zooming, that is, acquiring a location area of the graphic code on the display screen, comparing the target location area with the location area of the graphic code, zooming the graphic code according to the comparison result, and moving the zoomed graphic code to the target location area for displaying. Specifically, the graphic code is zoomed according to the size of the target position area and the size of the graphic code, so that the zoomed size of the graphic code is the size of the graphic code which is suitable for a scanning user to scan by using a scanning terminal; and moving the graphic code according to the position of the position area and the position of the graphic code, and moving the graphic code to the target position area. When the graphic code is moved, the graphic code can be moved to any position in the target position area, or can be fixedly moved to the center in the target position area, and the setting is specifically carried out according to requirements.
It can be seen that the purpose of the movement is to enable the scanning user to scan the graphic code, and the purpose of the scaling is to make the scanning user more convenient to scan the graphic code.
In an optional implementation manner, the target position area is a target coordinate area; the adjusting the graphic code on the display screen according to the target position area so that the adjusted graphic code is displayed in the target position area includes: acquiring a coordinate area of the graphic code on the display screen; and comparing the target coordinate area with the coordinate area of the graphic code, zooming the graphic code according to the comparison result, and moving the zoomed graphic code to the target coordinate area for display.
A specific application example is shown below for explanation. As shown in fig. 4C, fig. 4C is an application scenario diagram of another graphic code presentation method according to an exemplary embodiment of the present disclosure. In the application scenario, the four corner coordinates of the target coordinate area (Camera frame) are: a (X)a,Ya)、b(Xb,Yb)、c(Xc,Yc)、d(Xd,Yd) (ii) a The four angular coordinates of the graphic code (QR frame) on the display screen are: a (X)A,YA)、B(XB,YB)、C(XC,YC)、D(XD,YD)。
Camera frame region width: w1=Yb-Yc
QR frame region width: w2=YB-YC
K=W1/W2
When K is greater than 1, the graphic code needs to be amplified, the amplification factor can be K, or other values close to K, and the amplified graphic code is moved to a target position area; when K is less than 1, the graphic code needs to be reduced, the reduction multiple can be K, or other values close to K, and the reduced graphic code is moved to a target position area; when K is 1, the size of the graphic code may be moved to the target location area without processing.
As shown in fig. 4C, fig. 4C shows the adjusted graphic code. The user can scan the two-dimensional code in the Camera frame area, so that the scanning efficiency is improved, and convenience is brought to the user.
It can be seen from the above embodiments that the location area is represented by the coordinate area, which improves the efficiency of moving and scaling the graphic code.
In an optional implementation manner, in order to avoid that when the graphic code is moved to the position area, the original image in the position area is used as the background of the graphic code to affect the scanning of the graphic code, the present disclosure may hide the picture on the display screen when the graphic code is moved to the position area, thereby improving the scanning effect. It is understood that other moving manners may be used in practical application, as long as the graphic code can be scanned after being moved.
Further, after the adjustment of the graphic code is completed and the preset time interval is set, the graphic code is restored and displayed. The recovery is to restore the graphic code and inversely adjust the adjusted graphic code. For example, the graphic code is scaled to the original size and moved back to the original position, and the picture on the display screen is displayed, so that the situation that the content of the display screen cannot be viewed by the audience due to long-term hidden picture is avoided, and economic loss is brought to the provider.
As shown in fig. 4D, fig. 4D is an application scenario diagram of another graphic code presentation method according to an exemplary embodiment of the present disclosure. In the schematic diagram, the scanning terminal can scan a certain target position area below the display screen, and the two-dimensional code is in the upper right corner of the screen which can not be scanned by a scanning user. After the target position area is determined, the two-dimensional code is amplified by the display screen, the amplified two-dimensional code is moved to the target position area to be displayed, meanwhile, an original advertisement picture of the display screen is hidden, after a preset time interval, the two-dimensional code is restored, and the advertisement picture is displayed again. Therefore, the two-dimensional code scanning device is convenient for a user to scan the two-dimensional code, and meanwhile, the picture displayed on the display screen is not influenced.
In another alternative implementation, the same image code as the original image code may be displayed directly in the target position area without moving the image code. For example, the graphic code may be displayed on the newly established layer and in the target location area, and the originally displayed layer of the display screen may be covered by the layer. As shown in fig. 4E, fig. 4E is an application scenario diagram of another graphic code presentation method according to an exemplary embodiment of the present disclosure. In the schematic diagram, the scanning terminal can scan a certain target position area below the display screen, and the two-dimensional code is in the upper right corner of the screen which can not be scanned by a scanning user. After the target position area is determined, the two-dimensional code is amplified by the display screen, the amplified two-dimensional code is displayed at the target position area of the new image layer, meanwhile, the original display image layer of the display screen is covered by the new image layer, and the original display image layer is displayed again after a preset time interval. Therefore, the two-dimensional code scanning method is convenient for a user to scan the two-dimensional code, and meanwhile, the picture displayed on the display screen is not influenced.
It can be understood that the graphic code may also be adjusted in other manners to achieve the purpose that the adjusted graphic code is displayed in the target location area, which is not described herein any more.
The various technical features in the above embodiments can be arbitrarily combined, so long as there is no conflict or contradiction between the combinations of the features, but the combination is limited by the space and is not described one by one, and therefore, any combination of the various technical features in the above embodiments also belongs to the scope disclosed in the present specification.
In addition, the display screen can be in network connection with the server side, the display screen broadcasts identification information for identifying the display screen, when the scanning terminal receives the identification information, the identification information and a shot image obtained by shooting a picture on the display screen are sent to the server side, the server side determines a current display picture of the display screen according to the identification information, compares the shot image with the current display picture, and sends a graphic code on the current display picture to the scanning terminal when determining that the shot image and the current display picture have an overlapped picture, so that the scanning terminal can scan quickly.
Corresponding to the embodiments of the graphic code display and position area determination methods, the disclosure also provides embodiments of a graphic code display and position area determination device and a terminal applied by the same.
As shown in fig. 5, fig. 5 is a block diagram of a graphic code presentation apparatus according to an exemplary embodiment shown in the present disclosure, the apparatus including: an area determination module 51 and a graphic code presentation module 52.
Wherein, the area determination module 51 is configured to determine a target location area on the display screen that can be scanned by the scanning terminal.
And the graphic code display module 52 is configured to adjust the graphic code on the display screen according to the target location area, so that the adjusted graphic code is displayed in the target location area.
According to the embodiment, the target position area on the display screen which can be scanned by the scanning terminal is determined, the graphic code on the display screen is adjusted according to the target position area, so that the adjusted graphic code is displayed in the target position area, and the target position area is an area which can be scanned by a user, so that the user can scan the two-dimensional code quickly, information corresponding to the two-dimensional code is obtained, the scanning efficiency is improved, and convenience is brought to the user.
As shown in fig. 6, fig. 6 is a block diagram of another graphic code display device shown in the present disclosure according to an exemplary embodiment, on the basis of the foregoing embodiment shown in fig. 5, the area determination module 51 includes: an image capturing sub-module 511, a relative position determining sub-module 512, and a first region determining sub-module 513.
Wherein the image capturing sub-module 511 is configured to capture a person image including the scanning user by an image capturing device provided on the display screen.
A relative position determination sub-module 512 configured to determine a relative position of the scanning user with respect to the display screen based on the person image.
A first region determining submodule 513 configured to determine, according to the relative position, a target position region on a display screen that can be scanned by a scanning terminal, the scanning terminal being a terminal held by the scanning user.
The embodiment can be seen that the positioning of the position area is realized by shooting the figure image containing the scanning user, analyzing the figure image to determine the relative position of the scanning user and the display screen, and determining the target position area on the display screen which can be scanned by the scanning terminal according to the relative position.
In an optional implementation, the first region determining sub-module 513 is further configured to: and determining the position area corresponding to the determined relative position as a target position area on a display screen which can be scanned by the scanning terminal according to the corresponding relation between the pre-stored relative position and the position area.
According to the embodiment, the target position area on the display screen which can be scanned by the scanning terminal is determined according to the corresponding relation and the determined relative position, the method and the device are easy to implement, and the efficiency of determining the position area is improved.
As shown in fig. 7, fig. 7 is a block diagram of another graphic code display device shown in the present disclosure according to an exemplary embodiment, on the basis of the foregoing embodiment shown in fig. 5, the area determination module 51 includes: an information broadcasting sub-module 514 and an information receiving sub-module 515.
An information broadcasting sub-module 514 configured to broadcast identification information for identifying the display screen.
And the information receiving submodule 515 is configured to receive the target location area sent by the server.
Wherein the target location area is: and after determining the current display picture of the display screen according to the identification information, the server determines a target position area on the display screen which can be scanned by the scanning terminal according to the relation between the shot image and the current display picture, wherein the identification information and the shot image are sent to the server by the scanning terminal, and the shot image is an image obtained by shooting the picture on the display screen by the scanning terminal.
It can be seen from the above embodiments that, in the present disclosure, the identification information is broadcasted through the display screen, the scanning terminal receives the identification information and sends the shot image and the identification information to the server, and the server can determine the display screen according to the identification information and further determine whether the display screen to be scanned by the scanning user is the display screen identified by the identification information according to the shot image and the current display picture in the display screen, so as to implement double determination and to implement accurate adjustment of the graphic code, so as to display the adjusted graphic code in the location area. Meanwhile, the determination of the position area is realized through a server instead of a display screen, so that the hardware requirement on the display screen is reduced.
As shown in fig. 8, fig. 8 is a block diagram of another graphic code display device shown in the present disclosure according to an exemplary embodiment, on the basis of the foregoing embodiment shown in fig. 5, the area determination module 51 includes: an image receiving sub-module 516, a picture determination sub-module 517, and a second region determination sub-module 518.
And an image receiving sub-module 516 configured to receive a shot image sent by the scanning terminal, wherein the shot image is an image obtained by shooting a picture on a display screen by the scanning terminal.
A picture determining sub-module 517 configured to determine a currently displayed picture of the display screen.
And a second area determining sub-module 518, configured to determine a target position area on the display screen that can be scanned by the scanning terminal according to the relationship between the shot image and the current display frame.
According to the embodiment, the target position area is determined through the display screen, the real-time performance of determining the target position area can be achieved, and the defect that the target position area is not determined in time due to network reasons and further the graphic code is not adjusted in time is avoided.
In an optional implementation, the second region determining submodule 518 is further configured to:
and if the shot image contains the current display picture, the target position area on the display screen which can be scanned by the scanning terminal is the full-screen area of the display screen.
If the current display picture contains the shot image, the shot image is compared with the current display picture to determine the position area of the shot image in the current display picture, and the target position area on the display screen which can be scanned by the scanning terminal is determined according to the determined position area.
In an optional implementation manner, the target position area is a target coordinate area; the graphic code presentation module is further configured to: acquiring a coordinate area of the graphic code on the display screen; and comparing the target coordinate area with the coordinate area of the graphic code, zooming the graphic code according to the comparison result, and moving the zoomed graphic code to the target coordinate area for display.
It can be seen from the above embodiments that the location area is represented by the coordinate area, which improves the efficiency of moving and scaling the graphic code.
As shown in fig. 9, fig. 9 is a block diagram of another graphic code display device according to an exemplary embodiment of the present disclosure, where the embodiment is based on any one of the foregoing embodiments shown in fig. 5 to fig. 8, and the device further includes: a restoration module 53.
The restoring module 53 is configured to resume displaying the graphic code after the adjustment of the graphic code is completed and a preset time interval elapses.
According to the embodiment, the graphic code is automatically restored to be displayed after the graphic code is adjusted and the preset time is set, so that the influence on the original display picture of the display screen caused by the fact that the adjusted graphic code is displayed all the time is avoided, and convenience is brought to a user.
As shown in fig. 10, fig. 10 is a block diagram of a location area determination device shown in accordance with an exemplary embodiment of the present disclosure, the device comprising: an information receiving module 1010, a screen determining module 1020, a location area determining module 1030, and an information transmitting module 1040.
The information receiving module 1010 is configured to receive a shot image sent by the scanning terminal and identification information for identifying the display screen, where the shot image is an image obtained by shooting a picture on the display screen by the scanning terminal.
A picture determining module 1020 configured to determine a currently displayed picture of the display screen according to the identification information.
A position area determining module 1030 configured to determine a target position area on the display screen that can be scanned by the scanning terminal according to a relationship between the shot image and the current display screen.
The information sending module 1040 is configured to send the target location area to the display screen, so that the display screen adjusts the graphic code on the display screen according to the target location area, and the adjusted graphic code is displayed in the target location area.
Correspondingly, the disclosure also provides a graphic code display device, which comprises a processor; a memory for storing processor-executable instructions; wherein the processor is configured to:
and determining a target position area on the display screen which can be scanned by the scanning terminal.
And adjusting the graphic code on the display screen according to the target position area so that the adjusted graphic code is displayed in the target position area.
The specific details of the implementation process of the functions and actions of each module in the device are referred to the implementation process of the corresponding step in the method, and are not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, wherein the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. One of ordinary skill in the art can understand and implement it without inventive effort.
As shown in fig. 11, fig. 11 is a block diagram illustrating an apparatus 1100 for presenting graphic codes according to an exemplary embodiment.
For example, the apparatus 1100 may be provided as a display device. Referring to FIG. 11, system 1100 includes a processing component 1122 that further includes one or more processors and memory resources, represented by memory 1132, for storing instructions, such as application programs, executable by processing component 1122. The application programs stored in memory 1132 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1122 is configured to execute instructions to perform the graphical code presentation method described above.
The system 1100 may also include a power component 1126 configured to perform power management of the system 1100, a wired or wireless network interface 1150 configured to connect the system 1100 to a network, and an input/output (I/O) interface 1158. The system 1100 may operate based on an operating system stored in the memory 1132.
Wherein the instructions in the memory 1132, when executed by the processing component 1122, enable the system 1100 to perform a method of graphical code presentation, comprising:
and determining a target position area on the display screen which can be scanned by the scanning terminal.
And adjusting the graphic code on the display screen according to the target position area so that the adjusted graphic code is displayed in the target position area.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
The above description is only exemplary of the present disclosure and should not be taken as limiting the disclosure, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (19)

1. A graphic code display method is characterized by comprising the following steps:
determining a target position area on a display screen which can be scanned by a scanning terminal; the target position area is determined based on a shot image obtained by shooting a picture on a display screen by a scanning terminal and a current display picture of the display screen;
and adjusting the graphic code on the display screen according to the target position area so that the adjusted graphic code is displayed in the target position area.
2. The method of claim 1, wherein determining the target location area on the display screen that can be scanned by the scanning terminal comprises:
shooting a figure image containing a scanning user through a camera device arranged on a display screen;
determining the relative position of the scanning user and the display screen according to the figure image;
and determining a target position area on a display screen which can be scanned by a scanning terminal according to the relative position, wherein the scanning terminal is a terminal held by the scanning user.
3. The method according to claim 2, wherein the determining a target position area on a display screen that can be scanned by a scanning terminal according to the relative position comprises:
and determining the position area corresponding to the determined relative position as a target position area on a display screen which can be scanned by the scanning terminal according to the corresponding relation between the pre-stored relative position and the position area.
4. The method of claim 1, wherein determining the target location area on the display screen that can be scanned by the scanning terminal comprises:
broadcasting identification information for identifying a display screen;
receiving a target position area sent by a server;
wherein the target location area is: and after determining the current display picture of the display screen according to the identification information, the server determines a target position area on the display screen which can be scanned by the scanning terminal according to the relation between the shot image and the current display picture, wherein the identification information and the shot image are sent to the server by the scanning terminal, and the shot image is an image obtained by shooting the picture on the display screen by the scanning terminal.
5. The method of claim 1, wherein determining the target location area on the display screen that can be scanned by the scanning terminal comprises:
receiving a shot image sent by a scanning terminal, wherein the shot image is an image obtained by shooting a picture on a display screen by the scanning terminal;
determining a current display picture of a display screen;
and determining a target position area on the display screen which can be scanned by the scanning terminal according to the relation between the shot image and the current display picture.
6. The method according to claim 4 or 5, wherein the determining a target position area on the display screen that can be scanned by the scanning terminal according to the relation between the shot image and the current display picture comprises:
if the shot image contains the current display picture, the target position area on the display screen which can be scanned by the scanning terminal is the full-screen area of the display screen;
if the current display picture contains the shot image, the shot image is compared with the current display picture to determine the position area of the shot image in the current display picture, and the target position area on the display screen which can be scanned by the scanning terminal is determined according to the determined position area.
7. The method of any one of claims 1 to 5, wherein the target location area is a target coordinate area;
the adjusting the graphic code on the display screen according to the target position area so that the adjusted graphic code is displayed in the target position area includes:
acquiring a coordinate area of the graphic code on the display screen;
and comparing the target coordinate area with the coordinate area of the graphic code, zooming the graphic code according to the comparison result, and moving the zoomed graphic code to the target coordinate area for display.
8. The method according to any one of claims 1 to 5, further comprising:
and after the adjustment of the graphic code is finished and preset time is separated, restoring to display the graphic code.
9. A method for location area determination, the method comprising:
receiving a shot image sent by a scanning terminal and identification information for identifying a display screen, wherein the shot image is an image obtained by shooting a picture on the display screen by the scanning terminal;
determining a current display picture of the display screen according to the identification information;
determining a target position area on a display screen which can be scanned by a scanning terminal according to the relation between the shot image and the current display picture;
and sending the target position area to the display screen so that the display screen adjusts the graphic code on the display screen according to the target position area, and the adjusted graphic code is displayed in the target position area.
10. A graphic code display device, characterized in that the device comprises:
the area determination module is configured to determine a target position area on a display screen which can be scanned by the scanning terminal; the target position area is determined based on a shot image obtained by shooting a picture on a display screen by a scanning terminal and a current display picture of the display screen;
and the graphic code display module is configured to adjust the graphic code on the display screen according to the target position area so that the adjusted graphic code is displayed in the target position area.
11. The apparatus of claim 10, wherein the region determining module comprises:
an image capturing sub-module configured to capture a person image including a scanning user by an image capturing device provided on a display screen;
a relative position determination sub-module configured to determine a relative position of the scanning user and the display screen from the person image;
a first area determination submodule configured to determine a target position area on a display screen that can be scanned by a scanning terminal according to the relative position, the scanning terminal being a terminal held by the scanning user.
12. The apparatus of claim 11, wherein the first region determination submodule is further configured to:
and determining the position area corresponding to the determined relative position as a target position area on a display screen which can be scanned by the scanning terminal according to the corresponding relation between the pre-stored relative position and the position area.
13. The apparatus of claim 10, wherein the region determining module comprises:
an information broadcasting sub-module configured to broadcast identification information for identifying a display screen;
the information receiving submodule is configured to receive a target position area sent by the server side;
wherein the target location area is: and after determining the current display picture of the display screen according to the identification information, the server determines a target position area on the display screen which can be scanned by the scanning terminal according to the relation between the shot image and the current display picture, wherein the identification information and the shot image are sent to the server by the scanning terminal, and the shot image is an image obtained by shooting the picture on the display screen by the scanning terminal.
14. The apparatus of claim 10, wherein the region determining module comprises:
the image receiving sub-module is configured to receive a shot image sent by the scanning terminal, and the shot image is an image obtained by shooting a picture on a display screen by the scanning terminal;
a picture determination submodule configured to determine a currently displayed picture of the display screen;
and the second area determining submodule is configured to determine a target position area on the display screen which can be scanned by the scanning terminal according to the relation between the shot image and the current display picture.
15. The apparatus of claim 14, wherein the second region determination submodule is further configured to:
if the shot image contains the current display picture, the target position area on the display screen which can be scanned by the scanning terminal is the full-screen area of the display screen;
if the current display picture contains the shot image, the shot image is compared with the current display picture to determine the position area of the shot image in the current display picture, and the target position area on the display screen which can be scanned by the scanning terminal is determined according to the determined position area.
16. The apparatus of any one of claims 10 to 15, wherein the target location area is a target coordinate area;
the graphic code presentation module is further configured to:
acquiring a coordinate area of the graphic code on the display screen;
and comparing the target coordinate area with the coordinate area of the graphic code, zooming the graphic code according to the comparison result, and moving the zoomed graphic code to the target coordinate area for display.
17. The apparatus of any one of claims 10 to 15, further comprising:
and the restoration module is configured to restore and display the graphic code after the adjustment of the graphic code is completed and a preset time interval is set.
18. A location area determination apparatus, the apparatus comprising:
the information receiving module is configured to receive a shot image sent by the scanning terminal and identification information for identifying the display screen, wherein the shot image is an image obtained by shooting a picture on the display screen by the scanning terminal;
the picture determining module is configured to determine a currently displayed picture of the display screen according to the identification information;
the position area determining module is configured to determine a target position area on a display screen which can be scanned by a scanning terminal according to the relation between the shot image and the current display picture;
the information sending module is configured to send the target position area to the display screen, so that the display screen adjusts the graphic code on the display screen according to the target position area, and the adjusted graphic code is displayed in the target position area.
19. A graphic code display device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
determining a target position area on a display screen which can be scanned by a scanning terminal; the target position area is determined based on a shot image obtained by shooting a picture on a display screen by a scanning terminal and a current display picture of the display screen;
and adjusting the graphic code on the display screen according to the target position area so that the adjusted graphic code is displayed in the target position area.
CN201611103857.1A 2016-12-05 2016-12-05 Graphic code display and position area determination method and device Active CN108154058B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611103857.1A CN108154058B (en) 2016-12-05 2016-12-05 Graphic code display and position area determination method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611103857.1A CN108154058B (en) 2016-12-05 2016-12-05 Graphic code display and position area determination method and device

Publications (2)

Publication Number Publication Date
CN108154058A CN108154058A (en) 2018-06-12
CN108154058B true CN108154058B (en) 2021-04-23

Family

ID=62469971

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611103857.1A Active CN108154058B (en) 2016-12-05 2016-12-05 Graphic code display and position area determination method and device

Country Status (1)

Country Link
CN (1) CN108154058B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108846663B (en) * 2018-06-21 2020-10-30 维沃移动通信有限公司 Two-dimensional code adjusting method and device and mobile terminal
CN109214810A (en) * 2018-07-25 2019-01-15 努比亚技术有限公司 A kind of two-dimensional code display method, mobile terminal and computer readable storage medium
CN109521981B (en) * 2018-10-31 2022-02-01 维沃移动通信有限公司 Graphic code display method and terminal
CN109409164A (en) * 2018-11-20 2019-03-01 普联技术有限公司 Scan image display adjusting method, device and electronic equipment
CN109766070B (en) * 2019-01-31 2022-12-02 网易(杭州)网络有限公司 Display control method and device in mobile terminal
CN112000218A (en) * 2019-05-27 2020-11-27 北京京东尚科信息技术有限公司 Object display method and device
CN110597561A (en) * 2019-09-09 2019-12-20 上海赛连信息科技有限公司 Method, medium and device for displaying identification and computing equipment
CN110705329B (en) * 2019-09-30 2021-09-14 联想(北京)有限公司 Processing method and device and electronic equipment
CN111813304A (en) * 2020-06-12 2020-10-23 维沃移动通信有限公司 Image display method and device
CN113255389B (en) * 2020-12-18 2023-07-14 深圳怡化电脑股份有限公司 Image recognition method and device, electronic equipment and storage medium
CN113298212A (en) * 2021-05-25 2021-08-24 艾酷软件技术(上海)有限公司 Graphic code display method and device
CN113673652A (en) * 2021-08-12 2021-11-19 维沃软件技术有限公司 Two-dimensional code display method and device and electronic equipment

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100461212C (en) * 2004-06-04 2009-02-11 松下电器产业株式会社 Display control device, display control method, program, and portable apparatus
CN100397411C (en) * 2006-08-21 2008-06-25 北京中星微电子有限公司 People face track display method and system for real-time robust
CN102045429B (en) * 2009-10-13 2015-01-21 华为终端有限公司 Method and equipment for adjusting displayed content
CN102313547B (en) * 2011-05-26 2013-02-13 东南大学 Vision navigation method of mobile robot based on hand-drawn outline semantic map
CN102968208B (en) * 2012-09-05 2015-10-07 广东威创视讯科技股份有限公司 Battle array camera positioning image effective coverage, face adjustment way choice method and system
TW201441918A (en) * 2013-04-29 2014-11-01 Hon Hai Prec Ind Co Ltd System and method for automatically adjusting images displayed on a display screen
CN103945121B (en) * 2014-03-24 2018-08-10 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN104008361B (en) * 2014-06-16 2017-05-31 北京握奇智能科技有限公司 A kind of two-dimensional code scanning positioning indicating method and system
CN104320714B (en) * 2014-11-19 2018-08-03 京东方科技集团股份有限公司 A kind of display device and its vision-control method
CN105138942B (en) * 2015-08-26 2018-12-18 小米科技有限责任公司 The display methods and device of two dimensional code
CN105611153B (en) * 2015-12-21 2019-09-24 联想(北京)有限公司 Image processing method and electronic equipment
CN205721623U (en) * 2016-03-01 2016-11-23 上海光巢信息技术有限公司 Intelligent interactive system

Also Published As

Publication number Publication date
CN108154058A (en) 2018-06-12

Similar Documents

Publication Publication Date Title
CN108154058B (en) Graphic code display and position area determination method and device
US9159169B2 (en) Image display apparatus, imaging apparatus, image display method, control method for imaging apparatus, and program
CN109064545B (en) Method and device for data acquisition and model generation of house
KR102191354B1 (en) Virtual tool allocation method, server, client and storage media
KR101899877B1 (en) Apparatus and method for improving quality of enlarged image
EP3316589A1 (en) Video synchronization device and video synchronization method
US9544574B2 (en) Selecting camera pairs for stereoscopic imaging
CN104012106B (en) It is directed at the video of expression different points of view
JPWO2018030206A1 (en) Camera work generation method and video processing apparatus
WO2013139100A1 (en) Intelligent photographing method, device and mobile terminal based on cloud service
CN108286945B (en) Three-dimensional scanning system and method based on visual feedback
US20130063538A1 (en) Method and apparatus for providing device angle image correction
CN109934931B (en) Method and device for collecting image and establishing target object recognition model
CN103873453B (en) Immerse communication customer end, server and the method for obtaining content view
WO2019037038A1 (en) Image processing method and device, and server
CN104867113A (en) Method and system for perspective distortion correction of image
CN104735348A (en) Double-camera photographing method and system
US20170244895A1 (en) System and method for automatic remote assembly of partially overlapping images
CN109788359B (en) Video data processing method and related device
CN106231411B (en) Main broadcaster's class interaction platform client scene switching, loading method and device, client
WO2011096343A1 (en) Photographic location recommendation system, photographic location recommendation device, photographic location recommendation method, and program for photographic location recommendation
CN114449303A (en) Live broadcast picture generation method and device, storage medium and electronic device
KR20120054746A (en) Method and apparatus for generating three dimensional image in portable communication system
WO2016192467A1 (en) Method and device for playing videos
CN113870213A (en) Image display method, image display device, storage medium, and electronic apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant