CN110781421B - Virtual resource display method and related device - Google Patents

Virtual resource display method and related device Download PDF

Info

Publication number
CN110781421B
CN110781421B CN201910745813.6A CN201910745813A CN110781421B CN 110781421 B CN110781421 B CN 110781421B CN 201910745813 A CN201910745813 A CN 201910745813A CN 110781421 B CN110781421 B CN 110781421B
Authority
CN
China
Prior art keywords
server
matched
instruction
image
labels
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
CN201910745813.6A
Other languages
Chinese (zh)
Other versions
CN110781421A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910745813.6A priority Critical patent/CN110781421B/en
Publication of CN110781421A publication Critical patent/CN110781421A/en
Application granted granted Critical
Publication of CN110781421B publication Critical patent/CN110781421B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9554Retrieval from the web using information identifiers, e.g. uniform resource locators [URL] by using bar codes
    • 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
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0212Chance discounts or incentives

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Development Economics (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Game Theory and Decision Science (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a virtual resource display method and a related device, wherein a user does not need to draw a lottery for a fixed lottery interface, but draws a picture in a live-action to draw the lottery, so that the flexibility of the lottery is improved. The method comprises the following steps: acquiring a first image to be identified through a shooting module; the method comprises the steps of sending a first image to be identified to a server, so that the server generates K labels to be matched according to the first image to be identified, wherein each label to be matched corresponds to a weight value, the weight values are used for determining the matching sequence of the labels to be matched, and K is an integer greater than or equal to 1; if the target labels exist in the K labels to be matched according to the weight value, receiving virtual resources sent by a server, wherein the target labels belong to one label in a preset label set, and the virtual resources are generated by the server according to the target labels; virtual resources are exposed.

Description

Virtual resource display method and related device
Technical Field
The application relates to the technical field of Internet, in particular to a virtual resource display method and a related device.
Background
With the development of network technology, a large number of platforms provide various methods for attracting the use rate of users and improving the activity and viscosity of the users, such as lottery activities of the users in a specific time period, which are provided by the platforms, the users can participate in lottery in the time period, and the platforms are provided with various prizes for the users to participate in lottery.
In the current lottery activity, a user can scan a specific two-dimensional code by using a terminal device, jump to a corresponding lottery interface based on the two-dimensional code, then trigger a lottery instruction in the lottery interface, and finally randomly generate a lottery result according to the lottery instruction.
However, the above-described lottery scheme relies on a fixed lottery interface through which a user can perform a lottery activity only, and thus, the entire lottery process has a certain limitation, thereby reducing the flexibility of lottery.
Disclosure of Invention
The embodiment of the application provides a virtual resource display method and a related device, wherein a client acquires a live-action image shot by a user, the shot image is sent to a server, lottery logic is executed by the server based on the image and fed back to the client, and the user does not need to draw a lottery aiming at a fixed lottery interface, but draws a picture in the live-action, so that the lottery flexibility is improved.
In view of this, a first aspect of the present application provides a method for virtual resource exhibition, including:
acquiring at least one frame of first image to be identified;
generating K tags to be matched according to at least one frame of first image to be identified, wherein each tag to be matched corresponds to a weight value, the weight values are used for determining the matching sequence of the tags to be matched, and K is an integer greater than or equal to 1;
If the target labels exist in the K labels to be matched according to the weight values, virtual resources matched with the target labels are obtained;
virtual resources are exposed.
The second aspect of the present application provides a method for displaying virtual resources, including:
acquiring voice to be recognized;
generating K tags to be matched according to the voice to be recognized, wherein each tag to be matched corresponds to a weight value, the weight values are used for determining the matching sequence of the tags to be matched, and K is an integer greater than or equal to 1;
if the target labels exist in the K labels to be matched according to the weight values, virtual resources matched with the target labels are obtained;
virtual resources are exposed.
The third aspect of the present application provides a method for displaying virtual resources, including:
receiving an image to be identified sent by a client, wherein the image to be identified is acquired by the client through a shooting module;
generating K tags to be matched according to the image to be identified, wherein each tag to be matched corresponds to a weight value, the weight values are used for determining the matching sequence of the tags to be matched, and K is an integer greater than or equal to 1;
if the target labels exist in the K labels to be matched according to the weight value, generating virtual resources according to the target labels, wherein the target labels belong to one label in a preset label set;
And sending the virtual resource to the client so that the client can display the virtual resource.
A fourth aspect of the present application provides a client, including:
the acquisition unit is used for acquiring at least one frame of first image to be identified;
the generating unit is used for generating K tags to be matched according to at least one frame of first image to be identified, wherein each tag to be matched corresponds to a weight value, the weight values are used for determining the matching sequence of the tags to be matched, and K is an integer greater than or equal to 1;
the obtaining unit is further used for obtaining virtual resources matched with the target labels if the target labels exist in the K labels to be matched according to the weight values;
the display unit is used for displaying the virtual resources acquired by the acquisition unit.
In one possible design, in a first implementation manner of the fourth aspect of the embodiments of the present application,
the generating unit is specifically configured to:
at least one frame of first to-be-identified image is sent to the server, so that the server generates K to-be-matched labels according to the at least one frame of first to-be-identified image;
receiving K tags to be matched sent by a server;
and displaying each label to be matched in the K labels to be matched received by the receiving unit through an image identification interface.
In a possible design, in a second implementation manner of the fourth aspect of the embodiments of the present application,
the display unit is specifically configured to display a virtual resource through a target page of the image recognition interface, where the target page is a sub-page that is displayed independently of the image recognition interface, the virtual resource includes a preset text, the preset text includes a target tag, and the preset text has a corresponding relationship with the target tag.
In a possible design, in a third implementation manner of the fourth aspect of the embodiments of the present application,
the display unit is specifically configured to display the virtual resource through a target page of the image recognition interface, where the target page is a sub-page that is displayed independently of the image recognition interface, and the virtual resource includes a target tag.
In a possible design, in a fourth implementation manner of the fourth aspect of the embodiments of the present application,
the display unit is further used for displaying the reset module through the image recognition interface if the target label does not exist in the K labels to be matched according to the weight value;
the client further comprises: the receiving unit is used for receiving the image identification instruction through the reset module displayed by the display unit;
the acquisition unit is also used for responding to the image identification instruction received by the receiving unit and acquiring at least one frame of second image to be identified.
In a possible design, in a fifth implementation manner of the fourth aspect of the embodiments of the present application,
the client further comprises: the receiving unit is used for receiving the information checking instruction;
the display unit is further used for responding to the information viewing instruction received by the receiving unit and displaying an information viewing page, wherein the information viewing page comprises a random object corresponding to the virtual resource, an information input module and an information sharing module;
the display unit is further used for responding to the information input instruction if the information input module displayed by the display unit receives the information input instruction, and displaying the information filling page;
the client further comprises: the sending unit is used for sending the information sharing instruction to the server if the information sharing module displayed by the display unit receives the information sharing instruction, so that the server sends push messages to N clients according to the information sharing instruction, wherein the information sharing instruction carries N client identifiers, the client identifiers and the clients have a one-to-one correspondence, and N is an integer greater than or equal to 1.
In one possible design, in a sixth implementation manner of the fourth aspect of the embodiments of the present application,
the client further comprises: the receiving unit is also used for receiving an information checking instruction;
The display unit is further used for responding to the information viewing instruction received by the receiving unit and displaying an information viewing page, wherein the information viewing page comprises a random object corresponding to the virtual resource and an information extraction module;
and the sending unit is further used for sending the information extraction instruction to the server if the information extraction module displayed by the display unit receives the information extraction instruction, so that the server sends the random object to the target account according to the information extraction instruction, wherein the information extraction instruction carries the identification of the random object.
In one possible design, in a seventh implementation manner of the fourth aspect of the embodiment of the present application,
the client further comprises: the receiving unit is also used for receiving an information checking instruction;
the display unit is further used for displaying an information viewing page in response to the information viewing instruction received by the receiving unit, wherein the information viewing page comprises a random object corresponding to the virtual resource, a combined object viewing module and a reset module, the random object belongs to one combined object in a combined object set, and the combined object set comprises a plurality of combined objects;
the display unit is further used for responding to the combined object viewing instruction if the combined object viewing module displayed by the display unit receives the combined object viewing instruction, and displaying a combined object interface, wherein the combined object interface comprises M combined objects, and M is a positive number greater than or equal to 1;
The acquisition unit is further used for responding to the image recognition instruction if the reset module displayed by the display unit receives the image recognition instruction, and acquiring at least one frame of second image to be recognized.
In one possible design, in an eighth implementation manner of the fourth aspect of the embodiments of the present application,
the generating unit is specifically configured to send at least one frame of first to-be-identified image to a first server in the servers through the target interface, so that the first server generates Q selectable labels according to the at least one frame of first to-be-identified image, and send the Q selectable labels to a second server, so that the second server selects K to-be-matched labels from the Q selectable labels, where Q is an integer greater than or equal to K;
the obtaining unit is specifically configured to receive the virtual resource sent by the second server if the second server determines that the target tag exists in the K tags to be matched according to the weight value.
In one possible design, in a ninth implementation manner of the fourth aspect of the embodiments of the present application,
the generating unit is specifically configured to:
transmitting a first image to be identified to a first server in the servers through a first interface so that the first server generates Q selectable labels according to the first image to be identified, wherein Q is an integer greater than or equal to K;
Receiving Q selectable labels sent by a first server;
q selectable labels are sent to a second server in the servers through a second interface, so that the second server can select K labels to be matched from the Q selectable labels;
the obtaining unit is specifically configured to receive the virtual resource sent by the second server if the second server determines that the target tag exists in the K tags to be matched according to the weight value.
A fifth aspect of the present application provides a client, including:
the acquisition unit is used for acquiring the voice to be recognized;
the generating unit is used for generating K tags to be matched according to the voice to be identified acquired by the acquiring unit, wherein each tag to be matched corresponds to a weight value, the weight values are used for determining the matching sequence of the tags to be matched, and K is an integer greater than or equal to 1;
the obtaining unit is further used for obtaining virtual resources matched with the target labels if the target labels exist in the K labels to be matched according to the weight values;
the display unit is used for displaying the virtual resources acquired by the acquisition unit.
A sixth aspect of the present application provides a virtual resource display apparatus, including:
the receiving unit is used for receiving an image to be identified sent by the client, wherein the image to be identified is acquired by the client through the shooting module;
The generating unit is used for generating K tags to be matched according to the images to be identified received by the receiving unit, wherein each tag to be matched corresponds to a weight value, the weight values are used for determining the matching sequence of the tags to be matched, and K is an integer greater than or equal to 1;
the generating unit is further used for generating virtual resources according to the target labels if the target labels exist in the K labels to be matched generated by the generating unit according to the weight value, wherein the target labels belong to one label in a preset label set;
and the sending unit is used for sending the virtual resource generated by the second generating unit to the client so as to enable the client to display the virtual resource.
In one possible design, in a first implementation manner of the sixth aspect of the embodiments of the present application,
the generating unit is specifically configured to:
generating Q selectable labels according to the image to be identified, wherein Q is an integer greater than or equal to K;
and selecting K tags to be matched from the Q selectable tags according to the effective tag detection rule.
In a possible design, in a second implementation manner of the sixth aspect of the embodiments of the present application,
the virtual resource display device further includes:
the determining unit is used for determining the matching sequence of the K tags to be matched according to the weight value corresponding to each tag to be matched in the K tags to be matched;
The matching unit is used for sequentially matching the labels to be matched in the K labels to be matched according to the matching sequence determined by the determining unit;
the determining unit is further configured to determine the tag to be matched as a target tag if the tag to be matched belongs to the preset tag set and the tag to be matched does not belong to the hit tag set.
A seventh aspect of the application provides a computer readable storage medium having instructions stored therein which, when run on a computer, cause the computer to perform the method of the above aspects.
From the above technical solutions, the embodiment of the present application has the following advantages:
in the embodiment of the application, a method for displaying virtual resources is provided, wherein a client acquires a first image to be identified, then the client generates K tags to be matched according to the first image to be identified, each tag to be matched corresponds to a weight value, the weight values are used for determining the matching sequence of the tags to be matched, and if a target tag exists, the client acquires the virtual resources matched with the target tag and displays the virtual resources. By the method, the client acquires the image to be identified and executes lottery logic based on the image, so that a user does not need to conduct lottery aiming at a fixed lottery interface, but can randomly acquire the image to conduct lottery, and the flexibility of lottery is improved.
Drawings
FIG. 1 is a schematic diagram of a virtual resource display system according to an embodiment of the present application;
FIG. 2 is a diagram of the relationship between an operating system, parent applications, child applications, and child application pages in one embodiment;
FIG. 3 is a schematic diagram of an embodiment of a method for virtual resource exhibition according to an embodiment of the present application;
fig. 4 is a schematic flow chart of a method for displaying virtual resources to obtain a first image to be identified according to an embodiment of the present application;
FIG. 5 is an interface diagram of a label display interface to be matched for a method of virtual resource display in an embodiment of the present application;
FIG. 6 is a schematic diagram of an interface for displaying virtual resources in a method for displaying virtual resources according to an embodiment of the present application;
FIG. 7 is a schematic diagram of an interface for displaying virtual resources in a method for displaying virtual resources according to an embodiment of the present application;
FIG. 8 is a schematic diagram of an interface for resetting a module display interface in a method for displaying virtual resources according to an embodiment of the present application;
FIG. 9 is an interface schematic diagram of an information viewing page in a method for displaying virtual resources according to an embodiment of the present application;
FIG. 10 is a schematic diagram of an interface of an information viewing page in a method for displaying virtual resources according to an embodiment of the present application;
FIG. 11 is a schematic diagram of an interface of an information viewing page in a method for displaying virtual resources according to an embodiment of the present application;
FIG. 12 is a flowchart of a method for obtaining virtual resources according to an embodiment of the present application;
FIG. 13 is a schematic flow chart of a method for obtaining virtual resources in a virtual resource display method according to an embodiment of the present application;
FIG. 14 is a diagram of one embodiment of a method for virtual resource presentation in an embodiment of the present application;
FIG. 15 is a schematic diagram of another embodiment of a method for virtual resource exhibition according to an embodiment of the present application;
FIG. 16 is a diagram of a client according to an embodiment of the present application;
FIG. 17 is a diagram illustrating another embodiment of a client according to an embodiment of the present application;
FIG. 18 is a diagram of an embodiment of a virtual resource display device according to an embodiment of the present application;
FIG. 19 is a schematic diagram of another embodiment of a virtual resource display device according to an embodiment of the present application;
fig. 20 is a schematic diagram of an embodiment of a terminal device according to an embodiment of the present application;
FIG. 21 is a diagram of a server according to an embodiment of the present application.
Detailed Description
The embodiment of the application provides a virtual resource display method and a related device, wherein a client acquires a live-action image shot by a user, the shot image is sent to a server, lottery logic is executed by the server based on the image and fed back to the client, and the user does not need to draw a lottery aiming at a fixed lottery interface, but draws a picture in the live-action, so that the lottery flexibility is improved.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented, for example, in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "includes" and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that the method for displaying virtual resources provided by the embodiment of the present application may be applied to an application scenario in which a lottery is performed by an application, and specifically, for example, when the application pushes out all the year round, the lottery may be pushed out on the application; for example, during the popularization period of the application program, the lottery drawing activity can be deduced on the application program; for example, in order to match with holidays such as new year, mid-autumn and the like, lottery activities and the like can be deduced from application programs, and other possible application scenes are not exemplified one by one.
Based on the above requirements, in order to facilitate understanding, the present application provides a method for displaying virtual resources, which is applied to the virtual resource display system shown in fig. 1, please refer to fig. 1, and fig. 1 is a schematic diagram of an architecture of the virtual resource display system in an embodiment of the present application. The client is used for acquiring a first image to be identified and sending the first image to be identified to the server; the server is used for generating K tags to be matched according to the images to be identified, and sending virtual resources to the client under the condition that target tags exist in the K tags to be matched; the client displays the virtual resources, and the user can acquire the information of winning the prize through the virtual resources displayed by the client.
The clients may be web clients or application clients, and the server is a background server of the virtual resource display system, may be a server cluster or a cloud computing center formed by one server or multiple servers, and is not limited in this specific embodiment. It should be noted that, referring to fig. 1, the terminal device includes, but is not limited to, a tablet computer, a notebook computer, a palm computer, a mobile phone, a voice interaction device, and a personal computer (personal computer, PC), which are not limited herein. The voice interaction device comprises, but is not limited to, intelligent sound equipment and intelligent household appliances.
The client and the server may be connected by a wireless network. Wherein the wireless network uses standard communication techniques and/or protocols. The wireless network is typically the internet, but may be any network including, but not limited to, a local area network (Local Area Network, LAN), metropolitan area network (Metropolitan Area Network, MAN), wide area network (Wide Area Network, WAN), mobile, private network, or any combination of virtual private networks. In some embodiments, custom or dedicated data communication techniques may be used in place of or in addition to the data communication techniques described above.
Although only five terminal devices and one server are shown in fig. 1, it should be understood that the example in fig. 1 is only for understanding the present solution, and the number of specific terminal devices and servers should be flexibly determined according to the actual situation. In the embodiment of the present application, only an example of the method for displaying virtual resources provided is applied to a communication type client.
Since the concept of the applet will be referred to in the description of the embodiments of the present application, the concept of the applet will be described in detail herein, and referring specifically to fig. 2, fig. 2 is a schematic diagram of an operating system, a parent application, a child application, and a relationship between pages of the child application in one embodiment, the present application is mainly applied to generating the child application including pages of the child application in an environment provided by the parent application, where the child application may specifically refer to the applet. As shown in fig. 2, an operating system is running on the terminal device, and a parent application is running on the operating system, where the parent application may specifically be referred to as a browser, and then an applet may be understood as an application running on the browser. The sub-application is generated in an environment provided by the parent application, the sub-application including sub-application pages. The terminal device may obtain the sub-application identification from the local or server through the parent application.
The Operating System (OS) is a computer program for managing and controlling terminal hardware and software resources, and is the most basic System software directly running on a bare metal of a terminal, and an application program needs to run under the support of the Operating System.
The parent application is an application that carries the child application, providing an environment for the implementation of the child application. The parent application is a native application. A native application is an application that can run directly on an operating system. The parent application may be a social application, a dedicated application that specifically supports child applications, a file management application, a mail application, or a gaming application, among others. Social applications include instant messaging applications, social networking site (Social Network Service, SNS) applications, or live applications, among others.
The sub-application is then an application that can be implemented in the environment provided by the parent application. The sub-application may specifically be a social application, a file management application, a mail application, or a game application, etc.
The common component is a component provided by the parent application and shared by different child applications, has a visual form, and is a constituent unit of the child application page. The common component may also be packaged with logic code for handling the triggered event for the common component. Different sub-applications share common components, and in particular, call the same common components at the same time or at different times. In one embodiment, the common components may also be shared by the parent application and the child application.
It will be appreciated that the present application may be applied to, but not limited to, subscription numbers, service numbers, business numbers, microblogs, circles of friends, video websites, and other portals, in addition to applets.
With reference to the foregoing description, a method for displaying virtual resources in the present application will be described below, referring to fig. 3, and one embodiment of the method for displaying virtual resources in an embodiment of the present application includes:
101. the client acquires at least one frame of first image to be identified.
In this embodiment, a user may open a lottery drawing interface of the client through a web page link or an applet corresponding to a lottery drawing function, and after the client receives an image recognition instruction input by the user, in one case, the client may open a shooting module, enter the image recognition interface, and acquire at least one frame of a first image to be recognized in real time through the shooting module in the image recognition interface; in another case, the client may also acquire video data in real time through the shooting module, and acquire at least one frame of first image to be identified from the video; in another case, the client may obtain at least one frame of the first image to be identified from the local gallery, and the like, which is not limited herein. The shooting module can be a camera on the terminal equipment where the client is located; the first image to be identified can be any image, including but not limited to a live-action image, a painting image, a screen display image, and the voice information of the first image to be identified is not limited, that is, the first image to be identified can be any image, such as white wall, cola, sun, automobile, etc.
In order to ensure the definition of the first image to be identified, that is, the client takes the image acquired when the camera is in a stable state as the first image to be identified as much as possible, in one implementation manner, after the client opens the camera, the image can be acquired in real time and displayed in a screen, and then the client can detect the movement condition of the terminal equipment where the client is located through a gyroscope, when the terminal equipment where the client is located is determined to stop moving, the client can acquire the current image by using the camera and determine the current image as the first image to be identified, and optionally, after the current image is compressed, the compressed image can be determined as the first image to be identified; in another implementation manner, after the client opens the camera, the image can be acquired in real time and displayed in the screen, and then the client can automatically execute a screen capturing operation every X seconds to acquire at least one screenshot, and the most clear image in the at least one screenshot is determined as the first image to be identified; in another implementation, the image may be acquired in real time after the client opens the camera, the current image may be acquired by the client and determined as the first image to be identified when the user clicks the determination button, and so on, which is not limited herein.
In order to further understand the present solution, please refer to fig. 4, fig. 4 is a schematic flow chart of obtaining a first image to be identified in the method for displaying virtual resources provided in the embodiment of the present application, fig. 4 includes two sub-diagrams (a) and (b), and fig. 4 (a) is a sub-diagram showing a lottery interface, wherein A1 is used for receiving an image identification instruction input by a user, and when the user clicks A1, the client opens the photographing module and enters the sub-diagram (b) of fig. 4, that is, the image identification interface, and fig. 4 uses the first image to be identified as a bottle as an example, which should be understood that the example in fig. 4 is only for facilitating understanding the present solution, and is not limited to the present solution.
102. The client generates K tags to be matched according to at least one frame of first image to be identified, wherein each tag to be matched corresponds to a weight value, the weight values are used for determining the matching sequence of the tags to be matched, and K is an integer greater than or equal to 1.
In this embodiment, in one case, after the client acquires the first to-be-identified image, the first to-be-identified image may be sent to the server, so that the server generates K to-be-matched tags according to the first to-be-identified image. Specifically, random components exist in the process of generating K labels to be matched by the server, namely the K labels to be matched do not necessarily have a direct association relationship with the image content of the first image to be identified. In another case, the client may directly generate K tags to be matched after acquiring the first image to be identified, which is not limited herein.
Where K is an integer greater than or equal to 1, for example, the value of K may be 1, 2, 3, 4, 5, 10, 12, etc., which is not limited herein. The K tags to be matched do not comprise illegal words or sensitive words, for example, the illegal words can be non-civilized words such as dirty words and dirty words, and the sensitive words can be sensitive words related to political factors; optionally, the number of words of each tag to be matched may be limited, that is, the number of words of each tag to be matched may not exceed Y, for example, the value of Y may be 5, 4, 3, or 2, etc., which is not limited herein. And each label to be matched corresponds to a weight value, wherein the weight value is used for determining the matching sequence of the labels to be matched, and the labels to be matched with larger weight values are matched earlier.
103. If the target labels exist in the K labels to be matched according to the weight value, the client acquires the virtual resources matched with the target labels.
In this embodiment, in the case that it is determined that the target tag exists in the K tags to be matched according to the weight value, that is, in the case that the client draws a lottery successfully, the client may acquire a virtual resource matched with the target tag. In one case, after acquiring the first to-be-identified image, the client may send the first to-be-identified image to the server, so that the server generates K to-be-matched tags according to the first to-be-identified image. Specifically, random components exist in the process of generating K labels to be matched by the server, namely the K labels to be matched do not necessarily have a direct association relationship with the image content of the first image to be identified. In another case, the client may directly generate K tags to be matched after acquiring the first image to be identified, which is not limited herein. The client receives the virtual resource sent by the server, more specifically, the server may store a preset tag set, so that after generating K tags to be matched, the server may match the preset tag set according to a weight value of each tag to be matched, thereby determining whether a target tag exists in the K tags to be matched, where the target tag belongs to one tag in the preset tag set, the virtual resource may be generated by the server according to the target tag, and since a random component exists in the process of the K tags to be matched, the virtual resource generated according to the target tag in the K tags to be matched also has randomness.
104. The client exposes the virtual resources.
In this embodiment, after receiving the virtual resource, the client may display the virtual resource, and the virtual resource displayed by the client may inform the user that the user draws a lottery successfully. The virtual resource refers to virtual information representing a prize drawn by the user, for example, the virtual resource may be virtual information indicating that the user draws the floor sweeping robot, and for example, the virtual resource may be virtual information indicating that the user draws the game coin, etc., which is not limited herein. It should be noted that, in the process of executing steps 102 to 104, the client may display the image recognition interface.
In the embodiment of the application, a method for displaying virtual resources is provided, wherein a client acquires a first image to be identified, then the client generates K tags to be matched according to the first image to be identified, each tag to be matched corresponds to a weight value, the weight values are used for determining the matching sequence of the tags to be matched, and if a target tag exists, the client acquires the virtual resources matched with the target tag and displays the virtual resources. By the method, the client acquires the image to be identified and executes lottery logic based on the image, so that a user does not need to conduct lottery aiming at a fixed lottery interface, but can randomly acquire the image to conduct lottery, and the flexibility of lottery is improved.
Optionally, in a first optional embodiment of the method for displaying virtual resources according to the embodiment of fig. 2, the generating, by the client, K tags to be matched according to at least one frame of the first image to be identified includes:
the client sends at least one frame of first to-be-identified image to the server so that the server generates K to-be-matched labels according to the at least one frame of first to-be-identified image;
the client receives K tags to be matched sent by the server;
and the client displays each label to be matched in the K labels to be matched through an image identification interface.
In this embodiment, after the client obtains at least one frame of the first image to be identified, the first image to be identified may be sent to the server, and then, since the server may generate K tags to be matched according to the first image to be identified, when the server sends the K tags to be matched to the client, the client may receive the K tags to be matched sent by the server, and further, the client may display the K tags to be matched through the image identification interface. Furthermore, whether the target label exists in the K labels to be matched or not, the client can receive the K labels to be matched sent by the server, and then display the K labels to be matched. Specifically, the manner in which the client displays the K tags to be matched may be to pop up each tag to be matched one by one; k labels to be matched can be displayed at random K positions of the image recognition interface; the client may also regularly arrange K tags to be matched, more specifically, the client may arrange the K tags to be matched in at least one row, where each row has at least one tag to be matched, and so on, and a manner in which the client displays the K tags to be matched is not limited herein.
Optionally, in the case that the target labels exist in the K labels to be matched, the client may highlight the target labels in the process of displaying the K labels to be matched through the image recognition interface, and specifically may implement highlighting of the target labels by thickening, blackening, highlighting, adjusting the color of the target labels or other highlighting manners of the target labels, and so on. As an example, for example, when the client regularly arranges K tags to be matched, the color of the tag to be matched of the non-target tag in the K tags to be matched may be set to white, the color of the target tag to be green to highlight the target tag, etc., it should be understood that the above examples are only for convenience in understanding the present solution, and are not limited to the present solution.
For further understanding of the present solution, please refer to fig. 5, fig. 5 is an interface schematic diagram of a label display interface to be matched in the virtual resource display method in the embodiment of the present application, fig. 5 is an example of regularly arranging K labels to be matched by a client, where one bottle and 8 labels to be matched (i.e. B1 in fig. 5) are displayed on the image recognition interface, the 8 labels to be matched in B1 are tables, data lines, wood, cola, spoons, computers, peaches and electric vehicles, and the 8 labels to be matched are divided into two rows in fig. 5, and each row displays 4 labels to be matched, which should be understood that the example in fig. 5 is only for convenience of understanding the present solution and is not limited to the present solution.
In the embodiment of the application, after the first image to be identified is sent to the server, K tags to be matched returned by the server can be received, so that the client can display the K tags to be matched. Through the mode, the user can obtain more feedback through the client side in the lottery drawing process, so that the interestingness of the lottery drawing process is increased.
Optionally, on the basis of the embodiment corresponding to fig. 2, in a first optional embodiment of the method for displaying virtual resources provided in the embodiment of the present application, the client displays virtual resources, including:
the client displays the virtual resource through a target page of the image recognition interface, wherein the target page is a sub-page which is displayed independently of the image recognition interface, the virtual resource comprises a preset text, the preset text comprises a target label, and the preset text and the target label have a corresponding relation.
In this embodiment, after receiving the virtual resource sent by the server, the client may display the virtual resource through a target interface in the image recognition interface to inform the user that the user wins, where the target page is a sub page that is displayed independently of the image recognition interface, and may specifically be represented as a floating frame, a popup frame page, or the like, and the display form of the specific target page is not limited herein. The virtual resource displayed by the client may include a preset text, the preset text includes a target label, the preset text has a corresponding relation with the target label, specifically, because the target label is a word, and some words have an association relation with preset texts such as a game stalk, a verge, a naughty, a movie stalk, a television drama stalk and the like, after the target label is determined, the server may acquire the preset text corresponding to the target label and then send the preset text to the client, so that the client can display the target label and the preset text simultaneously through a target page, for example, the target label is a "stink-skin maker", the preset text may be a "three stink-skin maker" and a "zhuge light" is provided; as yet another example, for example, the target label is "apple", the preset text may be "one apple a day, doctor away from me", etc., it should be understood that the example herein is merely for convenience of the present solution and is not intended to limit the present solution.
Further, the client may also highlight the target tag when displaying the preset text included in the virtual resource through the target page, for example, may highlight the target tag by adding a double-quotation mark, a single quotation mark, a signature mark, adjusting a color of the target tag, blackening a font of the target tag, thickening, italics, and the like. Optionally, the client may also display the virtual resource while displaying K tags to be matched.
For further understanding of the present solution, please refer to fig. 6, which is an interface schematic diagram of a virtual resource display interface in the method for displaying virtual resources in the embodiment of the present application, fig. 6 is an example in which a client displays K tags to be matched and virtual resources at the same time, fig. 6 is similar to fig. 5, and an image recognition interface displays a bottle and 8 tags to be matched, because the foregoing description of fig. 5 is omitted, C1 represents the virtual resources displayed by the client, and the client displays the virtual resources by means of a suspension frame, where the target tag is cola, the preset text is "immediately up to a resolution ring", and the target tag is highlighted in fig. 6 by adding a double quotation to the target tag "cola", which should be understood that the example in fig. 6 is only for facilitating understanding the present solution, and is not used for limiting the present solution.
In the embodiment of the application, the virtual resource can be displayed through the sub-interface which is displayed independently of the image recognition interface, the virtual resource can comprise the preset text, the preset text comprises the target label, and the preset text and the target label have a corresponding relation. By the method, when the virtual resource is displayed, not only the target label is displayed, but also the corresponding preset text is matched, so that the virtual resource display process is more interesting.
Optionally, on the basis of the embodiment corresponding to fig. 2, in a first optional embodiment of the method for displaying virtual resources provided in the embodiment of the present application, the client displays virtual resources, including:
the client displays the virtual resource through a target page of the image recognition interface, wherein the target page is a sub-page which is displayed independently of the image recognition interface, and the virtual resource comprises a target label.
In this embodiment, the client may display the virtual resource through the target page of the image recognition interface, where the target page is a sub-page that is displayed independently of the image recognition interface, and since the target tag is a word, some words cannot obtain the associated preset text, that is, some words on the word server cannot match preset texts such as a game stalk, a stop, a movie stalk, a television show stalk, etc., the client may directly display the target tag without matching the corresponding preset text. Optionally, the client may display K tags to be matched while displaying the virtual resource.
For further understanding of the present solution, please refer to fig. 7, fig. 7 is an interface schematic diagram of a virtual resource display interface in the method for displaying virtual resources according to the embodiment of the present application, fig. 7 is an example in which a client only displays virtual resources and K tags to be matched are not displayed, where C1 represents the virtual resources displayed by the client, and the target tags are peaches, and it should be understood that the example in fig. 7 is only for facilitating understanding of the present solution, and is not limited to the present solution.
In the embodiment of the application, the virtual resource can be displayed through the sub-interface which is displayed independently of the image recognition interface, and the virtual resource comprises the target label. By the method, when the preset text corresponding to the target label does not exist, the client can only display the target label, so that corresponding display logic is ensured no matter whether the target label has the corresponding preset text or not, and the scheme integrity is ensured.
Optionally, in a first optional embodiment of the method for displaying virtual resources according to the embodiment of fig. 2, after the client sends the first image to be identified to the server to enable the server to generate K tags to be matched according to the first image to be identified, the method further includes:
If the target label does not exist in the K labels to be matched according to the weight value, the client displays the reset module through the image recognition interface;
the client receives an image identification instruction through a reset module;
and the client responds to the image identification instruction and acquires at least one frame of second image to be identified.
In this embodiment, after the client sends the first image to be identified to the server, the server may generate K tags to be matched according to the first image to be identified, and when it is further determined that no target tag exists in the K tags to be matched by performing tag matching operation according to the weight value of each tag to be matched, the server may not send virtual resources to the client, that is, the client may not receive the virtual resources, and may display the reset module through the image identification interface, and then the user may input an image identification instruction according to the reset module, and further the client may obtain at least one frame of second image to be identified in response to the image identification instruction input by the user. Further, the client may also display a prompt message for prompting the user to input an image recognition instruction, for example, a prompt message such as "no gift is found in this place, please click on the screen to rescan". The first image to be identified refers to an image to be identified acquired through the shooting module for the first time after entering the lottery module through web page link or applet, the second image to be identified refers to an image to be identified acquired through the shooting module for the second time, and the specific implementation manner of acquiring the second image to be identified through the shooting module by the client is similar to the specific implementation manner of acquiring the first image to be identified through the shooting module by the client, which is not repeated here.
Specifically, in one implementation, the client may use the entire interface of the image recognition interface as a reset module for receiving the image recognition instruction, so that the user may input the image recognition instruction through any position of the image recognition interface; in another implementation manner, the client may set a part of the positions in the image recognition interface as a reset module for receiving the image recognition instruction, so that the user may only input the image recognition instruction through the part of the positions in the image recognition interface, which is not limited herein. More specifically, the manner in which the user inputs the image recognition instruction may be a click reset module, a double click reset module, a three click reset module, a long press reset module, a slide reset module, or the like, and the manner in which the user inputs the image recognition instruction is not limited herein.
Optionally, the client may also receive and display the K tags to be matched sent by the server when it is determined that no target tag exists in the K tags to be matched according to the weight value.
For further understanding of the present solution, please refer to fig. 8, fig. 8 is an interface schematic diagram of a reset module display interface in the virtual resource display method in the embodiment of the present application, fig. 8 is an example in which a client side simultaneously displays K tags to be matched and a reset module, fig. 8 is similar to fig. 5, and fig. 8 shows a bottle and 8 tags to be matched on an image recognition interface, and since the foregoing description of the description of fig. 5 has been omitted, the whole screen in fig. 8 is an example in which the reset module is used, and the client side may receive an image recognition instruction input by a user through the whole screen, which should be understood that the example in fig. 8 is only for facilitating understanding of the present solution and is not used to limit the present solution.
In the embodiment of the application, under the condition that the target label does not exist in the K labels to be matched according to the weight value, the reset module can be displayed through the image recognition interface, so that the image recognition instruction can be received through the reset module, and further, the second image to be recognized is obtained through the shooting module in response to the image recognition instruction. Through the mode, when the user wins the lottery, the user can directly input the image identification instruction again through the reset module, namely, the user participates in the lottery again, so that convenience of the lottery process is improved, and the viscosity of the user is improved.
Optionally, in a first optional embodiment of the method for displaying virtual resources according to the embodiment of the present application on the basis of the embodiment corresponding to fig. 2, after the client displays the virtual resources, the method further includes:
the client receives an information viewing instruction;
the client responds to the information viewing instruction and displays an information viewing page, wherein the information viewing page comprises a random object corresponding to the virtual resource, an information input module and an information sharing module;
if the client receives an information input instruction through the information input module, responding to the information input instruction, and displaying an information filling page;
If the client receives the information sharing instruction through the information sharing module, the information sharing instruction is sent to the server, so that the server sends push messages to N clients according to the information sharing instruction, wherein the information sharing instruction carries N client identifiers, the client identifiers and the clients have a one-to-one correspondence, and N is an integer greater than or equal to 1.
In this embodiment, after the client side displays the virtual resource, the client side may also receive an information viewing instruction input by the user, so that the client side may respond to the information viewing instruction to display an information viewing page, and the information viewing page may display a random object, an information input module and an information sharing module corresponding to the virtual resource, so that when the client side receives the information input instruction input by the user through the information input module, the client side may display an information filling page; when the client receives an information sharing instruction input by a user through the information sharing module, the information sharing instruction can be sent to the server, the information sharing instruction carries N client identifications, each client identification is used for identifying one client, N is an integer greater than or equal to 1, and accordingly the server can send push messages to the N clients, wherein the push messages are used for informing the N clients that the current user obtains prizes corresponding to random objects through lottery activities in the scheme.
Specifically, the user can input an information viewing instruction through gesture operations such as clicking the virtual resource, double clicking the virtual resource, long pressing the virtual resource and the like; the information viewing instruction may also be input in the form of voice, for example, voice information such as "open gift", "view gift" or the like is input in the form of voice.
Because the random object corresponding to the virtual resource can be an entity prize, and because the entity prize needs to be mailed to the actual address of the user, the actual address of the user needs to be acquired, so that the client can display the information input module, more specifically, the client display information input module can be used for reminding the user to input address information, for example, the client displays an icon or a button corresponding to the information input module, and the icon or the button is provided with prompt information for filling in the address information, so that after receiving a new input instruction input by the user, the client can display information filling page can be a page for receiving the address information input by the user.
After the client receives the information sharing instruction, a user selection interface to be shared can be displayed to the user, so that the user can execute selection operation on N users to be shared, N client identifiers corresponding to the N users to be shared can be obtained by the client, and N client identifiers can be carried in the information sharing instruction sent to the server by the client; the client identifier of N associated clients having an association relationship with the current client may be directly obtained after the client obtains the information sharing instruction, where the N associated clients are the clients where the N friends of the current user are located, so that the information sharing instruction carrying the N client identifiers is sent to the server, and the specific implementation manner is not limited herein.
More specifically, the client side can display the information input module by displaying buttons, icons and the like corresponding to the information input module, and can display the information sharing module by displaying buttons, icons and the like corresponding to the information sharing module; the information input module and the information sharing module may also be displayed in the form of output voice, for example, the client may output a "please ask whether to fill in information" in the form of voice to display the information input module, and for example, the client may output a "please ask whether to share the winning mood to other buddies" in the form of voice to display the information sharing module. The manner of inputting the information input instruction by the user through the information input module and inputting the information sharing instruction by the information sharing module is similar to the manner of inputting the information viewing instruction by the user through the displayed virtual resource, and will not be repeated here.
For further understanding of the present solution, please refer to fig. 9, fig. 9 is an interface schematic diagram of an information viewing page in the method for virtual resource display in the embodiment of the present application, where the sweeping robot shown in D1 represents a random object, D2 represents an information input module, and D3 represents an information sharing module, and it should be understood that the example in fig. 9 is only for facilitating understanding of the present solution, and is not limited to this solution.
In the embodiment of the application, after the virtual resource is displayed, the virtual resource viewing instruction can be received, the information viewing page is displayed, the random object corresponding to the virtual resource, the information input module and the information sharing module are displayed on the information viewing page, so that the information input instruction can be received through the information input module, the information filling page is displayed, the information sharing instruction can be received through the information sharing module, and the push information can be sent to N clients. Through the method, when the random object corresponding to the virtual resource is an entity product, the address information of the user can be obtained through the information filling page, and the user can trigger the sharing operation through the prize display interface, so that the interest of lottery activities is further increased.
Optionally, in a first optional embodiment of the method for displaying virtual resources according to the embodiment of the present application on the basis of the embodiment corresponding to fig. 2, after the client displays the virtual resources, the method further includes:
the client receives an information viewing instruction;
the client responds to the information viewing instruction and displays an information viewing page, wherein the information viewing page comprises a random object corresponding to the virtual resource and an information extraction module;
If the information extraction module receives the information extraction instruction, the client side sends the information extraction instruction to the server so that the server sends the random object to the target account according to the information extraction instruction, wherein the information extraction instruction carries the identification of the random object.
In this embodiment, after the client side displays the virtual resource, the client side may further receive an information viewing instruction input by the user, so that the client side may respond to the information viewing instruction to display an information viewing page, and the information viewing page may display a random object corresponding to the virtual resource and an information extraction module. The mode of the specific client side display information extraction module is similar to that of the client side display information input module; the manner in which the user inputs the information extraction instruction through the information extraction module is similar to the manner in which the user inputs the information input instruction through the information input module, and will not be described again here.
Specifically, since the random object corresponding to the virtual resource may be a virtual prize, that is, the address information of the user needs not to be acquired, but the target account of the user needs to be acquired, when the client receives the information extraction instruction input by the user, the information extraction instruction may be sent to the server, so that the server sends the random object to the target account. In one implementation manner, the target account refers to an account of a current application program of the user, after receiving an information extraction instruction of the user, the client may determine a random object according to an identifier of the random object, and then send the random object to the account of the current application program, for example, the user participates in lottery activities through WeChat, the random object is a member of one month of vacation video, and the server may send a virtual prize of the member of one month of vacation video to the WeChat account of the user; in another implementation manner, the target account number may be an account number in a server where the random object is located, and the information extraction instruction includes a user identifier of the current user and an identifier of the random object, so that the server may determine, according to the identifier of the random object, which virtual prize the random object is, for example, a diamond in a game king, a green diamond in QQ music, a member in a messenger video, and so on, where the random object is a game king, and since accounts between various applications generally have an association relationship, the target account associated with the user identifier may be obtained by using the user identifier of the current user, so that the random object may be sent to the target account. As an example, for example, the current user participates in lottery through an instant messaging application (e.g. a WeChat), while the random object is a prize in a music application (e.g. a moon green drill of QQ music), and the WeChat account of the general user and the account of the QQ music are bound to each other, so that the server may determine the QQ music account of the user according to the user identification of the WeChat account of the user, and may send a moon green drill to the QQ music account of the user, etc., it should be understood that the above examples are merely for convenience in understanding the present scheme, and are not limited to the present scheme.
For further understanding of the present solution, please refer to fig. 10, fig. 10 is a schematic diagram of an interface of an information viewing page in the method for virtual resource display in the embodiment of the present application, wherein 66 diamonds in the XXXX game shown in D1 represent random objects, and F1 represents an information extraction module, and it should be understood that the example in fig. 10 is only for facilitating understanding of the present solution, and is not intended to limit the present solution.
In the embodiment of the application, after the virtual resource is displayed, the virtual resource viewing instruction can be received, the information viewing page is displayed, and the random object corresponding to the virtual resource and the information extraction module are displayed on the information viewing page, so that the information extraction instruction can be received through the information extraction module, the information extraction instruction is sent to the server, and the server can send the random object to the target account according to the information extraction instruction. Through the mode, the user can directly extract lottery prizes through the information checking instruction of the virtual resources, and convenience in a lottery drawing process is improved.
Optionally, in a first optional embodiment of the method for displaying virtual resources according to the embodiment of the present application on the basis of the embodiment corresponding to fig. 2, after the client displays the virtual resources, the method further includes:
The client receives an information viewing instruction;
responding to an information viewing instruction, and displaying an information viewing page by the client, wherein the information viewing page comprises a random object corresponding to a virtual resource, a combined object viewing module and a resetting module, the random object belongs to one combined object in a combined object set, and the combined object set comprises a plurality of combined objects;
if a combined object viewing instruction is received through the combined object viewing module, the client responds to the combined object viewing instruction and displays a combined object interface, wherein the combined object interface comprises M combined objects, and M is a positive number greater than or equal to 1;
if the image recognition instruction is received through the reset module, the client responds to the image recognition instruction and obtains a second image to be recognized through the shooting module.
In this embodiment, after the virtual resource is displayed, the client may further receive an information viewing instruction input by the user, so that the client may respond to the information viewing instruction to display an information viewing page, where the information viewing page may display a random object, a combined object viewing module, and a reset module corresponding to the virtual resource, where the random object belongs to one combined object in a combined object set, and the combined object set includes a plurality of combined objects, for example, the combined object set may be a jigsaw, and then the combined object in the combined object set may be a jigsaw base plate or a jigsaw block, or may not include a jigsaw base plate but only a jigsaw block in the combined object, and as another example, the combined object set may be a complete assembling robot, and then the combined object in the combined object set may be any element of the assembling robot, and the specific expression form of the combined object set and the combined object is not limited herein.
When the client receives a combined object viewing instruction input by a user through the combined object viewing module, a combined object interface can be displayed in response to the combined object viewing instruction, wherein M combined objects are displayed on the combined object interface, M is a positive number greater than or equal to 1, and as an example, a jigsaw floor can be displayed on the combined object interface; as another example, a tile may be presented on a combined object interface, for example; as yet another example, a robot's head, etc., may be presented on a combined object interface, for example, without limitation herein. When the client receives the image recognition instruction input by the user through the reset module, the second image to be recognized can be obtained through the shooting module in response to the image recognition instruction, and the specific implementation process of obtaining the second image to be recognized through the shooting module according to the received image recognition instruction by the client is described in the above embodiment, which is not repeated here.
The mode of the client side display object checking module and the mode of the resetting module are similar to the mode of the client side display information input module; the manner in which the user inputs the object viewing instruction through the object viewing module and the manner in which the image recognition instruction is input through the reset module is similar to the manner in which the user inputs the information input instruction through the information input module, and will not be described again here.
Optionally, when the user collects all the combined objects in the combined object set through the client, the client may display the random object again, and the prize value corresponding to the random object displayed again may be higher than the prize value corresponding to the random object obtained directly through the image to be identified, that is, when the user completes the combined object set, a higher value prize may be drawn, which further increases the interest of the lottery process, and because the prize value obtained through the combined object set is higher, the participation enthusiasm of the user may be mobilized.
For further understanding of the present solution, please refer to fig. 11, fig. 11 is an interface schematic diagram of an information viewing page in the method for virtual resource display in the embodiment of the present application, where the jigsaw shown in D1 represents a random object, G1 represents an object viewing module, and G2 represents a reset module, and it should be understood that the example in fig. 11 is only for convenience of understanding the present solution, and is not limited to this solution.
In the embodiment of the application, after the virtual resource is displayed, a virtual resource viewing instruction can be received, and then an information viewing page is displayed, wherein the information viewing page is provided with a random object corresponding to the virtual resource, a combined object viewing module and a reset module, so that the combined object viewing instruction can be received through the combined object viewing module, a combined object interface is displayed, and an image recognition instruction can be received through the reset module, so that a second image to be recognized is obtained through the shooting module. By the mode, the random object can be set into a combined object form, so that the interest of the lottery drawing process is increased; when the random object corresponding to the virtual resource is one combined object in the combined object set, a user can directly enter a combined object display interface in a lottery drawing process, so that the number of the currently owned combined objects can be timely obtained; of course, the user can directly enter the next lottery drawing on the page for displaying the prizes, so that convenience of the lottery drawing process is greatly improved, and the viscosity of the user is improved.
Optionally, in a first optional embodiment of the method for displaying virtual resources according to the embodiment of fig. 2, the client sends at least one frame of a first to-be-identified image to the server, so that the server generates K to-be-matched tags according to the first to-be-identified image, including:
the method comprises the steps that a client sends at least one frame of first images to be identified to a first server in servers through a target interface, so that the first server generates Q selectable labels according to the at least one frame of first images to be identified, and sends the Q selectable labels to a second server in the servers, so that the second server selects K labels to be matched from the Q selectable labels, wherein Q is an integer greater than or equal to K;
if the target label exists in the K labels to be matched according to the weight value, obtaining the virtual resource matched with the target label, wherein the method comprises the following steps:
if the second server determines that the target label exists in the K labels to be matched according to the weight value, the client receives the virtual resource sent by the second server.
In this embodiment, a target interface for communicating with the first server may be provided on the client, so that the client sends the first image to be identified to the first server in the servers through the target interface, so that the first server generates Q selectable tags according to the first image to be identified, and sends the Q selectable tags to the second server, so that the second server selects K tags to be matched from the Q selectable tags according to an effective tag detection rule, where Q is an integer greater than or equal to K. The first server may be an image recognition server, and the second server may be a lottery game server.
The process of generating Q selectable labels by the first server according to the first image to be identified has certain randomness, and can be that a label library is stored on the first server, so that the first server can obtain Q selectable labels completely and randomly from the label library; the first server may also simulate the divergent thinking of the human being through a neural network, that is, when the first server obtains the first image to be identified, Q selectable labels or the like may be obtained through the neural network simulating the divergent thinking of the human being, which is not limited herein. Further, the first server may further generate a weight of each selectable label, in which case, since Q selectable labels may be generated by the first server through the neural network, the neural network may further generate a degree of association between each selectable label and the first image to be identified, and determine the degree of association as a weight value of the selectable label; in another case, the first server may also generate a weight value for each selectable tag entirely randomly.
The second server may preset the value of K, where K tags to be matched are selected from Q selectable tags, and referring to the description in step 102, the valid tag detection rule refers to that illegal words or sensitive words are removed from Q selectable tags, and optionally, words with a word number exceeding a preset value may be removed, so that S selectable tags may be obtained. And further, under the condition that the second server determines that the target label exists in the K labels to be matched according to the weight value, the client can receive the virtual resource sent by the second server.
For further understanding of the present solution, please refer to fig. 12, fig. 12 is a flow chart illustrating a method for obtaining virtual resources in the method for displaying virtual resources according to an embodiment of the present application, wherein H1, a client sends a first image to be identified to a first server; the method comprises the steps that H2, a first server generates S selectable labels and weight values of each selectable label according to a first image to be identified; h3, the first server sends S selectable labels and S weight values to the second server; h4, the second server selects K tags to be matched from S selectable tags; and H5, under the condition that the second server determines that the target labels exist in the K labels to be matched according to the weight value, the client receives the virtual resource sent by the second server. It should be understood that the example in fig. 12 is merely for convenience of understanding the present solution, and is not intended to limit the present solution.
In the embodiment of the application, a first image to be identified can be sent to a first server in the servers through a target interface, so that the first server generates Q selectable labels according to the first image to be identified, and the Q selectable labels are sent to a second server, so that the second server selects K labels to be matched from the Q selectable labels, and the second server determines that the target label exists in the K labels to be matched according to the weight value, so that virtual resources sent by the second server can be received. By the method, a specific implementation mode of the virtual resource acquisition process is provided, and the feasibility of the scheme is improved; and as the server for generating Q selectable labels according to the first image to be identified and the server for sending the virtual resource to the client can be different servers, the client can receive the virtual resource only by sending the first image to be identified to the first server, thereby reducing the complexity of the client.
Optionally, in a first optional embodiment of the method for displaying virtual resources according to the embodiment of fig. 2, the client sends a first image to be identified to the server, so that the server generates K tags to be matched according to the first image to be identified, including:
the client sends at least one frame of first images to be identified to a first server in the servers through a first interface, so that the first server generates Q selectable labels according to the first images to be identified, wherein Q is an integer greater than or equal to K;
the client receives Q selectable labels sent by a first server;
the client sends Q selectable labels to a second server in the servers through a second interface so that the second server can select K labels to be matched from the Q selectable labels;
if the target label exists in the K labels to be matched according to the weight value, the client acquires the virtual resource matched with the target label, and the method comprises the following steps:
if the second server determines that the target label exists in the K labels to be matched according to the weight value, the client receives the virtual resource sent by the second server.
In this embodiment, the client may send the first image to be identified to a first server in the servers through the first interface, so that the first server generates Q selectable labels according to the first image to be identified, and further the client may receive the Q selectable labels sent by the first server, and send the Q selectable labels to a second server in the servers through the second interface, so that the second server selects K labels to be matched from the Q selectable labels, and if the second server determines that a target label exists in the K labels to be matched according to the weight value, the client receives the virtual resource sent by the second server.
For further understanding of the present solution, please refer to fig. 13, fig. 13 is a flow chart illustrating a method for obtaining a virtual resource in the method for displaying a virtual resource according to an embodiment of the present application, wherein I1, a client sends a first image to be identified to a first server; i2, the client receives S selectable labels and a weight value of each selectable label; i3, the client sends S selectable labels and S weight values to the second server; i4, the second server selects K tags to be matched from S selectable tags;
and I5, under the condition that the second server determines that the target labels exist in the K labels to be matched according to the weight value, the client receives the virtual resource sent by the second server. It should be understood that the example in fig. 12 is merely for convenience of understanding the present solution, and is not intended to limit the present solution.
In the embodiment of the application, through the mode, another specific implementation mode of the virtual resource acquisition process is provided, and the implementation flexibility of the scheme is improved; and because the client is used as an interaction bridge between the first server and the second server, direct interaction between the first server and the second server is not needed, the development requirement of setting an interface between the first server and the second server is omitted, and the development complexity of the server is reduced.
In combination with the above description, the embodiment of the present application further provides a method for displaying virtual resources, referring to fig. 14, and one embodiment of the method for displaying virtual resources in the embodiment of the present application includes:
and J1, the client acquires the voice to be recognized.
In this embodiment, the user may open the lottery interface of the client through a web link or an applet corresponding to the lottery function, and after the client receives the voice recognition instruction input by the user, the client may open the voice recognition module to obtain the voice to be recognized. Wherein the voice recognition module can be a microphone or other pickup element, etc.; the speech to be recognized can be speech of any content, so long as the speech does not contain illegal words and sensitive words.
And J2, generating K tags to be matched according to the voice to be recognized by the client, wherein each tag to be matched corresponds to a weight value, the weight values are used for determining the matching sequence of the tags to be matched, and K is an integer greater than or equal to 1.
In this embodiment, in one case, after the client obtains the voice to be recognized, the voice to be recognized may be sent to the server, so that the server generates K tags to be matched according to the voice to be recognized. Specifically, random components exist in the process of generating K tags to be matched by the server, namely the K tags to be matched do not necessarily have a direct association relationship with the voice content of the voice to be recognized. In another case, the client may directly generate K tags to be matched after acquiring the voice to be recognized, which is not limited herein.
And J3, if the target labels exist in the K labels to be matched according to the weight value, the client acquires the virtual resources matched with the target labels.
And J4, the client displays the virtual resource.
In the embodiment of the present application, the specific implementation manner of steps J3 and J4 is similar to the specific implementation manner of steps 103 and 104 in the above embodiment, and reference may be made to the description in the above embodiment, which is not repeated here.
In the embodiment of the application, a method for displaying virtual resources is provided, firstly, a client acquires voice to be recognized, then the client generates K tags to be matched according to the voice to be recognized, each tag to be matched corresponds to a weight value, the weight values are used for determining the matching sequence of the tags to be matched, and if a target tag exists, the client acquires the virtual resources matched with the target tag and displays the virtual resources. By the method, the client acquires the voice to be recognized and executes lottery logic based on the voice, so that a user does not need to conduct lottery aiming at a fixed lottery interface, but can randomly acquire the voice to conduct lottery, and the flexibility of lottery is improved.
In combination with the above description, the embodiment of the present application further provides a method for displaying virtual resources, referring to fig. 15, and one embodiment of the method for displaying virtual resources in the embodiment of the present application includes:
201. The server receives an image to be identified sent by the client, wherein the image to be identified is acquired by the client through the shooting module.
202. The server generates K tags to be matched according to the images to be identified, wherein each tag to be matched corresponds to a weight value, the weight values are used for determining the matching sequence of the tags to be matched, and K is an integer greater than or equal to 1.
In this embodiment, after receiving the image to be identified sent by the client, the server may generate K tags to be matched and a weight value of each tag to be matched, where the weight value of each tag to be matched is used to determine a matching sequence of the tags to be matched, and since the concept of the tag to be matched and the method for obtaining the weight value have been described in detail in the embodiments corresponding to fig. 3 to 13, it may be understood in conjunction with the above embodiments, which will not be described herein.
203. If the server determines that the target label exists in the K labels to be matched according to the weight value, generating virtual resources according to the target label, wherein the target label belongs to one label in a preset label set.
In this embodiment, a preset tag set may be pre-stored on the server, where each word in the preset tag set is a word that the server determines that there is a corresponding gift, after the server obtains K tags to be matched and a weight value corresponding to each tag to be matched, the server may obtain the weight value of each tag to be matched, rank the K tags to be matched in a manner of from large to small according to the weight value, then match each tag to be matched with the preset tag set one by one, and the earlier the tag to be matched with the larger weight value is performed, in the matching process, if the matching between the target tag in the K tags to be matched and the preset tag set is successful, the server generates a virtual resource according to the target tag.
Specifically, in one implementation manner, a virtual resource corresponding to each tag in the preset tag set (i.e., a prize corresponding to each tag) may be preset on the server, and after determining that the target tag exists, the virtual resource corresponding to the target tag may be obtained; in another implementation manner, the server may not preset virtual resources corresponding to each tag in the preset tag set, but a virtual resource library is pre-stored on the server, after determining that the target tag exists, a virtual resource is randomly selected in the virtual resource library (i.e. a prize is randomly selected in the prize library), and the specific manner in which the server generates the virtual resource according to the target tag is not limited herein.
Optionally, since the server performs the matching operation according to the weight value of the tag to be matched, if the matching operation of K tags to be matched is not completed when the first target tag is matched, that is, if the server obtains the target tag when the K-n tags to be matched are matched, the server may not perform the matching operation on the remaining tags to be matched, where n is an integer greater than or equal to 1, so that the user is prevented from obtaining two prizes in one image recognition process, and more users are ensured to obtain the prizes.
204. The server sends the virtual resource to the client so that the client exposes the virtual resource.
In the embodiment of the application, a method for displaying virtual resources is provided, firstly, a server receives a first image to be identified sent by a client, then the server can generate K labels to be matched according to the first image to be identified, each label to be matched corresponds to a weight value, the weight values are used for determining the matching sequence of the labels to be matched, and if a target label exists, the server sends the virtual resources to the client so that the client displays the virtual resources. By the method, the client acquires the live-action image shot by the user, the shot image is sent to the server, lottery logic is executed by the server based on the image and fed back to the client, so that the user does not need to conduct lottery aiming at a fixed lottery interface, but draws a picture in the live-action to conduct lottery, and the lottery flexibility is improved.
Optionally, in a first optional embodiment of the method for displaying virtual resources according to the embodiment of fig. 2, the server generates K tags to be matched according to the image to be identified, including:
The server generates Q selectable labels according to the image to be identified, wherein Q is an integer greater than or equal to K;
and the server selects K tags to be matched from the Q selectable tags according to the effective tag detection rule.
In this embodiment, after receiving the first image to be identified or the second image to be identified, the service request may push the first image to be identified or the second image to be identified to generate Q selectable labels according to the to-be-identified, where Q is an integer greater than or equal to K, and further, K to-be-matched labels may be selected from the Q selectable labels according to an effective label detection rule, and since a specific implementation manner of generating the Q selectable labels according to the to-be-identified image by the server is described in detail in an embodiment corresponding to fig. 12, details are not repeated herein, where the effective label detection rule refers to that an illegal word or a sensitive word in the Q selectable labels does not belong to an effective label, optionally, a label whose number of words in the Q selectable labels exceeds a preset may also be regarded as an invalid label, and other restrictions may be set for the labels at present, and this is not limited.
In order to further understand the scheme, the process of selecting K tags to be matched from Q selectable tags by the server is shown by combining a table.
TABLE 1
Q selectable tags K tags to be matched
Table (Table) Table (Table)
Data line Data line
The summer mood is pink Null
Wood Wood
Peach (peach) Peach (peach)
Riot of disorder Null
Mug Mug
Cola (cola) Fighting with fighting
Referring to table 1 above, the valid tag detection rule in table 1 refers to that the valid tag is not a valid tag, the left side of table 1 is 8 selectable tags, and the right side of table 1 is 6 tags to be matched selected from the 8 selectable tags, wherein the tag is regarded as an invalid tag because the tag is "pink" with a word number greater than four, and the tag is regarded as an invalid tag because the tag is "violently" with a sensitive word related to political factors, and it should be understood that the above example is only an anti-refuting understanding scheme and is not limited to the scheme.
In the embodiment of the application, the server can generate Q selectable labels according to the image to be identified, and then select K labels to be matched from the Q selectable labels according to the effective label detection rule. Through the mode, illegal words and sensitive words in the Q selectable labels are screened out, so that the phenomenon that the lottery drawing process leads to unclean guidance is avoided; in addition, the word number of each label is limited, so that the client side is more attractive when the labels to be matched are displayed through the image recognition interface.
Optionally, in a first optional embodiment of the method for displaying virtual resources according to the embodiment of the present application on the basis of the embodiment corresponding to fig. 2, after the server generates K tags to be matched according to the image to be identified, the method further includes:
the server determines the matching sequence of the K tags to be matched according to the weight value corresponding to each tag to be matched in the K tags to be matched;
the server matches the labels to be matched in the K labels to be matched in sequence according to the matching sequence;
if the label to be matched belongs to the preset label set and the label to be matched does not belong to the hit label set, the server determines the label to be matched as the target label.
In this embodiment, after obtaining K tags to be matched, the server may obtain a weight value corresponding to each tag to be matched in the K tags to be matched, so as to determine a matching sequence of the K tags to be matched, and the matching sequence with higher weight value is more advanced, so that the server matches the tags to be matched in the K tags to be matched with each tag in the preset tag set and the hit tag set in sequence according to the matching sequence, and if the tags to be matched belong to the preset tag set and the tags to be matched do not belong to the hit tag set, the server determines the tags to be matched as target tags, where the hit tag set includes at least zero tags, which are used target tags.
To further understand the present solution, the preset tag set and the hit tag set are described below using a table.
TABLE 2
Presetting tag sets Hit tag set
Macarons Null
Cheong-sam Null
Cola (cola) Cola (cola)
Mangosteen Null
Maple leaf Null
Peach (peach) Peach (peach)
Referring to table 2 above, the left side of table 2 is the preset tag set, the right side is the hit tag set, and it can be seen from table 2 that the two tags of "cola" and "peach" in the preset tag set have already been awarded, that is, if the server matches the tag "cola", the tag "cola" may match the preset tag set, but since the tag "cola" belongs to the tag in the hit tag set, the tag "cola" may not be determined as the target tag any more, and it should be understood that the above example is merely for convenience of the present scheme and is not intended to limit the present scheme.
In the embodiment of the application, the server can determine the matching sequence of the K tags to be matched according to the weight value corresponding to each tag to be matched in the K tags to be matched, and when the tags to be matched in the K tags to be matched are matched in sequence according to the matching sequence, the matching is performed with a preset tag set and a hit tag set, and when the tags to be matched belong to the preset tag set and do not belong to the hit tag set, the server determines the tags to be matched as target tags. Through the mode, the specific implementation process of the target tag matching process is provided, the realizability of the scheme is improved, and the repeated winning of the lottery by the user through the same image to be identified is avoided, so that the fairness of the lottery drawing process is ensured.
Referring to fig. 16 for a detailed description of the virtual resource display device in the present application, fig. 16 is a schematic diagram of an embodiment of a client in an embodiment of the present application, where the client 30 includes:
an acquiring unit 301, configured to acquire at least one frame of a first image to be identified;
a generating unit 302, configured to generate K tags to be matched according to at least one frame of the first image to be identified acquired by the acquiring unit 301, where each tag to be matched corresponds to a weight value, where the weight values are used to determine a matching sequence of the tags to be matched, and K is an integer greater than or equal to 1;
the obtaining unit 301 is further configured to obtain a virtual resource that is matched with the target tag if it is determined that the target tag exists in the K tags to be matched according to the weight value;
and a display unit 303, configured to display the virtual resource received by the receiving unit 304.
In this embodiment, the acquiring unit 301 acquires at least one frame of the first image to be identified, the generating unit 302 generates K tags to be matched according to the at least one frame of the first image to be identified acquired by the acquiring unit 301, where each tag to be matched corresponds to a weight value, the weight value is used to determine a matching sequence of the tags to be matched, K is an integer greater than or equal to 1, if the acquiring unit 301 determines that a target tag exists in the K tags to be matched according to the weight value, the virtual resource matched with the target tag is acquired, and the displaying unit 303 displays the virtual resource received by the receiving unit 304.
In the embodiment of the present application, the acquiring unit 301 acquires the first image to be identified through the shooting module, then the generating unit 302 generates K tags to be matched according to the first image to be identified, each tag to be matched corresponds to a weight value, the weight values are used for determining the matching sequence of the tags to be matched, if the target tag exists, the acquiring unit 301 acquires the virtual resource matched with the target tag, and the displaying unit 303 displays the virtual resource. By the method, the client acquires the image to be identified and executes lottery logic based on the image, so that a user does not need to conduct lottery aiming at a fixed lottery interface, but can randomly acquire the image to conduct lottery, and the flexibility of lottery is improved.
Alternatively, on the basis of the embodiment corresponding to fig. 16, in another embodiment of the client 30 provided in the embodiment of the present application, the generating unit 302 is specifically configured to:
at least one frame of first to-be-identified image is sent to the server, so that the server generates K to-be-matched labels according to the at least one frame of first to-be-identified image;
receiving K tags to be matched sent by a server;
and displaying each label to be matched in the K labels to be matched received by the receiving unit through an image identification interface.
In the embodiment of the present application, after the generating unit 302 sends the first image to be identified to the server, the receiving unit 304 may also receive K tags to be matched returned by the server, so that the displaying unit 303 may display the K tags to be matched. Through the mode, the user can obtain more feedback through the client side in the lottery drawing process, so that the interestingness of the lottery drawing process is increased.
Optionally, in another embodiment of the client 30 according to the embodiment of the present application, the display unit 303 is specifically configured to display the virtual resource through a target page of the image recognition interface, where the target page is a sub-page that is displayed independently of the image recognition interface, and the virtual resource includes a preset text, the preset text includes a target tag, and the preset text has a corresponding relationship with the target tag.
In the embodiment of the present application, the display unit 303 may display the virtual resource through a sub-interface that is displayed independently of the image recognition interface, where the virtual resource may include a preset text, the preset text includes a target tag, and a correspondence is provided between the preset text and the target tag. By the method, when the virtual resource is displayed, not only the target label is displayed, but also the corresponding preset text is matched, so that the virtual resource display process is more interesting.
Optionally, in another embodiment of the client 30 according to the embodiment of the present application, the display unit 303 is specifically configured to display the virtual resource through a target page of the image recognition interface, where the target page is a sub-page that is displayed independently of the image recognition interface, and the virtual resource includes a target tag.
Next, in the embodiment of the present application, the display unit 303 may display the virtual resource through the sub-interface displayed independently of the image recognition interface, where the virtual resource includes the target tag. In this way, when there is no preset text corresponding to the target tag, the display unit 303 may only display the target tag, which ensures that there is corresponding display logic no matter whether the target tag has a corresponding preset text, thereby ensuring the integrity of the scheme.
Optionally, referring to fig. 17 on the basis of the embodiment corresponding to fig. 16, fig. 17 is a schematic structural diagram of a client according to an embodiment of the present application, in another embodiment of the client 30 provided in the embodiment of the present application,
the display unit 303 is further configured to display the reset module through the image recognition interface if it is determined that no target tag exists in the K tags to be matched according to the weight value;
The client further comprises: a receiving unit 304, configured to receive an image recognition instruction through the reset module displayed by the display unit 303;
the acquiring unit 301 is further configured to acquire at least one frame of a second image to be identified in response to the image identification instruction received by the receiving unit 304.
Secondly, in the embodiment of the present application, when it is determined that no target tag exists in the K tags to be matched according to the weight value, the display unit 303 may display the reset module through the image recognition interface, so that the receiving unit 304 may receive the image recognition instruction through the reset module, and further, the obtaining unit 301 obtains the second image to be recognized through the photographing module in response to the image recognition instruction. Through the mode, when the user wins the lottery, the user can directly input the image identification instruction again through the reset module, namely, the user participates in the lottery again, so that convenience of the lottery process is improved, and the viscosity of the user is improved.
Alternatively, on the basis of the embodiments corresponding to fig. 16 and 17, in another embodiment of the client 30 provided in the embodiment of the present application,
the client further comprises: a receiving unit 304, configured to receive an information viewing instruction;
the display unit 303 is further configured to display an information viewing page in response to the information viewing instruction received by the receiving unit 304, where the information viewing page includes a random object corresponding to the virtual resource, an information input module, and an information sharing module;
The display unit 303 is further configured to, if the information input module displayed by the display unit 303 receives an information input instruction, respond to the information input instruction, and display an information filling page;
the client further comprises: the sending unit 305 is configured to send an information sharing instruction to the server if the information sharing module displayed by the display unit 303 receives the information sharing instruction, so that the server sends a push message to N clients according to the information sharing instruction, where the information sharing instruction carries N client identifiers, and the client identifiers and the clients have a one-to-one correspondence relationship, and N is an integer greater than or equal to 1.
In the embodiment of the present application, after the display unit 303 displays the virtual resource, the receiving unit 304 may further receive a virtual resource viewing instruction, so that the display unit 303 displays an information viewing page, and the information viewing page displays a random object, an information input module and an information sharing module corresponding to the virtual resource, so that the information input instruction may be received through the information input module, the display unit 303 displays an information filling page, and may also receive an information sharing instruction through the information sharing module, so as to send push information to N clients. Through the method, when the random object corresponding to the virtual resource is an entity product, the address information of the user can be obtained through the information filling page, and the user can trigger the sharing operation through the prize display interface, so that the interest of lottery activities is further increased.
Alternatively, on the basis of the embodiments corresponding to fig. 16 and 17, in another embodiment of the client 30 provided in the embodiment of the present application,
the client further comprises: a receiving unit 304, configured to receive an information viewing instruction;
the display unit 303 is further configured to display an information viewing page in response to the information viewing instruction received by the receiving unit 304, where the information viewing page includes a random object corresponding to the virtual resource and an information extraction module;
the client further comprises: and a sending unit 305, configured to send the information extraction instruction to the server if the information extraction module shown by the showing unit 303 receives the information extraction instruction, so that the server sends the random object to the target account according to the information extraction instruction, where the information extraction instruction carries the identifier of the random object.
In the embodiment of the present application, after the display unit 303 displays the virtual resource, the receiving unit 304 may further receive a virtual resource viewing instruction, so that the display unit 303 displays an information viewing page, on which a random object corresponding to the virtual resource and an information extraction module are displayed, so that the information extraction instruction may be received by the information extraction module, and the sending unit 305 sends the information extraction instruction to the server, so that the server may send the random object to the target account according to the information extraction instruction. Through the mode, the user can directly extract lottery prizes through the information checking instruction of the virtual resources, and convenience in a lottery drawing process is improved.
Alternatively, on the basis of the embodiment corresponding to fig. 16, in another embodiment of the client 30 provided in the embodiment of the present application,
the client further comprises: a receiving unit 304, configured to receive an information viewing instruction;
the display unit 303 is further configured to display an information viewing page in response to the information viewing instruction received by the receiving unit 304, where the information viewing page includes a random object corresponding to the virtual resource, a combined object viewing module, and a reset module, the random object belongs to one combined object in a combined object set, and the combined object set includes a plurality of combined objects;
the display unit 303 is further configured to, if the combined object viewing module displayed by the display unit 303 receives the combined object viewing instruction, display a combined object interface in response to the combined object viewing instruction, where the combined object interface includes M combined objects, and M is a positive number greater than or equal to 1;
the obtaining unit 301 is further configured to, if the reset module shown by the showing unit 303 receives the image recognition instruction, obtain, by the photographing module, the second image to be recognized in response to the image recognition instruction.
In the embodiment of the present application, after the display unit 303 displays the virtual resource, the receiving unit 304 may further receive a virtual resource viewing instruction, so that the display unit 303 displays an information viewing page, on which a random object, a combined object viewing module and a reset module corresponding to the virtual resource are displayed, so that the combined object viewing instruction may be received by the combined object viewing module, so that the display unit 303 displays a combined object interface, and may also receive an image recognition instruction by the reset module, so that the obtaining unit 301 obtains the second image to be recognized by the capturing module. By the mode, the random object can be set into a combined object form, so that the interest of the lottery drawing process is increased; when the random object corresponding to the virtual resource is one combined object in the combined object set, a user can directly enter a combined object display interface in a lottery drawing process, so that the number of the currently owned combined objects can be timely obtained; of course, the user can directly enter the next lottery drawing on the page for displaying the prizes, so that convenience of the lottery drawing process is greatly improved, and the viscosity of the user is improved.
Alternatively, on the basis of the embodiment corresponding to fig. 16, in another embodiment of the client 30 provided in the embodiment of the present application,
the generating unit 302 is specifically configured to send a first image to be identified to a first server in the servers through the target interface, so that the first server generates Q selectable labels according to the first image to be identified, and send the Q selectable labels to the second server, so that the second server selects K labels to be matched from the Q selectable labels, where Q is an integer greater than or equal to K;
the obtaining unit 301 is specifically configured to receive the virtual resource sent by the second server if the second server determines that the target tag exists in the K tags to be matched according to the weight value.
In the embodiment of the present application, the generating unit 302 may send the first image to be identified to a first server in the servers through the target interface, so that the first server generates Q selectable labels according to the first image to be identified, and sends the Q selectable labels to a second server, so that the second server selects K labels to be matched from the Q selectable labels, and when the second server determines that the target label exists in the K labels to be matched according to the weight value, the receiving unit 304 may receive the virtual resource sent by the second server. By the method, a specific implementation mode of the virtual resource acquisition process is provided, and the feasibility of the scheme is improved; and as the server for generating Q selectable labels according to the first image to be identified and the server for sending the virtual resource to the client can be different servers, the client can receive the virtual resource only by sending the first image to be identified to the first server, thereby reducing the complexity of the client.
Optionally, on the basis of the embodiment corresponding to fig. 16, in another embodiment of the client 30 provided by the embodiment of the present application, the generating unit 302 is specifically configured to:
transmitting a first image to be identified to a first server in the servers through a first interface so that the first server generates Q selectable labels according to the first image to be identified, wherein Q is an integer greater than or equal to K;
receiving Q selectable labels sent by a first server;
q selectable labels are sent to a second server in the servers through a second interface, so that the second server can select K labels to be matched from the Q selectable labels;
the obtaining unit 301 is specifically configured to receive the virtual resource sent by the second server if the second server determines that the target tag exists in the K tags to be matched according to the weight value.
Secondly, in the embodiment of the application, through the mode, another specific implementation mode of the virtual resource acquisition process is provided, and the implementation flexibility of the scheme is improved; and because the client is used as an interaction bridge between the first server and the second server, direct interaction between the first server and the second server is not needed, the development requirement of setting an interface between the first server and the second server is omitted, and the development complexity of the server is reduced.
Referring to fig. 16, fig. 16 is a schematic diagram of an embodiment of a client according to an embodiment of the present application, where the client 30 includes:
an acquiring unit 301, configured to acquire a voice to be recognized;
a generating unit 302, configured to generate K tags to be matched according to the voice to be recognized acquired by the acquiring unit 301, where each tag to be matched corresponds to a weight value, where the weight values are used to determine a matching sequence of the tags to be matched, and K is an integer greater than or equal to 1;
the obtaining unit 301 is further configured to obtain a virtual resource that is matched with the target tag if it is determined that the target tag exists in the K tags to be matched according to the weight value;
and a display unit 303, configured to display the virtual resource acquired by the acquisition unit 301.
In this embodiment, the obtaining unit 301 obtains the voice to be recognized, the generating unit 302 generates K tags to be matched according to the voice to be recognized obtained by the obtaining unit 301, where each tag to be matched corresponds to a weight value, the weight value is used to determine a matching sequence of the tags to be matched, K is an integer greater than or equal to 1, if the obtaining unit 301 determines that a target tag exists in the K tags to be matched according to the weight value, virtual resources matched with the target tag are obtained, and the displaying unit 303 is used to display the virtual resources obtained by the obtaining unit 301.
In the embodiment of the present application, the obtaining unit 301 obtains the voice to be recognized, the generating unit 302 generates K tags to be matched according to the voice to be recognized, each tag to be matched corresponds to a weight value, the weight values are used for determining the matching sequence of the tags to be matched, if the target tag exists, the obtaining unit 301 obtains the virtual resource matched with the target tag, and the displaying unit 303 displays the virtual resource. By the method, the client acquires the voice to be recognized and executes lottery logic based on the voice, so that a user does not need to conduct lottery aiming at a fixed lottery interface, but can randomly acquire the voice to conduct lottery, and the flexibility of lottery is improved.
Referring to fig. 18, fig. 18 is a schematic diagram showing an embodiment of a virtual resource display device in an embodiment of the present application, where a virtual resource display device 40 includes:
a receiving unit 401, configured to receive an image to be identified sent by a client, where the image to be identified is acquired by the client through a shooting module;
a generating unit 402, configured to generate K tags to be matched according to the image to be identified received by the receiving unit 401, where each tag to be matched corresponds to a weight value, where the weight values are used to determine a matching sequence of the tags to be matched, and K is an integer greater than or equal to 1;
The generating unit 402 is further configured to generate a virtual resource according to the target tag if it is determined, according to the weight value, that the target tag exists in the K tags to be matched generated by the generating unit 402, where the target tag belongs to one tag in the preset tag set;
a sending unit 403, configured to send the virtual resource generated by the second generating unit 402 to the client, so that the client exposes the virtual resource.
In this embodiment, the receiving unit 401 receives an image to be identified sent by a client, where the image to be identified is acquired by the client through a shooting module, the generating unit 402 generates K tags to be matched according to the image to be identified received by the receiving unit 401, where each tag to be matched corresponds to a weight value, the weight value is used to determine a matching sequence of the tags to be matched, K is an integer greater than or equal to 1, if it is determined that, according to the weight values, there is a target tag in the K tags to be matched generated by the generating unit 402, the generating unit 402 generates a virtual resource according to the target tag, where the target tag belongs to one tag in a preset tag set, and the sending unit 403 sends the virtual resource generated by the second generating unit 402 to the client, so that the client displays the virtual resource.
In this embodiment of the present application, the receiving unit 401 receives a first image to be identified sent by a client, and further the generating unit 402 may generate K tags to be matched according to the first image to be identified, where each tag to be matched corresponds to a weight value, and the weight value is used to determine a matching sequence of the tags to be matched, and if a target tag exists, the sending unit 403 sends a virtual resource to the client, so that the client displays the virtual resource. By the method, the client acquires the live-action image shot by the user, the shot image is sent to the server, lottery logic is executed by the server based on the image and fed back to the client, so that the user does not need to conduct lottery aiming at a fixed lottery interface, but draws a picture in the live-action to conduct lottery, and the lottery flexibility is improved.
Alternatively, on the basis of the embodiment corresponding to fig. 18, in another embodiment of the virtual resource display apparatus 40 provided in the embodiment of the present application, the generating unit 402 is specifically configured to:
generating Q selectable labels according to the image to be identified, wherein Q is an integer greater than or equal to K;
and selecting K tags to be matched from the Q selectable tags according to the effective tag detection rule.
In the embodiment of the present application, the generating unit 402 may generate Q selectable labels according to the image to be identified, and further select K labels to be matched from the Q selectable labels according to an effective label detection rule. Through the mode, illegal words and sensitive words in the Q selectable labels are screened out, so that the phenomenon that the lottery drawing process leads to unclean guidance is avoided; in addition, the word number of each label is limited, so that the client side is more attractive when the labels to be matched are displayed through the image recognition interface.
Optionally, referring to fig. 19 on the basis of the embodiment corresponding to fig. 18, fig. 19 is a schematic view of an embodiment of a virtual resource display device according to an embodiment of the present application, and in another embodiment of a virtual resource display device 40 provided in the embodiment of the present application, the virtual resource display device 40 further includes:
a determining unit 404, configured to determine a matching sequence of the K tags to be matched according to a weight value corresponding to each of the K tags to be matched;
a matching unit 405, configured to match the to-be-matched tags in the K to-be-matched tags sequentially according to the matching sequence determined by the determining unit 404;
the determining unit 404 is further configured to determine the tag to be matched as the target tag if the tag to be matched belongs to the preset tag set and the tag to be matched does not belong to the hit tag set.
In the embodiment of the present application, the determining unit 404 may determine the matching sequence of the K tags to be matched according to the weight value corresponding to each tag to be matched in the K tags to be matched, when the matching unit 405 matches the tags to be matched in the K tags to be matched in sequence according to the matching sequence, the matching unit will match the preset tag set and the hit tag set, and when the determining unit 404 determines that the tag to be matched belongs to the preset tag set and does not belong to the hit tag set, the server determines the tag to be matched as the target tag. Through the mode, the specific implementation process of the target tag matching process is provided, the realizability of the scheme is improved, and the repeated winning of the lottery by the user through the same image to be identified is avoided, so that the fairness of the lottery drawing process is ensured.
Next, an embodiment of the present application further provides a terminal device, where the terminal device may be deployed with a client provided in the embodiments corresponding to fig. 16 and fig. 17, where the client is configured to perform a step performed by the client in the embodiments corresponding to fig. 3 to fig. 13, or perform a step performed by the client in the embodiment corresponding to fig. 14. As shown in fig. 20, for convenience of explanation, only the portions related to the embodiments of the present application are shown, and specific technical details are not disclosed, please refer to the method portions of the embodiments of the present application. The terminal device may be any terminal device including a mobile phone, a tablet computer, a personal digital assistant (Personal Digital Assistant, PDA), a Point of Sales (POS), a vehicle-mounted computer, etc., taking the mobile phone as an example of the attribute information display device:
Fig. 20 is a block diagram showing a part of the structure of a mobile phone related to the attribute information display device provided by the embodiment of the present application. Referring to fig. 20, the mobile phone includes: radio Frequency (RF) circuitry 510, memory 520, input unit 530, display unit 540, sensor 550, audio circuitry 560, wireless fidelity (wireless fidelity, wiFi) module 570, processor 580, and power supply 590. It will be appreciated by those skilled in the art that the handset configuration shown in fig. 20 is not limiting of the handset and may include more or fewer components than shown, or may combine certain components, or may be a different arrangement of components.
The following describes the components of the mobile phone in detail with reference to fig. 20:
the RF circuit 510 may be used for receiving and transmitting signals during a message or a call, and in particular, after receiving downlink information of a base station, the signal is processed by the processor 580; in addition, the data of the design uplink is sent to the base station. Typically, the RF circuitry 510 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, and the like. In addition, the RF circuitry 510 may also communicate with networks and other devices via wireless communications. The wireless communications may use any communication standard or protocol including, but not limited to, global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), code division multiple access (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE), email, short message service (Short Messaging Service, SMS), and the like.
The memory 520 may be used to store software programs and modules, and the processor 580 performs various functional applications and data processing of the cellular phone by executing the software programs and modules stored in the memory 520. The memory 520 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 520 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The input unit 530 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the handset. In particular, the input unit 530 may include a touch panel 531 and other input devices 532. The touch panel 531, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 531 or thereabout by using any suitable object or accessory such as a finger, a stylus, etc.), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch panel 531 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 580, and can receive commands from the processor 580 and execute them. In addition, the touch panel 531 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 530 may include other input devices 532 in addition to the touch panel 531. In particular, other input devices 532 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc.
The display unit 540 may be used to display information input by a user or information provided to the user and various menus of the mobile phone. The display unit 540 may include a display panel 541, and alternatively, the display panel 541 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 531 may cover the display panel 541, and when the touch panel 531 detects a touch operation thereon or thereabout, the touch operation is transferred to the processor 580 to determine the type of the touch event, and then the processor 580 provides a corresponding visual output on the display panel 541 according to the type of the touch event. Although in fig. 20, the touch panel 531 and the display panel 541 are two independent components to implement the input and input functions of the mobile phone, in some embodiments, the touch panel 531 and the display panel 541 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 550, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 541 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 541 and/or the backlight when the mobile phone moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for applications of recognizing the gesture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured with the handset are not described in detail herein.
Audio circuitry 560, speakers 561, microphone 562 may provide an audio interface between the user and the handset. The audio circuit 560 may transmit the received electrical signal converted from audio data to the speaker 561, and the electrical signal is converted into a sound signal by the speaker 561 and output; on the other hand, microphone 562 converts the collected sound signals into electrical signals, which are received by audio circuit 560 and converted into audio data, which are processed by audio data output processor 580 for transmission to, for example, another cell phone via RF circuit 510, or for output to memory 520 for further processing.
WiFi belongs to a short-distance wireless transmission technology, and a mobile phone can help a user to send and receive emails, browse webpages, access streaming media and the like through a WiFi module 570, so that wireless broadband Internet access is provided for the user. Although fig. 20 shows a WiFi module 570, it is understood that it does not belong to the necessary constitution of the handset, and can be omitted entirely as required within the scope of not changing the essence of the invention.
Processor 580 is the control center of the handset, connects the various parts of the entire handset using various interfaces and lines, and performs various functions and processes of the handset by running or executing software programs and/or modules stored in memory 520, and invoking data stored in memory 520. Optionally, processor 580 may include one or more processing units; alternatively, processor 580 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 580.
The handset further includes a power supply 590 (e.g., a battery) for powering the various components, optionally in logical communication with the processor 580 via a power management system so as to perform charge, discharge, and power management functions via the power management system.
Although not shown, the mobile phone may further include a camera module, a bluetooth module, etc., which will not be described herein.
In the embodiment of the present application, in the case that the processor 580 included in the terminal device is used to perform the steps performed by the client in the embodiments corresponding to fig. 3 to 13, the processor 580 is further used to perform the following steps:
acquiring at least one frame of first image to be identified;
generating K tags to be matched according to the at least one frame of first image to be identified, wherein each tag to be matched corresponds to a weight value, the weight values are used for determining the matching sequence of the tags to be matched, and K is an integer greater than or equal to 1;
if the target labels exist in the K labels to be matched according to the weight value, virtual resources matched with the target labels are obtained;
and displaying the virtual resource.
Optionally, the processor 580 is specifically configured to:
the at least one frame of first images to be identified is sent to a server, so that the server generates K tags to be matched according to the at least one frame of first images to be identified;
Receiving the K tags to be matched sent by the server;
and displaying each label to be matched in the K labels to be matched through an image identification interface.
Optionally, the processor 580 is specifically configured to:
displaying the virtual resource through a target page of the image recognition interface, wherein the target page is a sub-page which is displayed independently of the image recognition interface, the virtual resource comprises a preset text, the preset text comprises the target label, and the preset text and the target label have a corresponding relation.
Optionally, the processor 580 is specifically configured to:
and displaying the virtual resource through a target page of the image recognition interface, wherein the target page is a sub-page which is displayed independently of the image recognition interface, and the virtual resource comprises the target label.
Optionally, the processor 580 is further configured to perform the following steps:
if the target label does not exist in the K labels to be matched according to the weight value, displaying a reset module through an image recognition interface;
receiving an image recognition instruction through the reset module;
and responding to the image identification instruction, and acquiring at least one frame of second image to be identified.
Optionally, the processor 580 is further configured to perform the following steps:
receiving an information viewing instruction;
responding to the information viewing instruction, and displaying an information viewing page, wherein the information viewing page comprises a random object corresponding to the virtual resource, an information input module and an information sharing module;
if an information input instruction is received through the information input module, responding to the information input instruction, and displaying an information filling page;
and if the information sharing module receives the information sharing instruction, sending the information sharing instruction to the server so that the server sends push messages to N clients according to the information sharing instruction, wherein the information sharing instruction carries N client identifications, the client identifications and the clients have a one-to-one correspondence, and N is an integer greater than or equal to 1.
Optionally, the processor 580 is further configured to perform the following steps:
receiving an information viewing instruction;
responding to the information viewing instruction, and displaying an information viewing page, wherein the information viewing page comprises a random object corresponding to the virtual resource and an information extraction module;
And if the information extraction module receives the information extraction instruction, sending the information extraction instruction to the server so that the server sends the random object to a target account according to the information extraction instruction, wherein the information extraction instruction carries the identification of the random object.
Optionally, the processor 580 is further configured to perform the following steps:
receiving an information viewing instruction;
responding to the information viewing instruction, displaying an information viewing page, wherein the information viewing page comprises a random object corresponding to the virtual resource, a combined object viewing module and a resetting module, the random object belongs to one combined object in a combined object set, and the combined object set comprises a plurality of combined objects;
if a combined object viewing instruction is received through the combined object viewing module, a combined object interface is displayed in response to the combined object viewing instruction, wherein the combined object interface comprises M combined objects, and M is a positive number greater than or equal to 1;
and if the image recognition instruction is received through the reset module, responding to the image recognition instruction, and acquiring at least one frame of second image to be recognized.
Optionally, the processor 580 is specifically configured to:
transmitting the at least one frame of first images to be identified to a first server in the servers through a target interface, so that the first server generates Q selectable labels according to the at least one frame of first images to be identified, and transmitting the Q selectable labels to a second server in the servers, so that the second server selects the K labels to be matched from the Q selectable labels, wherein Q is an integer greater than or equal to K;
and if the second server determines that the target label exists in the K labels to be matched according to the weight value, receiving the virtual resource sent by the second server.
Optionally, the processor 580 is specifically configured to:
transmitting the first image to be identified to a first server in the servers through a first interface so that the first server generates Q selectable labels according to the first image to be identified, wherein Q is an integer greater than or equal to K;
receiving the Q selectable labels sent by the first server;
sending the Q selectable labels to a second server in the servers through a second interface so that the second server can select the K labels to be matched from the Q selectable labels;
And if the second server determines that the target label exists in the K labels to be matched according to the weight value, receiving the virtual resource sent by the second server.
In the embodiment of the present application, in the case that the processor 580 included in the terminal device is configured to perform the steps performed by the client in the embodiment corresponding to fig. 14, the processor 580 is further configured to perform the following steps:
acquiring voice to be recognized;
generating K tags to be matched according to the voice to be recognized, wherein each tag to be matched corresponds to a weight value, the weight values are used for determining the matching sequence of the tags to be matched, and K is an integer greater than or equal to 1;
if the target labels exist in the K labels to be matched according to the weight value, virtual resources matched with the target labels are obtained;
and displaying the virtual resource.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working processes of the various modules and units included in the terminal device described above may refer to corresponding processes in the foregoing method embodiments, which are not described herein again.
The embodiment of the application also provides a server, and the server can be deployed with the virtual resource display device provided in the embodiment corresponding to fig. 18 and 19, so as to execute the steps executed by the server in the embodiment corresponding to fig. 15. Referring to fig. 21, fig. 21 is a schematic diagram of a server according to an embodiment of the present application, where the server 600 may have a relatively large difference due to different configurations or performances, and may include one or more central processing units (central processing units, CPU) 622 (e.g., one or more processors) and a memory 632, and one or more storage media 630 (e.g., one or more mass storage devices) storing application programs 642 or data 644. Wherein memory 632 and storage medium 630 may be transitory or persistent storage. The program stored on the storage medium 630 may include one or more modules (not shown), each of which may include a series of instruction operations on a server. Still further, the central processor 622 may be configured to communicate with a storage medium 630 and execute a series of instruction operations in the storage medium 630 on the server 600.
The server 600 may also include one or more power supplies 626, one or more wired or wireless network interfaces 650, one or more input/output interfaces 658, and/or one or more operating systems 641, such as Windows ServerTM, mac OS XTM, unixTM, linuxTM, freeBSDTM, and the like.
The steps performed by the platform server in the embodiment corresponding to fig. 21 may be based on the platform server structure shown in fig. 21.
In an embodiment of the present application, the central processor 622 included in the server 600 is further configured to perform the following steps:
receiving an image to be identified sent by a client, wherein the image to be identified is acquired by the client through a shooting module;
generating K tags to be matched according to the image to be identified, wherein each tag to be matched corresponds to a weight value, the weight values are used for determining the matching sequence of the tags to be matched, and K is an integer greater than or equal to 1;
if the target labels exist in the K labels to be matched according to the weight value, generating virtual resources according to the target labels, wherein the target labels belong to one label in a preset label set;
And sending the virtual resource to the client so that the client can display the virtual resource.
Optionally, the central processor 622 is specifically configured to:
generating Q selectable labels according to the image to be identified, wherein Q is an integer greater than or equal to K;
and selecting the K tags to be matched from the Q selectable tags according to an effective tag detection rule.
Optionally, the central processor 622 is further configured to perform the following steps:
determining the matching sequence of the K tags to be matched according to the weight value corresponding to each tag to be matched in the K tags to be matched;
sequentially matching the labels to be matched in the K labels to be matched according to the matching sequence;
and if the label to be matched belongs to a preset label set and the label to be matched does not belong to a hit label set, determining the label to be matched as the target label.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working processes of the various modules and units included in the server described above may refer to corresponding processes in the foregoing method embodiments, which are not repeated herein.
The embodiment of the application also provides an information distribution system, which may include the client in the embodiment described in fig. 16 and the virtual resource display device in the embodiment described in fig. 18 and 19, or may also include the terminal device in the embodiment described in fig. 20 and the server in the embodiment described in fig. 21.
Embodiments of the present application also provide a computer readable storage medium having a computer program stored therein, which when run on a computer causes the computer to perform the steps performed by a client in the method described in the embodiments of fig. 3 to 13 described above.
There is also provided in an embodiment of the present application a computer-readable storage medium having stored therein a computer program which, when run on a computer, causes the computer to perform the steps performed by the server in the method described in the embodiment of fig. 15 as described above.
There is also provided in an embodiment of the application a computer program product comprising a program which, when run on a computer, causes the computer to perform the steps performed by a client in a method as described in the embodiments of figures 3 to 13 above.
There is also provided in an embodiment of the application a computer program product comprising a program which, when run on a computer, causes the computer to perform the steps performed by the server in the method described in the embodiment of fig. 15 as described above.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (18)

1. A method for virtual resource presentation, comprising:
acquiring at least one frame of first image to be identified;
the method comprises the steps of sending at least one frame of first to-be-identified images to a server, so that the server generates K to-be-matched labels according to the at least one frame of first to-be-identified images, and specifically comprises the following steps:
transmitting the at least one frame of first images to be identified to a first server in the servers through a target interface, so that the first server generates Q selectable labels according to the at least one frame of first images to be identified, and transmitting the Q selectable labels to a second server in the servers, so that the second server selects the K labels to be matched from the Q selectable labels, wherein Q is an integer greater than or equal to K;
Or sending the first image to be identified to a first server in the servers through a first interface, so that the first server generates Q selectable labels according to the first image to be identified, wherein Q is an integer greater than or equal to K; receiving the Q selectable labels sent by the first server; sending the Q selectable labels to a second server in the servers through a second interface so that the second server can select the K labels to be matched from the Q selectable labels;
receiving the K tags to be matched sent by the server, wherein each tag to be matched corresponds to a weight value, the weight values are used for determining the matching sequence of the tags to be matched, and K is an integer greater than or equal to 1;
if the second server determines that the target labels exist in the K labels to be matched according to the weight value, receiving virtual resources matched with the target labels and sent by the second server;
and displaying the virtual resource.
2. The method of claim 1, wherein after the receiving the K tags to be matched sent by the server, the method further comprises:
And displaying each label to be matched in the K labels to be matched through an image identification interface.
3. The method of claim 1, wherein the exposing the virtual resource comprises:
displaying the virtual resource through a target page of an image recognition interface, wherein the target page is a sub-page which is displayed independently of the image recognition interface, the virtual resource comprises a preset text, the preset text comprises the target label, and the preset text and the target label have a corresponding relation.
4. The method of claim 1, wherein the exposing the virtual resource comprises:
and displaying the virtual resource through a target page of an image recognition interface, wherein the target page is a sub-page which is displayed independently of the image recognition interface, and the virtual resource comprises the target label.
5. The method of claim 1, wherein after receiving the K tags to be matched sent by the server, the method further comprises:
if the target label does not exist in the K labels to be matched according to the weight value, displaying a reset module through an image recognition interface;
Receiving an image recognition instruction through the reset module;
and responding to the image identification instruction, and acquiring at least one frame of second image to be identified.
6. The method of claim 1, wherein after the exposing the virtual resource, the method further comprises:
receiving an information viewing instruction;
responding to the information viewing instruction, and displaying an information viewing page, wherein the information viewing page comprises a random object corresponding to the virtual resource, an information input module and an information sharing module;
if an information input instruction is received through the information input module, responding to the information input instruction, and displaying an information filling page;
and if the information sharing module receives the information sharing instruction, sending the information sharing instruction to the server so that the server sends push messages to N clients according to the information sharing instruction, wherein the information sharing instruction carries N client identifications, the client identifications and the clients have a one-to-one correspondence, and N is an integer greater than or equal to 1.
7. The method of claim 1, wherein after the exposing the virtual resource, the method further comprises:
Receiving an information viewing instruction;
responding to the information viewing instruction, and displaying an information viewing page, wherein the information viewing page comprises a random object corresponding to the virtual resource and an information extraction module;
and if the information extraction module receives the information extraction instruction, sending the information extraction instruction to the server so that the server sends the random object to a target account according to the information extraction instruction, wherein the information extraction instruction carries the identification of the random object.
8. The method of claim 1, wherein after the exposing the virtual resource, the method further comprises:
receiving an information viewing instruction;
responding to the information viewing instruction, displaying an information viewing page, wherein the information viewing page comprises a random object corresponding to the virtual resource, a combined object viewing module and a resetting module, the random object belongs to one combined object in a combined object set, and the combined object set comprises a plurality of combined objects;
if a combined object viewing instruction is received through the combined object viewing module, a combined object interface is displayed in response to the combined object viewing instruction, wherein the combined object interface comprises M combined objects, and M is a positive number greater than or equal to 1;
And if the image recognition instruction is received through the reset module, responding to the image recognition instruction, and acquiring at least one frame of second image to be recognized.
9. A client, comprising:
the acquisition unit is used for acquiring at least one frame of first image to be identified;
the generating unit is used for sending the at least one frame of first to-be-identified image to a server so that the server generates K to-be-matched labels according to the at least one frame of first to-be-identified image;
the generating unit is specifically configured to send the at least one frame of first to-be-identified image to a first server in the servers through a target interface, so that the first server generates Q selectable labels according to the at least one frame of first to-be-identified image, and send the Q selectable labels to a second server in the servers, so that the second server selects the K to-be-matched labels from the Q selectable labels, where Q is an integer greater than or equal to K;
or the generating unit is specifically configured to send the first image to be identified to a first server in the servers through a first interface, so that the first server generates Q selectable labels according to the first image to be identified, where Q is an integer greater than or equal to K; receiving the Q selectable labels sent by the first server; sending the Q selectable labels to a second server in the servers through a second interface so that the second server can select the K labels to be matched from the Q selectable labels;
The generating unit is further configured to receive the K tags to be matched sent by the server, where each tag to be matched corresponds to a weight value, the weight values are used to determine a matching sequence of the tags to be matched, and K is an integer greater than or equal to 1;
the obtaining unit is further configured to receive a virtual resource that is sent by the second server and matches with the target tag if the second server determines that the target tag exists in the K tags to be matched according to the weight value, where the target tag belongs to one tag in a preset tag set, and the virtual resource is generated by the server according to the target tag;
and the display unit is used for displaying the virtual resources received by the receiving unit.
10. The client of claim 9, wherein the generating unit is further configured to:
and displaying each label to be matched in the K labels to be matched through an image identification interface.
11. The client according to claim 9, wherein the presentation unit is specifically configured to:
displaying the virtual resource through a target page of an image recognition interface, wherein the target page is a sub-page which is displayed independently of the image recognition interface, the virtual resource comprises a preset text, the preset text comprises the target label, and the preset text and the target label have a corresponding relation.
12. The client according to claim 9, wherein the presentation unit is specifically configured to:
and displaying the virtual resource through a target page of an image recognition interface, wherein the target page is a sub-page which is displayed independently of the image recognition interface, and the virtual resource comprises the target label.
13. The client according to claim 9, characterized in that the client further comprises a receiving unit;
the display unit is further configured to display a reset module through an image recognition interface if it is determined that the target tag does not exist in the K tags to be matched according to the weight value;
the receiving unit is used for receiving an image recognition instruction through the reset module;
the acquisition unit is further used for responding to the image identification instruction and acquiring at least one frame of second image to be identified.
14. The client according to claim 9, characterized in that the client further comprises a receiving unit;
the receiving unit is used for receiving an information checking instruction;
the display unit is further configured to display an information viewing page in response to the information viewing instruction, where the information viewing page includes a random object, an information input module, and an information sharing module corresponding to the virtual resource;
The display unit is further used for responding to the information input instruction if the information input instruction is received through the information input module, and displaying an information filling page;
and if the information sharing module receives the information sharing instruction, sending the information sharing instruction to the server so that the server sends push messages to N clients according to the information sharing instruction, wherein the information sharing instruction carries N client identifications, the client identifications and the clients have a one-to-one correspondence, and N is an integer greater than or equal to 1.
15. The client according to claim 9, further comprising a receiving unit and a transmitting unit;
the receiving unit is used for receiving an information checking instruction;
the display unit is further configured to display an information viewing page in response to the information viewing instruction, where the information viewing page includes a random object corresponding to the virtual resource and an information extraction module;
and the sending unit is used for sending the information extraction instruction to the server if the information extraction instruction is received through the information extraction module, so that the server sends the random object to the target account according to the information extraction instruction, wherein the information extraction instruction carries the identification of the random object.
16. The client of claim 9, further comprising a receiving unit;
the receiving unit is used for receiving an information checking instruction;
the display unit is further configured to display an information viewing page in response to the information viewing instruction, where the information viewing page includes a random object corresponding to the virtual resource, a combined object viewing module, and a reset module, where the random object belongs to one combined object in a combined object set, and the combined object set includes a plurality of combined objects;
the display unit is further configured to, if a combined object viewing instruction is received through the combined object viewing module, respond to the combined object viewing instruction, and display a combined object interface, where the combined object interface includes M combined objects, and M is a positive number greater than or equal to 1;
the acquiring unit is further configured to acquire at least one frame of second image to be identified in response to the image identification instruction if the image identification instruction is received through the resetting module.
17. A terminal device, comprising: memory, transceiver, processor, and bus system;
Wherein the memory is used for storing programs;
the processor is used for executing the program in the memory, and comprises the following steps:
acquiring at least one frame of first image to be identified;
the method comprises the steps of sending at least one frame of first to-be-identified images to a server, so that the server generates K to-be-matched labels according to the at least one frame of first to-be-identified images, and specifically comprises the following steps:
transmitting the at least one frame of first images to be identified to a first server in the servers through a target interface, so that the first server generates Q selectable labels according to the at least one frame of first images to be identified, and transmitting the Q selectable labels to a second server in the servers, so that the second server selects the K labels to be matched from the Q selectable labels, wherein Q is an integer greater than or equal to K;
or sending the first image to be identified to a first server in the servers through a first interface, so that the first server generates Q selectable labels according to the first image to be identified, wherein Q is an integer greater than or equal to K; receiving the Q selectable labels sent by the first server; sending the Q selectable labels to a second server in the servers through a second interface so that the second server can select the K labels to be matched from the Q selectable labels;
Receiving the K tags to be matched sent by the server, wherein each tag to be matched corresponds to a weight value, the weight values are used for determining the matching sequence of the tags to be matched, and K is an integer greater than or equal to 1;
if the second server determines that the target labels exist in the K labels to be matched according to the weight value, receiving virtual resources matched with the target labels and sent by the second server;
displaying the virtual resource;
the bus system is used for connecting the memory and the processor so as to enable the memory and the processor to communicate.
18. A computer readable storage medium comprising instructions which, when run on a computer, cause the computer to perform the method of any one of claims 1 to 8.
CN201910745813.6A 2019-08-13 2019-08-13 Virtual resource display method and related device Active CN110781421B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910745813.6A CN110781421B (en) 2019-08-13 2019-08-13 Virtual resource display method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910745813.6A CN110781421B (en) 2019-08-13 2019-08-13 Virtual resource display method and related device

Publications (2)

Publication Number Publication Date
CN110781421A CN110781421A (en) 2020-02-11
CN110781421B true CN110781421B (en) 2023-10-17

Family

ID=69383978

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910745813.6A Active CN110781421B (en) 2019-08-13 2019-08-13 Virtual resource display method and related device

Country Status (1)

Country Link
CN (1) CN110781421B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113325946A (en) * 2020-02-28 2021-08-31 腾讯科技(深圳)有限公司 Virtual gift interaction method based on augmented reality and related device
CN113448430B (en) * 2020-03-26 2023-02-28 中移(成都)信息通信科技有限公司 Text error correction method, device, equipment and computer readable storage medium
CN112199553A (en) * 2020-09-24 2021-01-08 北京达佳互联信息技术有限公司 Information resource processing method, device, equipment and storage medium
CN113761281B (en) * 2021-04-26 2024-05-14 腾讯科技(深圳)有限公司 Virtual resource processing method, device, medium and electronic equipment
CN113271251B (en) * 2021-05-17 2022-12-06 深圳市腾讯网域计算机网络有限公司 Virtual resource activity control method and device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017041557A1 (en) * 2015-09-08 2017-03-16 腾讯科技(深圳)有限公司 Display control method and apparatus
CN106960030A (en) * 2017-03-21 2017-07-18 北京百度网讯科技有限公司 Pushed information method and device based on artificial intelligence

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017041557A1 (en) * 2015-09-08 2017-03-16 腾讯科技(深圳)有限公司 Display control method and apparatus
CN106960030A (en) * 2017-03-21 2017-07-18 北京百度网讯科技有限公司 Pushed information method and device based on artificial intelligence

Also Published As

Publication number Publication date
CN110781421A (en) 2020-02-11

Similar Documents

Publication Publication Date Title
CN110781421B (en) Virtual resource display method and related device
CN111408136B (en) Game interaction control method, device and storage medium
CN109347722B (en) Interaction system, method, client and background server
CN108984087B (en) Social interaction method and device based on three-dimensional virtual image
CN105933211B (en) The sharing method and client and system of a kind of game data
CN106878406B (en) Information sharing method, device and system
CN106059894B (en) Message processing method and device
CN112291134B (en) Information prompting method, device, equipment and storage medium
CN110035004B (en) User name card sharing method, friend adding method and related device
CN110223088B (en) Information distribution method, information generation method and device
CN107908765B (en) Game resource processing method, mobile terminal and server
CN113810732B (en) Live content display method, device, terminal, storage medium and program product
CN110555171A (en) Information processing method, device, storage medium and system
CN108521365B (en) Method for adding friends and mobile terminal
KR102239616B1 (en) Message notification method and terminal
CN108429668B (en) Message processing method, device, terminal and system
CN110147496B (en) Content pushing method and device
CN113839913A (en) Interactive information processing method, related device and storage medium
CN106020945B (en) Shortcut item adding method and device
CN108174299B (en) Comment data loading method and device for video
CN109728918B (en) Virtual article transmission method, virtual article reception method, device, and storage medium
CN111666498B (en) Friend recommendation method based on interaction information, related device and storage medium
CN106411681B (en) Information processing method, initiating device, server and participating device
CN112801752B (en) Page display method, device, equipment and medium based on application mall
US10419816B2 (en) Video-based check-in method, terminal, server and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40018294

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant