WO2022052729A1 - 虚拟卡片的显示方法、装置、计算机设备及存储介质 - Google Patents

虚拟卡片的显示方法、装置、计算机设备及存储介质 Download PDF

Info

Publication number
WO2022052729A1
WO2022052729A1 PCT/CN2021/112147 CN2021112147W WO2022052729A1 WO 2022052729 A1 WO2022052729 A1 WO 2022052729A1 CN 2021112147 W CN2021112147 W CN 2021112147W WO 2022052729 A1 WO2022052729 A1 WO 2022052729A1
Authority
WO
WIPO (PCT)
Prior art keywords
card
parameter
parameters
display
real
Prior art date
Application number
PCT/CN2021/112147
Other languages
English (en)
French (fr)
Inventor
季贇杰
Original Assignee
上海哔哩哔哩科技有限公司
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 上海哔哩哔哩科技有限公司 filed Critical 上海哔哩哔哩科技有限公司
Priority to US18/024,941 priority Critical patent/US20230326156A1/en
Publication of WO2022052729A1 publication Critical patent/WO2022052729A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1684Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675
    • G06F1/1694Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675 the I/O peripheral being a single or a set of motion sensors for pointer control or gesture input obtained by sensing movements of the portable computer
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0346Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04815Interaction with a metaphor-based environment or interaction object displayed as three-dimensional, e.g. changing the user viewpoint with respect to the environment or object
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/34Payment architectures, schemes or protocols characterised by the use of specific devices or networks using cards, e.g. integrated circuit [IC] cards or magnetic cards
    • G06Q20/351Virtual cards
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/048023D-info-object: information is displayed on the internal or external surface of a three dimensional manipulable object, e.g. on the faces of a cube that can be rotated by the user
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2219/00Indexing scheme for manipulating 3D models or images for computer graphics
    • G06T2219/20Indexing scheme for editing of 3D models
    • G06T2219/2016Rotation, translation, scaling

Definitions

  • the present disclosure relates to the technical field of data interaction and display, and in particular, to a display method, device, computer equipment and storage medium of a virtual card.
  • the present disclosure provides a virtual card display solution that can improve the efficiency of data interaction and data display, so as to solve the above problems existing in the prior art.
  • a method for displaying a virtual card comprising: acquiring a first card face pattern, a first initial parameter, and a first association relationship corresponding to the virtual card; the first initial parameter is used for The initial parameter representing the first display feature of the first material corresponding to the first card face pattern, and the first association relationship is used to represent the real-time parameter of the first display feature to follow the mobile client.
  • the law of sensor parameter changes; display the first material in the virtual card according to the first initial parameter; collect the sensor parameters in the mobile client in real time, and determine the real-time parameters of the first display feature; and displaying the first material in the virtual card according to the real-time parameters of the first display feature.
  • a method for displaying a virtual card including: receiving a card surface material group corresponding to a virtual card, the card surface material group including one or more materials; receiving a material group corresponding to each material The initial parameter and the association relationship; the initial parameter is used to characterize the initial parameter of the display feature of the material, and the association relationship is used to characterize the law that the real-time parameter of the display feature follows the change of the sensor parameter in the mobile client; And according to the initial parameters of all the materials included in the card surface material group, a card surface pattern corresponding to the card surface material group is generated and saved.
  • a display device for a virtual card comprising: an initial acquisition module configured to acquire a first card face pattern, a first initial parameter, and a first association relationship corresponding to the virtual card;
  • the first initial parameter is used to represent the initial parameter of the first display feature of the first material corresponding to the first card face pattern, and the first association relationship is used to represent the real-time parameter of the first display feature following the changing law of the sensor parameters in the mobile client;
  • an initial display module configured to display the first material in the virtual card according to the first initial parameter;
  • a real-time collection module configured to collect the real-time a sensor parameter in the mobile client, to determine the real-time parameter of the first display feature according to the sensor parameter and the first association;
  • a real-time display module configured to display the real-time parameter according to the first display feature the first material in the virtual card.
  • a display device for a virtual card comprising: a material receiving module configured to receive a card surface material group corresponding to the virtual card, the card surface material group including one or more materials;
  • a parameter receiving module is configured to receive an initial parameter and an association relationship corresponding to each material; the initial parameter is used to characterize the initial parameter of the display feature of the material, and the association relationship is used to characterize the display feature of the material.
  • the real-time parameters follow the changing law of the sensor parameters in the mobile client; and the card surface generation module is configured to generate a card corresponding to the card surface material group according to the initial parameters of all the materials included in the card surface material group face pattern and save.
  • a computer device including a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the above method when executing the computer program.
  • a computer-readable storage medium having a computer program stored thereon, the computer program implementing the above method when executed by a processor.
  • a computer program product comprising a computer program that, when executed by a processor, implements the above method.
  • the display method, device, computer equipment and computer-readable storage medium of a virtual card provided by the present disclosure associate the display characteristics of the virtual card with the real-time sensor parameters collected by the mobile client, and present different display effects according to changes in the sensor parameters .
  • the present disclosure associates the material resources in the virtual card with multiple sensors such as acceleration sensors, brightness sensors, and gravity sensors in the mobile device, so that the virtual card can follow the device angle, ambient light, etc. in real time in the mobile device.
  • Subtle changes in the parameters can improve the display efficiency and display effect of the virtual card, make it close to the texture of the real card, and can interact with the user in real time to increase the attractiveness to the user.
  • FIG. 1 is a flowchart of a method for displaying a virtual card according to an embodiment of the present disclosure
  • 2A-2D are schematic diagrams illustrating the effect of the display feature following changes in sensor parameters according to an embodiment of the present disclosure
  • FIG. 3 is a schematic diagram of replacing a card face pattern according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic diagram of acquiring relevant data according to a newly determined card face pattern according to an embodiment of the present disclosure
  • FIG. 5 is a schematic diagram of program modules of a virtual card display device according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic diagram of a hardware structure of a computer device according to an embodiment of the present disclosure.
  • FIG. 7 is a flowchart of a method for displaying a virtual card according to another embodiment of the present disclosure.
  • FIG. 8 is a schematic diagram of program modules of a virtual card display device according to another embodiment of the present disclosure.
  • an embodiment of the present disclosure proposes a method for displaying a virtual card, which can be executed in a mobile client (that is, the execution subject of the method is the mobile client or a part thereof), including the following steps:
  • S100 Acquire a first card face pattern, a first initial parameter, and a first association relationship corresponding to the virtual card.
  • the first card face pattern, the first initial parameter and the first association relationship corresponding to the virtual card may be downloaded from the server.
  • the first card face pattern may be selected by the user or default.
  • the information that the user has activated the virtual card may be determined when the user logs in the account through the mobile client. For example, a user enters an account and a password on a mobile client to request a login to the server. After the server verifies the account and password, it can query whether the user has purchased a virtual card. If so, return the information that the user has activated the virtual card to the client.
  • the virtual card in this embodiment may include one or more materials, such as pictures, videos, 3D models, and the like. Generally, the virtual card includes a rectangular display frame, and the display frame may contain one or a combination of the above-mentioned pictures, videos, 3D models and other materials.
  • the virtual card can present different contents, and these different contents can be represented by different card surface patterns. It can be understood that the virtual card may contain a variety of different card surface patterns for users to choose according to their preferences.
  • the server can query the first card face pattern, the first initial parameter and the first association relationship selected by the user last time, and send the first card face pattern, the first initial parameter and the first association relationship to the mobile phone. client. Or, in the case that the user has not selected a card face pattern, the server may use a default card face pattern as the first card face pattern, and send the first card face pattern, the first initial parameter and the first association relationship to the mobile phone client.
  • the card surface pattern may be, for example, an image in formats such as .jpg and .bmp, and may be obtained by taking a screenshot of a virtual card composed of one or more materials, in order to provide a visual index for the user.
  • the initial parameter is used to characterize the initial parameter of the display characteristic of the material corresponding to the card face pattern.
  • the initial parameters refer to the initial parameters of the display features corresponding to each material, such as the initial parameters of the display features corresponding to material 1 and the initial parameters of the display feature corresponding to material 2.
  • the display features in this embodiment may include one or more of position coordinates, size, transparency, rotation angle, flip angle, and time axis.
  • the position coordinates are used to represent the relative position of the corresponding material in the card surface area, and the size is used to represent the relative size of the corresponding material in the card surface area.
  • the card surface area in this embodiment may be a preset rectangular frame with a certain length and width.
  • the upper left corner of the card surface area can be used as the origin of the plane coordinates, and the coordinates of the center point of the corresponding material in the card surface area can represent the relative position of the material in the card surface area.
  • the size of the corresponding material can represent the relative size of the material in the card surface area.
  • Transparency is used to represent the degree of transparency of the corresponding material
  • the rotation angle is used to represent the offset angle of the corresponding material in a plane parallel to the display screen of the mobile client
  • the flip angle is used to represent the display of the corresponding material relative to the mobile client
  • the time axis is a feature especially for the video material, and represents the relative moment of the current playing frame in the corresponding video material in the whole video.
  • the initial parameters of each display parameter in this embodiment can be preset by the designer. For example, the initial coordinates of a certain material are located in the center of the card surface area, the initial transparency is 0 (that is, it is completely opaque), and the initial rotation angle and flip angle are both 0 degrees.
  • a mobile client such as a smart phone usually includes one or more of an angular velocity sensor (also known as a "gyroscope"), a gravity sensor, a brightness sensor, an air pressure sensor, and a geographic location sensor.
  • an angular velocity sensor also known as a "gyroscope”
  • a gravity sensor also known as a "gyroscope”
  • the sensor parameters may include angular velocity sensor parameters (such as the inclination angle of the mobile client collected by the angular velocity sensor), gravity sensor parameters (such as the horizontal, vertical, etc. angles of the mobile client collected by the gravity sensor), brightness sensor parameters ( For example, the brightness of the environment where the mobile client is collected by the brightness sensor), air pressure sensor parameters (such as the altitude where the mobile client is collected by the air pressure sensor), and any other suitable type of sensor parameters.
  • angular velocity sensor parameters such as the inclination angle of the mobile client collected by the angular velocity sensor
  • gravity sensor parameters such as the horizontal, vertical, etc. angles of the mobile client collected by the gravity sensor
  • brightness sensor parameters For example, the brightness of the environment where the mobile client is collected by the brightness sensor
  • air pressure sensor parameters such as the altitude where the mobile client is collected by the air pressure sensor
  • any other suitable type of sensor parameters for example, the brightness of the environment where the mobile client is collected by the brightness sensor
  • the air pressure sensor has a corresponding relationship with the altitude. The higher the al
  • each display feature in the embodiments of the present disclosure may be associated with only one sensor parameter, or may be associated with multiple sensor parameters.
  • each display feature may be associated with only one sensor parameter, so as to avoid the situation of mutual exclusion due to associating multiple sensor parameters.
  • the sensor parameters associated with any display feature can be set as required. Specific examples are as follows:
  • the mobile client may preselect to acquire and store the first card face pattern, the first initial parameter, and the first association relationship of the virtual card before step S100.
  • the mobile client may acquire the first card face pattern, the first initial parameter and the first association relationship from the local storage.
  • S200 Display the first material in the virtual card according to the first initial parameter.
  • the mobile client At the beginning of loading the virtual card, the mobile client first presents the display characteristics of each material according to the initial parameters.
  • the specific presentation time can be flexibly set according to needs, for example, 10 seconds, which is convenient for the user to understand the display effect of the virtual card.
  • the effect of the virtual card presented according to the initial parameters and the effect displayed in the card face pattern may be the same or different.
  • the card face pattern is actually a screenshot of the static rendering of the virtual card's display characteristics under certain conditions.
  • the certain condition may be an initial moment or a limit condition, such as the corresponding display feature when the sensor parameter takes the end point of the variation range.
  • S300 Collect sensor parameters in the mobile client in real time, and determine real-time parameters of the first display feature according to the sensor parameters and the first association relationship.
  • the display characteristics of the virtual card are adjusted in real time according to the sensor parameters in the mobile client, so that the display effect of the virtual card can change with the state of the mobile client.
  • the association relationship is used to represent the law that the real-time parameter of the display feature follows the change of the sensor parameter in the mobile client, for example, the corresponding relationship between the change range of a certain display feature and the change range of one of the sensor parameters.
  • the mobile client receives the above-mentioned corresponding relationship from the server, it will calculate the real-time value of the display feature according to the corresponding relationship. For example, when the tilt angle collected by the angular velocity sensor varies between [-60°, 60°], the flip angle can vary between [-30°, 30°].
  • the mobile client can calculate the linear relationship between the flip angle and the tilt angle according to the above variation range.
  • the corresponding flip angle ⁇ can be calculated according to each inclination angle a collected by the angular velocity sensor.
  • the same sensor parameter may correspond to multiple different first display features, that is, when a certain sensor parameter changes, the real-time parameters of multiple different first display features are changed simultaneously. For example, when the angular velocity sensor changes, the flip angle and transparency of the first material are changed at the same time.
  • the first material includes a plurality, that is, the first card surface pattern corresponds to a plurality of the first material.
  • the step of determining the real-time parameters of the first display feature may include:
  • a real-time parameter of the first display feature is determined according to the sensor parameter, the first association relationship and the quantity of the plurality of first materials.
  • the sum of real-time parameters of the first display characteristics of the plurality of first materials may be determined according to the sensor parameters and the first association relationship;
  • the parameter setting is the quotient of the sum of the real-time parameters and the number of the plurality of first materials.
  • the first card face pattern contains n pieces of first materials, and the number n of the first materials is also taken into account when determining the real-time parameters of the first display feature, so that the first display feature corresponding to each first material
  • the real-time parameters of occupy 1/n of the real-time parameters (ie, the sum of real-time parameters) of the overall first display feature.
  • the mobile phone flips based on the angular velocity sensor, if there is only one first material on the card, it is assumed that the flip angle of the first material is 30 degrees; if there are three first materials on the card, the flip angle of each material is It is 1/3 of the overall flip angle of 30 degrees, that is, the flip angle of each first material is 10 degrees.
  • the sensor parameters, the first association relationship and the attributes of the multiple first materials may also be used to determine the The real-time parameters of the respective first display features of the plurality of first materials are described.
  • the attributes of the first material include, but are not limited to, a background image, a foreground image, and a content category of the first material (eg, portrait, plant, animal, scene, etc.).
  • the first association relationship may be further used to characterize the law that the real-time parameter of the first display feature follows the sensor parameter and the property of the first material, and different properties of the first material correspond to different real-time parameters of the first display feature .
  • the real-time parameter of the first display feature is the original parameter of 30 degrees; when the first material is a background image, the real-time parameter of the first display feature is adjusted based on the original parameters. zoom, for example, to 1/3 of the original parameter or 10 degrees.
  • this embodiment may also have different real-time parameters of the first display feature in different scenarios. Thereby, the richness of the virtual card screen can be increased, and the user experience can be improved.
  • S400 Display the first material in the virtual card according to the real-time parameter of the first display feature.
  • FIGS. 2A-2D are schematic diagrams illustrating the effect of display characteristics following changes in sensor parameters according to some embodiments of the present disclosure.
  • Figure 2A shows the influence of the change of the angular velocity sensor parameters on the coordinates of the material.
  • the angular velocity sensor is monitored to tilt to the left based on the y-axis, corresponding to the left movement of the material coordinates in the figure on the right.
  • Figure 2B shows the effect of the change of the angular velocity sensor parameters on the flip angle of the material.
  • it is monitored that the angular velocity sensor is tilted to the right based on the y-axis, corresponding to the change of the flip angle of the material in the right figure to the right.
  • Figure 2C shows the effect of the brightness sensor parameter change on the transparency of the material.
  • the brightness parameter of the brightness sensor is monitored from small to large, corresponding to the change of the transparency of the material from low to high in the right figure.
  • Figure 2D shows the influence of the gravity sensor parameter change on the rotation angle of the material when the first material is a 3D model.
  • the rotation parameter of the gravity sensor is monitored to rotate counterclockwise, which corresponds to the 3D model in the right figure. Also rotate counterclockwise.
  • the method for displaying a virtual card according to an embodiment of the present disclosure further includes the following steps S500-S900 (S500-S900 are not shown in FIG. 1 ).
  • S500 Send a request for replacing the card surface pattern to the server.
  • this embodiment may include a variety of card surface patterns, and each card surface pattern corresponds to a different material or material set.
  • the user can send a request for changing the card face pattern to the server through the mobile client.
  • S600 Receive multiple candidate card face patterns corresponding to the virtual card returned by the server, and determine a second card face pattern from the multiple candidate card face patterns.
  • FIG. 3 shows a schematic diagram of replacing a card face pattern according to an embodiment of the present disclosure.
  • the card face pattern selected by the user last time is card face B.
  • the mobile client After the user logs in to the system and passes the verification, the mobile client first downloads the card face pattern, initial parameters, association relationship and other data related to card face B.
  • multiple candidate card face patterns returned by the server can be received, such as card face A, card face B, card face C and card face D.
  • the card face A is the determined second card face pattern.
  • S700 Receive a second initial parameter and a second association relationship corresponding to the second card face pattern returned by the server, where the second initial parameter is used to represent the second material corresponding to the second card face pattern.
  • the initial parameter of the second display feature, and the second association relationship is used to represent the law that the real-time parameter of the second display feature follows the change rule of the sensor parameter in the mobile client.
  • FIG. 4 shows a schematic diagram of acquiring relevant data according to a newly determined card face pattern according to an embodiment of the present disclosure.
  • the mobile client sends a download material request to the server, and receives the material data returned by the server.
  • the material data specifically includes the card face pattern corresponding to the card face A, The initial parameters of all materials contained in card face A and the relationship between each material in card face A and sensor parameters.
  • the card face pattern related to the card face A will be directly displayed, and the corresponding effect of the display feature will be presented according to the initial parameters of all the materials contained in the card face A within a certain period of time.
  • the association between each material on the card surface A and the sensor parameters may include a corresponding relationship between the variation range of the display feature of the material and the variation range of at least one sensor parameter.
  • S800 Collect sensor parameters in the mobile client in real time, and determine real-time parameters of the second display feature according to the sensor parameters and the second association relationship.
  • step S300 is similar to step S300.
  • the display feature and the display feature can be calculated according to the specific numerical value of the boundary.
  • the real-time parameters of the display feature are calculated.
  • S900 Display the second material in the virtual card according to the real-time parameter of the second display feature.
  • the display characteristics of all the materials related to the card surface A can be changed according to the changes of the sensors in the mobile client, thereby improving the display efficiency and display effect of the virtual card, increasing the realism of the virtual card, and It can interact with users in real time and improve the attractiveness to users.
  • FIG. 5 shows a display device of a virtual card according to an embodiment of the present disclosure, and the display device is arranged in a mobile client.
  • the display device 50 of the virtual card may include or be divided into one or more program modules, and the one or more program modules are stored in a storage medium and executed by one or more processors to The present disclosure is completed, and the above-mentioned display method of the virtual device can be realized.
  • the program module referred to in the present disclosure refers to a series of computer program instruction segments capable of performing specific functions, and is more suitable for describing the execution process of the display device 50 of the virtual card in the storage medium than the program itself. The following description will specifically introduce the functions of each program module in this embodiment:
  • the initial acquisition module 51 is configured to acquire the first card face pattern, the first initial parameter and the first association relationship corresponding to the virtual card selected by the user; the first initial parameter is used to represent the relationship with the first card.
  • the initial parameters of the first display feature of the first material corresponding to the card face pattern, and the first association relationship is used to represent the law that the real-time parameter of the first display feature follows the change of the sensor parameter in the mobile client;
  • an initial display module 52 configured to display the first material in the virtual card according to the first initial parameter
  • a real-time acquisition module 53 configured to collect sensor parameters in the mobile client in real time, and determine the real-time parameters of the first display feature according to the sensor parameters and the first correlation;
  • the real-time display module 54 is configured to display the first material in the virtual card according to the real-time parameters of the first display feature.
  • the first card surface pattern corresponds to a plurality of first materials
  • the real-time acquisition module 53 includes:
  • the first acquisition sub-module 531 is configured to determine the real-time parameters of the respective first display features of the multiple first materials according to the sensor parameters, the first correlation relationship and the quantity of the multiple first materials ;
  • the second acquisition sub-module 532 is configured to determine the real-time parameters of the respective first display features of the multiple first materials according to the sensor parameters, the first correlation relationship and the attributes of the multiple first materials .
  • the display device 50 further includes:
  • the replacement request module 55 is configured to send a request for replacing the card face pattern to the server;
  • the card face determining module 56 is configured to receive a plurality of candidate card face patterns corresponding to the virtual card returned by the server, and determine a second card face pattern from the plurality of candidate card face patterns;
  • the second parameter receiving module 57 is configured to receive a second initial parameter corresponding to the second card face pattern and a second association relationship returned by the server, where the second initial parameter is used to represent a relationship with the second card face an initial parameter of the second display feature of the second material corresponding to the pattern, and the second association relationship is used to characterize the law that the real-time parameter of the second display feature follows the change of the sensor parameter in the mobile client;
  • the second real-time collection module 58 is configured to collect sensor parameters in the mobile client in real time, and determine the real-time parameters of the second display feature according to the sensor parameters and the second association relationship;
  • the second real-time display module 59 is configured to display the second material in the virtual card according to the real-time parameters of the second display feature.
  • each module of the display device 50 shown in FIG. 5 may correspond to each step in the display method described with reference to FIG. 1 . That is, the initial acquisition module 51 , the initial display module 52 , the real-time acquisition module 53 , and the real-time display module 54 in the display device 50 respectively correspond to steps S100 - S400 in the display method shown in FIG. 1 .
  • the operations, features, and advantages described above with respect to the display method of FIG. 1 are equally applicable to the display device 50 and the modules it includes. For the sake of brevity, certain operations, features, and advantages are not repeated here.
  • This embodiment also provides a computer device, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a rack server, a blade server, a tower server, or a cabinet server (including independent servers, or A server cluster composed of multiple servers), etc.
  • the computer device 60 in this embodiment at least includes but is not limited to: a memory 61 and a processor 62 that can be communicatively connected to each other through a system bus, as shown in FIG. 6 . It should be noted that FIG. 6 only shows the computer device 60 having components 61-62, but it should be understood that implementation of all of the illustrated components is not required, and more or less components may be implemented instead.
  • the memory 61 (ie, a readable storage medium) includes a flash memory, a hard disk, a multimedia card, a card-type memory (eg, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Programmable Read Only Memory (PROM), Magnetic Memory, Magnetic Disk, Optical Disk, etc.
  • the memory 61 may be an internal storage unit of the computer device 60 , such as a hard disk or memory of the computer device 60 .
  • the memory 61 may also be an external storage device of the computer device 60, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, flash memory card (Flash Card), etc.
  • the memory 61 may also include both an internal storage unit of the computer device 60 and an external storage device thereof.
  • the memory 61 is generally used to store the operating system and various application software installed in the computer device 60 , such as the program codes of the display device 50 of the virtual card in the above-mentioned embodiment.
  • the memory 61 can also be used to temporarily store various types of data that have been output or will be output.
  • the processor 62 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments.
  • the processor 62 is typically used to control the overall operation of the computer device 60 .
  • the processor 62 is used for running the program code or processing data stored in the memory 61, for example, running the display device 50 of the virtual card, so as to realize the display method of the virtual card in the above-mentioned embodiment.
  • This embodiment also provides a computer-readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), only Read-only memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Programmable Read-Only Memory (PROM), magnetic memory, magnetic disk, optical disk, server, App application mall, etc., on which computer programs are stored, When the program is executed by the processor, the corresponding function is realized.
  • the computer-readable storage medium of this embodiment is used to store the display device 50 of the virtual card, and when executed by the processor, implements the display method of the virtual card of the above-mentioned embodiment.
  • this embodiment proposes a method for displaying a virtual card, which can be executed on the server side (that is, the execution body of the method is the server or a part thereof), including the following steps:
  • S100' Receive a card surface material group corresponding to the virtual card, where the card surface material group includes one or more materials.
  • the card face material group corresponding to the virtual card can be designed by the designer and sent to the server for storage.
  • a virtual card can include one or more materials, such as pictures, videos or 3D models.
  • the virtual card includes a rectangular display frame, and the display frame may contain one or a combination of the above-mentioned materials such as pictures, videos, or 3D models.
  • the virtual card can present different contents, and these different contents can be represented by different card surface patterns. It can be understood that the virtual card may contain a variety of different card surface patterns for users to choose according to their preferences.
  • S200' Receive an initial parameter and an association relationship corresponding to each material; the initial parameter is used to characterize the initial parameter of the display feature of the material, and the association relationship is used to characterize the real-time parameter of the display feature to follow the movement The law of sensor parameter change in the client.
  • the initial parameter is used to characterize the initial parameter of the display characteristic of the material corresponding to the card face pattern.
  • the initial parameters refer to the initial parameters of the display features corresponding to each material, such as the initial parameters of the display features corresponding to material 1 and the initial parameters of the display feature corresponding to material 2.
  • the display features in this embodiment may include one or more of position coordinates, size, transparency, rotation angle, flip angle, and time axis.
  • the initial parameters of each display parameter in this embodiment can be preset by the designer and stored in the server.
  • the initial coordinates of a certain material are located in the center of the card surface area, the initial transparency is 0 (that is, it is completely opaque), and the initial rotation angle and flip angle are both 0 degrees.
  • the association relationship in this embodiment is used to represent the law that the real-time parameter of the display feature follows the change of the sensor parameter in the mobile client.
  • a mobile client such as a smart phone usually includes multiple sensors such as an angular velocity sensor, a gravity sensor, a brightness sensor, an air pressure sensor, and a geographic location sensor.
  • the virtual card can show different display states following different actions of the mobile client or different environments in which it is located, thereby increasing interactivity and entertainment.
  • any display feature can be set to its associated sensor parameter as required, and specific examples are as follows:
  • the card surface pattern may be an image in .jpg, .bmp and other formats, and may be obtained by taking a screenshot of a virtual card composed of one or more materials, in order to provide a visual index for the user.
  • the above-mentioned method for displaying a virtual card performed on the server side further includes the following steps S500'-S700' (steps S500'-S700' are not shown in FIG. 7 ).
  • S400' In response to the account login request sent by the mobile client, verify the account name and password.
  • This step is used for the user to log in and verify whether the user has purchased a virtual card.
  • a corresponding record will be stored in the server.
  • S500' Send the currently selected first card face image, the first initial parameter and the first association relationship to the mobile client.
  • the server can query the first card face pattern, the first initial parameter and the first association relationship selected by the user last time, and send the first card face pattern, the first initial parameter and the first association relationship to client.
  • step S400' may also be included (step S400' is not shown in Fig. 7).
  • step S400' the account name and password are verified in response to the account login request sent by the mobile client.
  • Step S400' is used for the user to log in and verify whether the user has purchased a virtual card.
  • a corresponding record will be stored in the server.
  • step S500' is executed.
  • a request for changing the card surface pattern can be sent to the server through the mobile client.
  • the server will send multiple candidate card face patterns for the user to select according to the content requested by the mobile client.
  • S700' Based on the second card face pattern determined by the user from the plurality of candidate card face patterns, send a second initial parameter and a second association relationship corresponding to the second card face pattern to the mobile client.
  • the server sends the pre-stored second initial parameter corresponding to the second card face pattern and the second association relationship to the mobile client. Specifically, it includes the second card surface pattern, the initial parameters of all the materials included in the second card surface pattern, and the relationship between each material in the second card surface pattern and the sensor parameters.
  • all materials included in the virtual card can be stored.
  • the display feature changes according to the changes of each sensor in the mobile client, thereby improving the display efficiency and display effect of the virtual card, increasing the realism of the virtual card, increasing the realism of the virtual card, and being able to interact with the user in real time, Increase attractiveness to users.
  • FIG. 8 shows a display device of a virtual card, and the display device is arranged on the server side.
  • the display device 80 of the virtual card may include or be divided into one or more program modules, and the one or more program modules are stored in a storage medium and executed by one or more processors to The present disclosure is completed, and the above-mentioned display method of the virtual device can be realized.
  • the program module referred to in the present disclosure refers to a series of computer program instruction segments capable of performing specific functions, and is more suitable for describing the execution process of the display device 80 of the virtual card in the storage medium than the program itself. The following description will specifically introduce the functions of each program module in this embodiment:
  • the material receiving module 81 is configured to receive a card surface material group corresponding to the virtual card, where the card surface material group includes one or more materials;
  • the parameter receiving module 82 is configured to receive an initial parameter and an association relationship corresponding to each material; the initial parameter is used to characterize the initial parameter of the display feature of the material, and the association relationship is used to characterize the display feature
  • the real-time parameters of the mobile client follow the change of the sensor parameters in the mobile client;
  • the card surface generating module 83 is configured to generate and save a card surface pattern corresponding to the card surface material group according to the initial parameters of all the materials included in the card surface material group.
  • various modules of the display device 80 shown in FIG. 8 may correspond to various steps in the display method described with reference to FIG. 7 . That is, the material receiving module 81, the parameter receiving module 82, and the card face generating module 83 in the display device 80 respectively correspond to steps S100'-S300' in the display method shown in FIG. 7 .
  • the operations, features, and advantages described above with respect to the display method of FIG. 7 are equally applicable to the display device 80 and the modules it includes. For the sake of brevity, certain operations, features, and advantages are not repeated here.
  • any description of a process or method in the flowcharts or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing a specified logical function or step of the process , and the scope of the preferred embodiments of the present disclosure includes alternative implementations in which the functions may be performed out of the order shown or discussed, including performing the functions substantially concurrently or in the reverse order depending upon the functions involved, which should It is understood by those skilled in the art to which the embodiments of the present disclosure pertain.
  • references to the terms “one embodiment,” “some embodiments,” “example,” “specific example,” or “some examples”, etc. means a specific feature described in connection with the embodiment or example, A structure, material, or feature is included in at least one embodiment or example of the present disclosure.
  • schematic representations of the above terms do not necessarily refer to the same embodiment or example.
  • the particular features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Hardware Design (AREA)
  • Business, Economics & Management (AREA)
  • Architecture (AREA)
  • Computer Graphics (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Accounting & Taxation (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • User Interface Of Digital Computer (AREA)
  • Processing Or Creating Images (AREA)

Abstract

一种虚拟卡片的显示方法、装置、计算机设备和存储介质,所述方法包括:获取与所述虚拟卡片对应的第一卡面图案、第一初始参数以及第一关联关系(S100);所述第一初始参数用于表征与所述第一卡面图案相对应的第一素材的第一显示特征的初始参数,所述第一关联关系用于表征所述第一显示特征的实时参数跟随移动客户端中的传感器参数变化的规律;根据所述第一初始参数显示所述虚拟卡片中的第一素材(S200);实时采集所述移动客户端中的传感器参数,根据所述传感器参数和所述第一关联关系确定所述第一显示特征的实时参数(S300);以及根据所述第一显示特征的实时参数显示所述虚拟卡片中的第一素材(S400)。

Description

虚拟卡片的显示方法、装置、计算机设备及存储介质
相关申请的交叉引用
本公开要求于2020年09月08日提交的中国专利申请202010935831.3的优先权,其全部内容通过引用整体结合在本公开中。
技术领域
本公开涉及数据交互及显示技术领域,特别涉及一种虚拟卡片的显示方法、装置、计算机设备及存储介质。
背景技术
为了提高用户粘性,越来越多的付费网站推出了虚拟卡片业务,用户通过充值办理虚拟卡片可以拥有更多权益,例如在卡片有效期内不限量阅读电子书籍、观看影视节目等。
目前现有的虚拟卡片大多是以静态图片的方式显示,显示效果缺乏真实感,无法与用户进行有效互动。
发明内容
本公开提供一种可以提高数据交互和数据显示效率的虚拟卡片显示方案,以解决现有技术中存在的上述问题。
根据本公开的一个方面,提供一种虚拟卡片的显示方法,包括:获取与所述虚拟卡片对应的第一卡面图案、第一初始参数以及第一关联关系;所述第一初始参数用于表征与所述第一卡面图案相对应的第一素材的第一显示特征的初始参数,所述第一关联关系用于表征所述第一显示特征的实时参数跟随所述移动客户端中的传感器参数变化的规律;根据所述第一初始参数显示所述虚拟卡片中的第一素材;实时采集所述移动客户端中的传感器参数,根据所述传感器参数和所述第一关联关系确定所述第一显示特征的实时参数;以及根据所述第 一显示特征的实时参数显示所述虚拟卡片中的第一素材。
根据本公开的另一方面,提供一种虚拟卡片的显示方法,包括:接收与虚拟卡片对应的卡面素材组,所述卡面素材组包括一个或多个素材;接收与每个素材相对应的初始参数和关联关系;所述初始参数用于表征所述素材的显示特征的初始参数,所述关联关系用于表征所述显示特征的实时参数跟随移动客户端中的传感器参数变化的规律;以及根据所述卡面素材组所包括的所有素材的初始参数,生成与所述卡面素材组对应的卡面图案并保存。
根据本公开的另一方面,提供一种虚拟卡片的显示装置,包括:初始获取模块,被配置为获取与所述虚拟卡片对应的第一卡面图案、第一初始参数以及第一关联关系;所述第一初始参数用于表征与所述第一卡面图案相对应的第一素材的第一显示特征的初始参数,所述第一关联关系用于表征所述第一显示特征的实时参数跟随所述移动客户端中的传感器参数变化的规律;初始显示模块,被配置为根据所述第一初始参数显示所述虚拟卡片中的第一素材;实时采集模块,被配置为实时采集所述移动客户端中的传感器参数,根据所述传感器参数和所述第一关联关系确定所述第一显示特征的实时参数;以及实时显示模块,被配置为根据所述第一显示特征的实时参数显示所述虚拟卡片中的第一素材。
根据本公开的另一方面,提供一种虚拟卡片的显示装置,包括:素材接收模块,被配置为接收与虚拟卡片对应的卡面素材组,所述卡面素材组包括一个或多个素材;参数接收模块,被配置为接收与每个素材相对应的初始参数和关联关系;所述初始参数用于表征所述素材的显示特征的初始参数,所述关联关系用于表征所述显示特征的实时参数跟随移动客户端中的传感器参数变化的规律;以及卡面生成模块,被配置为根据所述卡面素材组所包括的所有素材的初始参数,生成与所述卡面素材组对应的卡面图案并保存。
根据本公开的另一方面,提供一种计算机设备,包括存储器、处理器以及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述方法。
根据本公开的另一方面,提供一种计算机可读存储介质,其上存储有计算 机程序,所述计算机程序被处理器执行时实现上述方法。
根据本公开的另一方面,提供一种计算机程序产品,包括计算机程序,所述计算机程序在被处理器执行时实现上述方法。
本公开提供的虚拟卡片的显示方法、装置、计算机设备和计算机可读存储介质,将虚拟卡片的显示特征与移动客户端采集到的实时传感器参数相联系,根据传感器参数的变化而呈现不同显示效果。
具体的,本公开将虚拟卡片中的素材资源与移动设备中的加速度传感器、亮度传感器、重力传感器等多个传感器相关联,使得虚拟卡片能够在移动设备中实现实时跟随设备角度、周围环境光线等参数发生精妙变化,从而能够提高虚拟卡片的显示效率和显示效果,使其接近真实卡片的质感,并且能够与用户进行实时交互,增加对用户的吸引力。
附图说明
图1为根据本公开实施例的虚拟卡片显示方法的流程图;
图2A-图2D为根据本公开实施例的显示特征跟随传感器参数变化的效果示意图;
图3为根据本公开实施例的更换卡面图案的示意图;
图4为根据本公开实施例的根据新确定的卡面图案获取相关数据的示意图;
图5为根据本公开实施例的虚拟卡片显示装置的程序模块示意图;
图6为根据本公开实施例的计算机设备的硬件结构示意图;
图7为根据本公开另一实施例的虚拟卡片显示方法的流程图;
图8为根据本公开另一实施例的虚拟卡片显示装置的程序模块示意图。
具体实施方式
为了使本公开的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本公开进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本公开,并不用于限定本公开。基于本公开中的实施例,本领域普通 技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。
请参阅图1,本公开实施例提出一种虚拟卡片的显示方法,该方法可以在移动客户端中执行(即该方法的执行主体为移动客户端或其一部分),包括以下步骤:
S100:获取与虚拟卡片对应的第一卡面图案、第一初始参数以及第一关联关系。
根据一些实施例,在步骤S100中,可以响应于用户已开通虚拟卡片信息,从服务器下载与虚拟卡片对应的第一卡面图案、第一初始参数以及第一关联关系。第一卡面图案例如可以是用户已选择的或者是默认的。
用户已开通虚拟卡片信息可以是用户通过移动客户端进行账号登陆时确定的。例如用户在移动客户端输入账号和密码向服务器请求登陆,服务器对账号和密码进行验证后,可以查询该用户是否购买过虚拟卡片。若是,向客户端返回用户已开通虚拟卡片信息。本实施例的虚拟卡片中可以包括一种或多种素材,例如图片、视频、3D模型等。通常虚拟卡片包括一矩形的显示框,显示框中可以包含上述图片、视频、3D模型等素材中的一种或者多种的组合。通过更换不同的素材或者素材组合,虚拟卡片可以呈现出不同的内容,这些不同的内容可以通过不同的卡面图案来表示。可以理解,虚拟卡片可以包含多种不同的卡面图案供用户根据喜好选择。用户登陆账号时,服务器可以查询到用户上一次选择的第一卡面图案、第一初始参数以及第一关联关系,并将第一卡面图案、第一初始参数以及第一关联关系发送至移动客户端。或者,在用户未曾选择过卡面图案的情况下,服务器可以将一默认的卡面图案作为第一卡面图案,并将第一卡面图案、第一初始参数以及第一关联关系发送至移动客户端。
其中,卡面图案例如可以是.jpg,.bmp等格式的图像,具体可以是对一种或多种素材组成的虚拟卡片进行截屏后得到的,目的是为用户提供一个可视化索引。
初始参数用于表征与卡面图案相对应的素材的显示特征的初始参数。当卡 面图案中包括多个素材时,例如同时包括素材1和素材2,初始参数指的是与每个素材相对应的显示特征的初始参数,例如与素材1相对应的显示特征的初始参数和与素材2相对应的显示特征的初始参数。本实施例中的显示特征可以包括位置坐标、尺寸、透明度、旋转角度、翻转角度和时间轴中的一种或多种。其中,位置坐标用于表征对应素材在卡面区域内的相对位置,尺寸用于表征对应素材在卡面区域内的相对大小。本实施例的卡面区域可以是预设好的具有一定长度和宽度的矩形框。可以以卡面区域的左上角作为平面坐标原点,对应素材的中心点在卡面区域内的坐标就可以表示素材在卡面区域内的相对位置。同理,对应素材的尺寸可以表示该素材在卡面区域内的相对大小。透明度用于表征对应素材的透明程度,旋转角度用于表征对应素材在与所述移动客户端的显示屏平行的平面内的偏移角度,翻转角度用于表征对应素材相对于所述移动客户端的显示屏所在平面的偏移角度。时间轴是特别针对视频素材的特征,表征对应视频素材中的当前播放帧在整个视频中的相对时刻。
本实施例中每个显示参数的初始参数可以由设计人员预先设置完成。例如令某素材的初始坐标位于卡面区域的中心,初始透明度为0(即完全不透明),初始旋转角度和翻转角度均为0度等。
本实施例中的关联关系用于表征所述显示特征的实时参数跟随移动客户端中的传感器参数变化的规律。可以理解,移动客户端例如智能手机中通常包括角速度传感器(又称“陀螺仪”)、重力传感器、亮度传感器、气压传感器、地理位置传感器中的一个或多个。当然,本公开不限于此,移动客户端例如智能手机还可以包括任何其他适合类型的传感器。
相应地,传感器参数可以包括角速度传感器参数(例如角速度传感器采集到的移动客户端的倾斜角度)、重力传感器参数(例如重力传感器采集到的移动客户端的水平、垂直等方向的角度)、亮度传感器参数(例如亮度传感器采集到的移动客户端所在环境的亮度)、气压传感器参数(例如气压传感器采集到的移动客户端所在的海拔高度)、任何其他适合类型的传感器参数中的一种或多种。可以理解,气压与海拔高度具有对应关系,海拔高度越高,气压越低, 因此气压传感器可以用于测量海拔高度。在一些实施例中,也可以结合气压传感器和地理位置传感器(例如GPS传感器)来确定海拔高度。
通过设置显示特征的实时参数跟随传感器参数变化的规律,可以使得虚拟卡片实时跟随移动客户端的不同动作或者所处的不同环境呈现出不同的显示状态,从而增加互动性和娱乐性。需要说明的是,本公开实施例中的每个显示特征可以仅与一个传感器参数发生关联关系,也可以与多个传感器参数发生关联关系。根据一些实施例,每个显示特征可以只和唯一一个传感器参数发生关联关系,这样可以避免由于关联多个传感器参数而发生互斥的情况。具体的,可以根据需要为任一个显示特征设置与其关联的传感器参数,具体举例如下:
设置坐标的变化范围与角速度传感器参数的变化范围或重力传感器参数的变化范围之间的对应关系;
设置尺寸的变化范围与角速度传感器参数的变化范围或亮度传感器参数的变化范围或重力传感器参数的变化范围之间的对应关系;
设置透明度的变化范围与角速度传感器参数的变化范围或亮度传感器参数的变化范围或重力传感器参数的变化范围或气压传感器参数的变化范围之间的对应关系;
设置旋转角度的变化范围与重力传感器参数的变化范围之间的对应关系;
设置翻转角度的变化范围与角速度传感器参数的变化范围之间的对应关系;
设置时间轴的变化范围与角速度传感器参数的变化范围之间的对应关系。
本领域普通技术人员可以理解,以上关联关系的设置仅仅用于举例,并非作为本公开的限定。任何现有的或未来可能出现的显示特征与传感器之间的关联关系都包含在本公开的保护范围之内。
根据另一些实施例,移动客户端可以在步骤S100之前预选获取并存储虚拟卡片的第一卡面图案、第一初始参数以及第一关联关系。相应地,在步骤S100中,移动客户端可以从本地存储中获取第一卡面图案、第一初始参数以及第一关联关系。
S200:根据所述第一初始参数显示所述虚拟卡片中的第一素材。
移动客户端在加载虚拟卡片之初,首先根据初始参数呈现各个素材的显示特征。具体呈现时间可以根据需要灵活设置,例如10秒钟,这样便于用户对虚拟卡片的显示效果有所了解。需要说明的是,根据初始参数呈现出的虚拟卡片的效果与卡面图案中显示的效果可以相同,也可以不同。如前所示,卡面图案实际上是虚拟卡片在某一条件下显示特征的静态呈现效果的截屏。该某一条件可以是初始时刻,也可以是极限条件,例如传感器参数取变化范围的端点时对应的显示特征。
S300:实时采集所述移动客户端中的传感器参数,根据所述传感器参数和所述第一关联关系确定所述第一显示特征的实时参数。
可以理解,当用户手持移动客户端时不会长期处于静止状态,移动客户端所处的角度、位置、周围环境会实时变化。根据移动客户端中的传感器参数实时调整虚拟卡片的显示特征,就可以实现虚拟卡片的显示效果随着移动客户端的状态变化而发生变化。
如前所述,关联关系用于表征显示特征的实时参数跟随移动客户端中的传感器参数变化的规律,例如某显示特征的变化范围与其中一个传感器参数的变化范围之间的对应关系。具体的,当移动客户端从服务器中接收到上述对应关系时,会根据该对应关系计算显示特征的实时取值。例如,当角速度传感器采集到的倾斜角度在[-60°,60°]之间变化时,翻转角度可以在[-30°,30°]之间变化。移动客户端可以根据上述变化范围计算出翻转角度与倾斜角度之间的线性关系,例如30=m×60,则m=30÷60=0.5,即翻转角度θ与倾斜角度a的对应关系为θ=0.5a。由此可以根据角速度传感器采集到的每一个倾斜角度a,计算得到对应的翻转角度θ。
在此,同一传感器参数可以对应于多种不同的第一显示特征,也即,当某一传感器参数变化时,同时使得多个不同的第一显示特征的实时参数进行变化。例如,当角速度传感器变化时,使得第一素材的翻转角度与透明度同时变化。
根据一些实施例,第一素材包括多个,即,第一卡面图案对应于多个第一素材。
在第一卡面图案对应于多个第一素材的情况下,根据一些实施例,确定所述第一显示特征的实时参数的步骤可以包括:
根据所述传感器参数、所述第一关联关系和所述多个第一素材的数量,确定所述第一显示特征的实时参数。根据一些实施例,可以根据传感器参数、第一关联关系来确定所述多个第一素材的第一显示特征的实时参数总和;以及将所述多个第一素材各自的第一显示特征的实时参数设置为实时参数总和与所述多个第一素材的数量的商。例如,第一卡面图案上包含n个第一素材,当确定第一显示特征的实时参数时将第一素材的个数n也考虑在内,使得每个第一素材对应的第一显示特征的实时参数占据整体第一显示特征的实时参数(即实时参数总和)的1/n。例如,当手机基于角速度传感器进行翻转时,若卡面上只有一个第一素材,假设该第一素材的翻转角度为30度;若卡面上有3个第一素材,每个素材的翻转角度为整体翻转角度30度的1/3,即每个第一素材的翻转角度为10度。
在第一卡面图案对应于多个第一素材的情况下,根据另一些实施例,也可以根据所述传感器参数、所述第一关联关系和所述多个第一素材的属性,确定所述多个第一素材各自的第一显示特征的实时参数。其中,第一素材的属性包括但不限于背景图像、前景图像、第一素材的内容类别(例如人像、植物、动物、景物等)。根据一些实施例,第一关联关系可以进一步用于表征第一显示特征的实时参数跟随传感器参数以及第一素材的属性变化的规律,第一素材的不同属性对应不同的第一显示特征的实时参数。例如当第一素材为前景图像(如人像)时,第一显示特征的实时参数为原参数30度;当第一素材为背景图像时,第一显示特征的实时参数在原参数的基础上进行适当的缩放,例如缩小至原参数的1/3即10度。总之,对于同一个传感器参数,本实施例也可以在不同的场景下具有不同的第一显示特征的实时参数。从而可以增加虚拟卡片画面的丰富性,提升用户体验。
S400:根据所述第一显示特征的实时参数显示所述虚拟卡片中的第一素材。
图2A-图2D为根据本公开一些实施例的显示特征跟随传感器参数变化的 效果示意图。其中,图2A显示的是角速度传感器参数变化对素材坐标的影响,如图2A左侧图,监测到角速度传感器基于y轴向左倾斜,对应右侧图中素材坐标左移。图2B显示的是角速度传感器参数变化对素材翻转角度的影响,如图2B左侧图,监测到角速度传感器基于y轴向右倾斜,对应右侧图中素材的翻转角度向右侧变化。图2C显示的是亮度传感器参数变化对素材透明度的影响,如图2C左侧图,监测到亮度传感器的亮度参数从小变大,对应右侧图中素材的透明度由低向高变化。图2D显示的是当第一素材为3D模型时重力传感器参数变化对素材旋转角度的影响,如图2D左侧图,监测到重力传感器的旋转参数呈逆时针旋转,对应右侧图中3D模型也同样向逆时针方向旋转。
根据一些实施例,本公开实施例的虚拟卡片的显示方法还包括以下步骤S500-S900(S500-S900未在图1中示出)。
S500:向服务器发送更换卡面图案请求。
为了满足用户个性化需求,本实施例可以包含多种卡面图案,每种卡面图案对应不同的素材或素材集合。用户可以在当前卡面图案的基础上,通过移动客户端向服务器发送更换卡面图案请求。
S600:接收服务器返回的与所述虚拟卡片对应的多个候选卡面图案,从所述多个候选卡面图案中确定第二卡面图案。
服务器会根据移动客户端请求的内容返回多个候选卡面图案以供用户选择。图3示出了根据本公开实施例的更换卡面图案的示意图。如图3所示,用户上一次选择的卡面图案为卡面B,当用户登陆系统通过验证后,移动客户端首先下载与卡面B相关的卡面图案、初始参数、关联关系等数据。当发送更换卡面图案请求之后,可以收到服务器返回的多个候选卡面图案,例如卡面A,卡面B,卡面C和卡面D。在图3的示例中,卡面A为确定的第二卡面图案。
S700:接收服务器返回的与所述第二卡面图案对应的第二初始参数和第二关联关系,所述第二初始参数用于表征与所述第二卡面图案相对应的第二素材的第二显示特征的初始参数,所述第二关联关系用于表征所述第二显示特征的实时参数跟随所述移动客户端中的传感器参数变化的规律。
图4示出了根据本公开实施例的根据新确定的卡面图案获取相关数据的示意图。如图4所示,对于已确定的新卡面图案卡面A,移动客户端向服务器发送下载素材请求,并接收服务器返回的素材数据,素材数据具体包括与卡面A对应的卡面图案、卡面A中包含的所有素材的初始参数以及卡面A中每个素材与传感器参数之间的关联关系。此时在虚拟卡片界面,会直接显示与卡面A相关的卡面图案,并且在一定时间内根据卡面A中包含的所有素材的初始参数呈现显示特征的对应效果。其中卡面A中每个素材与传感器参数之间的关联关系,可以包括素材的显示特征的变化范围与其中至少一个传感器参数的变化范围之间的对应关系。
S800:实时采集所述移动客户端中的传感器参数,根据所述传感器参数和所述第二关联关系确定所述第二显示特征的实时参数。
本步骤与步骤S300类似,在获得卡面A中每个素材的显示特征的变化范围与其中一个传感器参数的变化范围之间的对应关系的基础上,可以根据边界的具体数值计算出显示特征与对应传感器参数之间的线性函数关系,并根据该线性函数关系计算显示特征的实时参数。
S900:根据所述第二显示特征的实时参数显示所述虚拟卡片中的第二素材。
这样,就可以实现与卡面A相关的所有素材的显示特征根据移动客户端中各传感器的变化而发生改变的效果,从而提高虚拟卡片的显示效率和显示效果,增加虚拟卡片的真实感,并且能够与用户进行实时交互,提升对用户的吸引力。
请继续参阅图5,示出了根据本公开实施例的虚拟卡片的显示装置,该显示装置设置于移动客户端中。在本实施例中,虚拟卡片的显示装置50可以包括或被分割成一个或多个程序模块,一个或者多个程序模块被存储于存储介质中,并由一个或多个处理器所执行,以完成本公开,并可实现上述虚拟装置的显示方法。本公开所称的程序模块是指能够完成特定功能的一系列计算机程序指令段,比程序本身更适合于描述虚拟卡片的显示装置50在存储介质中的执行过程。以下描述将具体介绍本实施例各程序模块的功能:
初始获取模块51,被配置为获取用户已选择的与所述虚拟卡片对应的第一 卡面图案、第一初始参数以及第一关联关系;所述第一初始参数用于表征与所述第一卡面图案相对应的第一素材的第一显示特征的初始参数,所述第一关联关系用于表征所述第一显示特征的实时参数跟随所述移动客户端中的传感器参数变化的规律;
初始显示模块52,被配置为根据所述第一初始参数显示所述虚拟卡片中的第一素材;
实时采集模块53,被配置为实时采集所述移动客户端中的传感器参数,根据所述传感器参数和所述第一关联关系确定所述第一显示特征的实时参数;以及
实时显示模块54,被配置为根据所述第一显示特征的实时参数显示所述虚拟卡片中的第一素材。
进一步,所述第一卡面图案对应于多个第一素材,所述实时采集模块53包括:
第一采集子模块531,被配置为根据所述传感器参数、所述第一关联关系和所述多个第一素材的数量,确定所述多个第一素材各自的第一显示特征的实时参数;
第二采集子模块532,被配置为根据所述传感器参数、所述第一关联关系和所述多个第一素材的属性,确定所述多个第一素材各自的第一显示特征的实时参数。
进一步,所述显示装置50还包括:
更换请求模块55,被配置为向服务器发送更换卡面图案请求;
卡面确定模块56,被配置为接收服务器返回的与所述虚拟卡片对应的多个候选卡面图案,从所述多个候选卡面图案中确定第二卡面图案;
第二参数接收模块57,被配置为接收服务器返回的与所述第二卡面图案对应的第二初始参数和第二关联关系,所述第二初始参数用于表征与所述第二卡面图案相对应的第二素材的第二显示特征的初始参数,所述第二关联关系用于表征所述第二显示特征的实时参数跟随所述移动客户端中的传感器参数变化的 规律;
第二实时采集模块58,被配置为实时采集所述移动客户端中的传感器参数,根据所述传感器参数和所述第二关联关系确定所述第二显示特征的实时参数;
第二实时显示模块59,被配置为根据所述第二显示特征的实时参数显示所述虚拟卡片中的第二素材。
应当理解,图5中所示的显示装置50的各个模块可以与参考图1描述的显示方法中的各个步骤相对应。即,显示装置50中的初始获取模块51、初始显示模块52、实时采集模块53、实时显示模块54分别对应于图1所示的显示方法中的步骤S100-S400。由此,上面针对图1的显示方法描述的操作、特征和优点同样适用于显示装置50及其包括的模块。为了简洁起见,某些操作、特征和优点在此不再赘述。
本实施例还提供一种计算机设备,如可以执行程序的智能手机、平板电脑、笔记本电脑、台式计算机、机架式服务器、刀片式服务器、塔式服务器或机柜式服务器(包括独立的服务器,或者多个服务器所组成的服务器集群)等。本实施例的计算机设备60至少包括但不限于:可通过系统总线相互通信连接的存储器61、处理器62,如图6所示。需要指出的是,图6仅示出了具有组件61-62的计算机设备60,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。
本实施例中,存储器61(即可读存储介质)包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等。在一些实施例中,存储器61可以是计算机设备60的内部存储单元,例如该计算机设备60的硬盘或内存。在另一些实施例中,存储器61也可以是计算机设备60的外部存储设备,例如该计算机设备60上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。当然,存储器61还可以既包括计算机设备60的内部存储单元也包 括其外部存储设备。本实施例中,存储器61通常用于存储安装于计算机设备60的操作系统和各类应用软件,例如上述实施例的虚拟卡片的显示装置50的程序代码等。此外,存储器61还可以用于暂时地存储已经输出或者将要输出的各类数据。
处理器62在一些实施例中可以是中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器、或其他数据处理芯片。该处理器62通常用于控制计算机设备60的总体操作。本实施例中,处理器62用于运行存储器61中存储的程序代码或者处理数据,例如运行虚拟卡片的显示装置50,以实现上述实施例的虚拟卡片的显示方法。
本实施例还提供一种计算机可读存储介质,如闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘、服务器、App应用商城等等,其上存储有计算机程序,程序被处理器执行时实现相应功能。本实施例的计算机可读存储介质用于存储虚拟卡片的显示装置50,被处理器执行时实现上述实施例的虚拟卡片的显示方法。
请参阅图7,本实施例提出一种虚拟卡片的显示方法,该方法可以在服务器端执行(即该方法的执行主体为服务器或其一部分),包括以下步骤:
S100’:接收与虚拟卡片对应的卡面素材组,所述卡面素材组包括一个或多个素材。
与虚拟卡片对应的卡面素材组可以由设计人员设计完成后发送到服务器存储。一张虚拟卡片中可以包括一种或多种素材,例如图片、视频或3D模型。通常虚拟卡片包括一矩形的显示框,显示框中可以包含上述图片、视频或3D模型等素材中的一种或者几种的组合。通过更换不同的素材或者素材组合,虚拟卡片可以呈现出不同的内容,这些不同的内容可以通过不同的卡面图案来表示。可以理解,虚拟卡片可以包含多种不同的卡面图案供用户根据喜好选择。
S200’:接收与每个素材相对应的初始参数和关联关系;所述初始参数用于 表征所述素材的显示特征的初始参数,所述关联关系用于表征所述显示特征的实时参数跟随移动客户端中的传感器参数变化的规律。
初始参数用于表征与卡面图案相对应的素材的显示特征的初始参数。当卡面图案中包括多个素材时,例如同时包括素材1和素材2,初始参数指的是与每个素材相对应的显示特征的初始参数,例如与素材1相对应的显示特征的初始参数和与素材2相对应的显示特征的初始参数。本实施例中的显示特征可以包括位置坐标、尺寸、透明度、旋转角度、翻转角度和时间轴中的一种或多种。
本实施例中每个显示参数的初始参数可以由设计人员预先设置完成并保存在服务器中。例如令某素材的初始坐标位于卡面区域的中心,初始透明度为0(即完全不透明),初始旋转角度和翻转角度均为0度等。本实施例中的关联关系用于表征所述显示特征的实时参数跟随移动客户端中的传感器参数变化的规律。可以理解,移动客户端例如智能手机中通常包括角速度传感器、重力传感器、亮度传感器、气压传感器、地理位置传感器等多个传感器。通过设置显示特征的实时参数跟随传感器参数变化的规律,可以使得虚拟卡片跟随移动客户端的不同动作或者所处的不同环境呈现出不同的显示状态,从而增加互动性和娱乐性。具体的,可以根据需要为任一个显示特征设置于其关联的传感器参数,具体举例如下:
设置坐标的变化范围与角速度传感器参数的变化范围或重力传感器参数的变化范围之间的对应关系;
设置尺寸的变化范围与角速度传感器参数的变化范围或亮度传感器参数的变化范围或重力传感器参数的变化范围之间的对应关系;
设置透明度的变化范围与角速度传感器参数的变化范围或亮度传感器参数的变化范围或重力传感器参数的变化范围或气压传感器参数的变化范围之间的对应关系;
设置旋转角度的变化范围与重力传感器参数的变化范围之间的对应关系;
设置翻转角度的变化范围与角速度传感器参数的变化范围之间的对应关系;
设置时间轴的变化范围与角速度传感器参数的变化范围之间的对应关系。
本领域普通技术人员可以理解,以上关联关系的设置仅仅用于举例,并非作为本公开的限定。任何现有的或未来可能出现的显示特征与传感器之间的关联关系都包含在本公开的保护范围之内。
S300’:根据所述卡面素材组所包括的所有素材的初始参数,生成与所述卡面素材组对应的卡面图案并保存。
卡面图案可以是.jpg,.bmp等格式的图像,具体可以是对一种或多种素材组成的虚拟卡片进行截屏后得到的,目的是为用户提供一个可视化索引。
根据一些实施例,上述在服务器端执行的虚拟卡片的显示方法还包括下述步骤S500’-S700’(步骤S500’-S700’未在图7中示出)。
S400’:响应于移动客户端发出的账号登录请求,对账号名和密码进行验证。
本步骤用于供用户登陆并验证用户是否购买过虚拟卡片。当该用户购买过虚拟卡片,则会在服务器中存储相应记录。S500’:向所述移动客户端发送当前选择的第一卡面图像、第一初始参数和第一关联关系。
用户登陆账号之初,服务器可以查询到用户上一次选择的第一卡面图案、第一初始参数以及第一关联关系,并将第一卡面图案、第一初始参数以及第一关联关系发送至客户端。
根据一些实施例,在步骤S500’之前,还可以包括步骤S400’(步骤S400’未在图7中示出)。在步骤S400’中,响应于移动客户端发出的账号登录请求,对账号名和密码进行验证。
步骤S400’用于供用户登陆并验证用户是否购买过虚拟卡片。当该用户购买过虚拟卡片,则会在服务器中存储相应记录。
在步骤S400’验证通过的情况下,执行步骤S500’。
S600’:响应于更换卡面图案请求,向所述移动客户端发送多个候选卡面图案。
当用户想要更换卡面图案时,可以通过移动客户端向服务器发送更换卡面图案请求。服务器会根据移动客户端请求的内容发送多个候选卡面图案以供用户选择。
S700’:基于用户从所述多个候选卡面图案中确定的第二卡面图案,向所述移动客户端发送与所述第二卡面图案对应的第二初始参数和第二关联关系。
在用户选择了第二卡面图案的基础上,服务器将事先存储的与第二卡面图案对应的第二初始参数和第二关联关系发送至移动客户端。具体包括第二卡面图案、第二卡面图案中包含的所有素材的初始参数以及第二卡面图案中每个素材与传感器参数之间的关联关系。
本实施例通过存储与虚拟卡片对应的所有卡面图案、初始参数和关联关系,并且基于移动客户端的请求发送对应的卡面图案、初始参数和关联关系,可以实现虚拟卡片所包含的所有素材的显示特征根据移动客户端中各传感器的变化而发生改变的效果,从而提高虚拟卡片的显示效率和显示效果,增加虚拟卡片的真实感,增加虚拟卡片的真实感,并且能够与用户进行实时交互,提升对用户的吸引力。
请继续参阅图8,示出了一种虚拟卡片的显示装置,该显示装置设置于服务器端。在本实施例中,虚拟卡片的显示装置80可以包括或被分割成一个或多个程序模块,一个或者多个程序模块被存储于存储介质中,并由一个或多个处理器所执行,以完成本公开,并可实现上述虚拟装置的显示方法。本公开所称的程序模块是指能够完成特定功能的一系列计算机程序指令段,比程序本身更适合于描述虚拟卡片的显示装置80在存储介质中的执行过程。以下描述将具体介绍本实施例各程序模块的功能:
素材接收模块81,被配置为接收与虚拟卡片对应的卡面素材组,所述卡面素材组中包括一个或多个素材;
参数接收模块82,被配置为接收与每个素材相对应的初始参数和关联关系;所述初始参数用于表征所述素材的显示特征的初始参数,所述关联关系用于表征所述显示特征的实时参数跟随移动客户端中的传感器参数变化的规律;以及
卡面生成模块83,被配置为根据所述卡面素材组所包括的所有素材的初始参数,生成与所述卡面素材组对应的卡面图案并保存。
应当理解,图8中所示的显示装置80的各个模块可以与参考图7描述的 显示方法中的各个步骤相对应。即,显示装置80中的素材接收模块81、参数接收模块82、卡面生成模块83分别对应于图7所示的显示方法中的步骤S100’-S300’。由此,上面针对图7的显示方法描述的操作、特征和优点同样适用于显示装置80及其包括的模块。为了简洁起见,某些操作、特征和优点在此不再赘述。
上述本公开实施例序号仅仅为了描述,不代表实施例的优劣。
流程图中或在此以其它方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本公开的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本公开的实施例所属技术领域的技术人员所理解。
本技术领域的普通技术人员可以理解,实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本公开的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。
以上仅为本公开的优选实施例,并非因此限制本公开的专利范围,凡是利用本公开说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本公开的专利保护范围内。

Claims (15)

  1. 一种虚拟卡片的显示方法,包括:
    获取与所述虚拟卡片对应的第一卡面图案、第一初始参数以及第一关联关系,其中,所述第一初始参数用于表征与所述第一卡面图案相对应的第一素材的第一显示特征的初始参数,所述第一关联关系用于表征所述第一显示特征的实时参数跟随移动客户端中的传感器参数变化的规律;
    根据所述第一初始参数显示所述虚拟卡片中的第一素材;
    实时采集所述移动客户端中的传感器参数,根据所述传感器参数和所述第一关联关系确定所述第一显示特征的实时参数;以及
    根据所述第一显示特征的实时参数显示所述虚拟卡片中的第一素材。
  2. 根据权利要求1所述的虚拟卡片的显示方法,其中,所述第一卡面图案对应于多个第一素材,所述根据所述传感器参数和所述第一关联关系确定所述第一显示特征的实时参数包括:
    根据所述传感器参数、所述第一关联关系和所述多个第一素材的数量,确定所述多个第一素材各自的第一显示特征的实时参数;或者
    根据所述传感器参数、所述第一关联关系和所述多个第一素材的属性,确定所述多个第一素材各自的第一显示特征的实时参数。
  3. 根据权利要求2所述的虚拟卡片的显示方法,其中,所述根据所述传感器参数、所述第一关联关系和所述多个第一素材的数量,确定所述多个第一素材各自的第一显示特征的实时参数包括:
    根据所述传感器参数、所述第一关联关系确定所述多个第一素材的第一显示特征的实时参数总和;以及
    将所述多个第一素材各自的第一显示特征的实时参数设置为所述实时参数总和与所述多个第一素材的数量的商。
  4. 根据权利要求2所述的虚拟卡片的显示方法,其中,所述第一关联关系 进一步用于表征所述第一显示特征的实时参数跟随所述传感器参数和所述第一素材的属性变化的规律,以及
    其中,所述第一素材的属性包括:背景图像、前景图像、内容类别中的一种或多种。
  5. 根据权利要求1-4中任一项所述的虚拟卡片的显示方法,还包括:
    向服务器发送更换卡面图案请求;
    接收服务器返回的与所述虚拟卡片对应的多个候选卡面图案,从所述多个候选卡面图案中确定第二卡面图案;
    接收服务器返回的与所述第二卡面图案对应的第二初始参数和第二关联关系,其中,所述第二初始参数用于表征与所述第二卡面图案相对应的第二素材的第二显示特征的初始参数,所述第二关联关系用于表征所述第二显示特征的实时参数跟随所述移动客户端中的传感器参数变化的规律;
    实时采集所述移动客户端中的传感器参数,根据所述传感器参数和所述第二关联关系确定所述第二显示特征的实时参数;以及
    根据所述第二显示特征的实时参数显示所述虚拟卡片中的第二素材。
  6. 根据权利要求5所述的虚拟卡片的显示方法,其中,所述第一素材或所述第二素材包括图片、视频、3D模型中的一种或多种,以及
    其中,所述第一显示特征或所述第二显示特征包括位置坐标、尺寸、透明度、旋转角度、翻转角度、时间轴中的一种或多种。
  7. 根据权利要求5或6所述的虚拟卡片的显示方法,其中,采集所述传感器参数的传感器包括以下一种或多种:
    角速度传感器、亮度传感器、重力传感器、气压传感器。
  8. 根据权利要求7所述的虚拟卡片的显示方法,其中,所述第一关联关系 或所述第二关联关系包括以下一种或多种:
    坐标的变化范围与角速度传感器参数的变化范围或重力传感器参数的变化范围之间的对应关系;
    尺寸的变化范围与角速度传感器参数的变化范围或亮度传感器参数的变化范围或重力传感器参数的变化范围之间的对应关系;
    透明度的变化范围与角速度传感器参数的变化范围或亮度传感器参数的变化范围或重力传感器参数的变化范围或气压传感器参数的变化范围之间的对应关系;
    旋转角度的变化范围与角速度传感器参数的变化范围之间的对应关系;
    翻转角度的变化范围与重力传感器参数的变化范围之间的对应关系;
    时间轴的变化范围与角速度传感器参数的变化范围之间的对应关系。
  9. 一种虚拟卡片的显示方法,包括:
    接收与虚拟卡片对应的卡面素材组,所述卡面素材组包括一个或多个素材;
    接收与每个素材相对应的初始参数和关联关系,其中,所述初始参数用于表征所述素材的显示特征的初始参数,所述关联关系用于表征所述显示特征的实时参数跟随移动客户端中的传感器参数变化的规律;以及
    根据所述卡面素材组所包括的所有素材的初始参数,生成与所述卡面素材组对应的卡面图案并保存。
  10. 根据权利要求9所述的虚拟卡片的显示方法,还包括:
    向所述移动客户端发送当前选择的第一卡面图像、第一初始参数和第一关联关系;
    响应于更换卡面图案请求,向所述移动客户端发送多个候选卡面图案;
    基于用户从所述多个候选卡面图案中确定的第二卡面图案,向所述移动客户端发送与所述第二卡面图案对应的第二初始参数和第二关联关系。
  11. 一种虚拟卡片的显示装置,包括:
    初始获取模块,被配置为获取与所述虚拟卡片对应的第一卡面图案、第一初始参数以及第一关联关系,其中,所述第一初始参数用于表征与所述第一卡面图案相对应的第一素材的第一显示特征的初始参数,所述第一关联关系用于表征所述第一显示特征的实时参数跟随所述移动客户端中的传感器参数变化的规律;
    初始显示模块,被配置为根据所述第一初始参数显示所述虚拟卡片中的第一素材;
    实时采集模块,被配置为实时采集所述移动客户端中的传感器参数,根据所述传感器参数和所述第一关联关系确定所述第一显示特征的实时参数;以及
    实时显示模块,被配置为根据所述第一显示特征的实时参数显示所述虚拟卡片中的第一素材。
  12. 一种虚拟卡片的显示装置,包括:
    素材接收模块,被配置为接收与虚拟卡片对应的卡面素材组,所述卡面素材组包括一个或多个素材;
    参数接收模块,被配置为接收与每个素材相对应的初始参数和关联关系,其中,所述初始参数用于表征所述素材的显示特征的初始参数,所述关联关系用于表征所述显示特征的实时参数跟随移动客户端中的传感器参数变化的规律;以及
    卡面生成模块,被配置为根据所述卡面素材组所包括的所有素材的初始参数,生成与所述卡面素材组对应的卡面图案并保存。
  13. 一种计算机设备,包括存储器、处理器以及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现权利要求1-10任一项所述的方法。
  14. 一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1-10任一项所述的方法。
  15. 一种计算机程序产品,包括计算机程序,其中,所述计算机程序在被处理器执行时实现权利要求1-10任一项所述的方法。
PCT/CN2021/112147 2020-09-08 2021-08-11 虚拟卡片的显示方法、装置、计算机设备及存储介质 WO2022052729A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US18/024,941 US20230326156A1 (en) 2020-09-08 2021-08-11 Method and apparatus for displaying virtual card, computer device, and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010935831.3 2020-09-08
CN202010935831.3A CN112416218B (zh) 2020-09-08 2020-09-08 虚拟卡片的显示方法、装置、计算机设备及存储介质

Publications (1)

Publication Number Publication Date
WO2022052729A1 true WO2022052729A1 (zh) 2022-03-17

Family

ID=74854311

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/112147 WO2022052729A1 (zh) 2020-09-08 2021-08-11 虚拟卡片的显示方法、装置、计算机设备及存储介质

Country Status (3)

Country Link
US (1) US20230326156A1 (zh)
CN (1) CN112416218B (zh)
WO (1) WO2022052729A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112416218B (zh) * 2020-09-08 2023-12-29 上海哔哩哔哩科技有限公司 虚拟卡片的显示方法、装置、计算机设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150212710A1 (en) * 2013-10-10 2015-07-30 Go Daddy Operating Company, LLC Card interface for managing domain search results
CN109558243A (zh) * 2018-11-30 2019-04-02 Oppo广东移动通信有限公司 虚拟数据的处理方法、装置、存储介质及终端
CN111583375A (zh) * 2020-06-24 2020-08-25 腾讯科技(深圳)有限公司 虚拟画面的显示方法、装置、设备及存储介质
CN112416218A (zh) * 2020-09-08 2021-02-26 上海哔哩哔哩科技有限公司 虚拟卡片的显示方法、装置、计算机设备及存储介质

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2603859A4 (en) * 2010-08-10 2014-06-18 Zonka & Associates Llc ELECTRONIC MULTIMEDIA GREETING CARD WITH A SOCIAL MEDIA COMPONENT
CN102541530A (zh) * 2010-12-30 2012-07-04 上海三旗通信科技股份有限公司 通过重力感应旋转主菜单图标
US20120242664A1 (en) * 2011-03-25 2012-09-27 Microsoft Corporation Accelerometer-based lighting and effects for mobile devices
CN103135889B (zh) * 2011-12-05 2017-06-23 Lg电子株式会社 移动终端及其3d图像控制方法
CN102542032A (zh) * 2011-12-22 2012-07-04 东信和平智能卡股份有限公司 一种虚拟智能卡的可视方法及装置
US20130304559A1 (en) * 2012-05-09 2013-11-14 Cashstar, Inc. Systems, methods and devices for conducting transactions with portable electronic devices using virtual points
US9058681B2 (en) * 2012-06-01 2015-06-16 The Boeing Company Sensor-enhanced localization in virtual and physical environments
CN103970421B (zh) * 2014-05-23 2017-02-15 努比亚技术有限公司 一种移动终端的屏幕显示图案的调整方法
CN105487748B (zh) * 2015-11-20 2020-12-18 腾讯科技(深圳)有限公司 显示图标的方法和装置、存储介质以及计算机终端
CN106155474A (zh) * 2016-06-15 2016-11-23 广州神马移动信息科技有限公司 显示视图控件动态效果的方法及装置
CN106104602A (zh) * 2016-06-22 2016-11-09 北京小米移动软件有限公司 卡片显示方法及装置
CN106406532A (zh) * 2016-09-22 2017-02-15 宇龙计算机通信科技(深圳)有限公司 一种运动显示方法、装置及移动终端
CN108737891B (zh) * 2017-04-19 2021-07-30 阿里巴巴(中国)有限公司 视频素材处理方法及装置
CN107291266B (zh) * 2017-06-21 2018-08-31 腾讯科技(深圳)有限公司 图像显示的方法和装置
CN108510036B (zh) * 2018-03-27 2019-04-26 武汉天喻信息产业股份有限公司 一种基于参数化的卡面图像生成方法
CN109697003B (zh) * 2018-12-11 2021-09-10 广州市久邦数码科技有限公司 一种动态桌面背景展示方法及移动终端
CN109603151A (zh) * 2018-12-13 2019-04-12 腾讯科技(深圳)有限公司 虚拟角色的皮肤显示方法、装置及设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150212710A1 (en) * 2013-10-10 2015-07-30 Go Daddy Operating Company, LLC Card interface for managing domain search results
CN109558243A (zh) * 2018-11-30 2019-04-02 Oppo广东移动通信有限公司 虚拟数据的处理方法、装置、存储介质及终端
CN111583375A (zh) * 2020-06-24 2020-08-25 腾讯科技(深圳)有限公司 虚拟画面的显示方法、装置、设备及存储介质
CN112416218A (zh) * 2020-09-08 2021-02-26 上海哔哩哔哩科技有限公司 虚拟卡片的显示方法、装置、计算机设备及存储介质

Also Published As

Publication number Publication date
CN112416218A (zh) 2021-02-26
CN112416218B (zh) 2023-12-29
US20230326156A1 (en) 2023-10-12

Similar Documents

Publication Publication Date Title
US11532140B2 (en) Audio content of a digital object associated with a geographical location
AU2018206841B2 (en) Image curation
US9317974B2 (en) Rendering a digital element
CN113330484A (zh) 虚拟表面修改
US11514132B2 (en) Automatic website data migration
CN116210019A (zh) 用于组织和共享目的地位置的界面
US10600188B2 (en) Method and system for correcting field of view using user terminal information upon playback of 360-degree image
CN116964547A (zh) 用于浏览目的地的增强现实内容生成器
CN116325663A (zh) 用于标识地理位置的增强现实内容生成器
CN111031293A (zh) 全景监控的展示方法、装置和系统及计算机可读存储介质
CN108182662A (zh) 图片处理方法及装置、计算机可读存储介质
CN118044152A (zh) 通过非同质化凭证进行的增强现实体验控制
CN114365198A (zh) 遮挡检测系统
WO2022052729A1 (zh) 虚拟卡片的显示方法、装置、计算机设备及存储介质
CN116091672A (zh) 图像渲染方法、计算机设备及其介质
CN118160271A (zh) 独特非同质化凭证到开放版本非同质化凭证动态化
US9646418B1 (en) Biasing a rendering location of an augmented reality object
US20220101355A1 (en) Determining lifetime values of users in a messaging system
US10572231B1 (en) Component grouping for application development
WO2024060949A1 (zh) 用于增强现实的方法、装置、设备和存储介质
US9619940B1 (en) Spatial filtering trace location
CN115830212A (zh) 三维模型展示方法及相关设备
CN106802856A (zh) 游戏应用程序的性能测试方法、服务器和游戏应用客户端
TWM589834U (zh) 擴增實境整合系統
CN115174993B (zh) 用于视频制作的方法、装置、设备和存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21865785

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21865785

Country of ref document: EP

Kind code of ref document: A1