CN115208849A - Interaction method and device - Google Patents

Interaction method and device Download PDF

Info

Publication number
CN115208849A
CN115208849A CN202210743052.2A CN202210743052A CN115208849A CN 115208849 A CN115208849 A CN 115208849A CN 202210743052 A CN202210743052 A CN 202210743052A CN 115208849 A CN115208849 A CN 115208849A
Authority
CN
China
Prior art keywords
information
user
image
users
interactive
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.)
Pending
Application number
CN202210743052.2A
Other languages
Chinese (zh)
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.)
Shanghai Bilibili Technology Co Ltd
Original Assignee
Shanghai Bilibili Technology 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 Shanghai Bilibili Technology Co Ltd filed Critical Shanghai Bilibili Technology Co Ltd
Priority to CN202210743052.2A priority Critical patent/CN115208849A/en
Publication of CN115208849A publication Critical patent/CN115208849A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/10Multimedia information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements

Abstract

The embodiment of the application provides an interaction method, which comprises the following steps: receiving first information reported by a first user and second information reported by N second users, wherein N is an integer, and the first information and the second information comprise information used for determining the relative positions of the first user and the second users; determining whether a third user exists according to the first information and the second information, wherein the third user is the second user located within a preset distance range of the first user; acquiring an image of the first user as a first image and acquiring an image of the third user as a second image under the condition that the third user exists; and generating an interactive image according to the first image and the second image. The interaction method provided by the embodiment of the application can better integrate the online and offline interaction, and enriches the interaction forms among users.

Description

Interaction method and device
Technical Field
The present application relates to the field of computer technologies, and in particular, to an interaction method, an interaction apparatus, a computer device, and a storage medium.
Background
In real life, human-to-human interaction can be roughly divided into two forms: one is online, and active communication is carried out through the Internet; one is offline, with active communication by gathering at a location.
However, the two forms of interaction are mostly separated, that is, either online activity or offline activity, and the online and offline interactions cannot be well fused at present, and the form of interaction is not rich enough.
Disclosure of Invention
The application aims to provide an interaction method, an interaction device, computer equipment and a storage medium, which are used for solving the technical problems that the online and offline interaction modes are not combined together and the interaction modes are not rich enough at present.
One aspect of the embodiments of the present application provides an interaction method, including: receiving first information reported by a first user and second information reported by N second users, wherein N is an integer, and the first information and the second information comprise information used for determining the relative positions of the first user and the second users; determining whether a third user exists according to the first information and the second information, wherein the third user is a second user located within a preset distance range of the first user; under the condition that a third user exists, acquiring an image of the first user as a first image, and acquiring an image of the third user as a second image; and generating an interactive image according to the first image and the second image.
Optionally, the method further comprises: performing user matching according to the first information and the second information, wherein the user matching comprises matching of the first user and the second user and matching between the second users; determining the users with the distance between the users not larger than the preset distance range as the users successfully matched, and recording the results of successful matching; before determining whether a third user exists according to the first information and the second information, the method further comprises the following steps: querying the result, and in case the result does not include the first user, performing the step of determining whether a third user is present based on the first information and the second information.
Optionally, the first information and the second information include at least one of account information, IP address information, GPS information, WIFI information, and near field communication information.
Optionally, determining whether a third user is present according to the first information and the second information comprises: and under the condition that the first information or the second information comprises account information, if the first information or the second information comprises the account information of the first user and the account information of at least one second user, determining that a third user exists, wherein the account information of the first user is acquired through the Bluetooth equipment of the second user, and the account information of the second user is acquired through the Bluetooth equipment of the first user.
Optionally, after receiving the first information reported by the first user and the second information reported by the N second users, the method further includes: storing users corresponding to the same IP address in a set data structure under the condition that the first information and the second information comprise IP address information; determining whether a third user is present based on the first information and the second information, comprising: in the case where the first user and the at least one second user exist in the same IP address, it is determined that a third user exists.
Optionally, determining whether a third user is present according to the first information and the second information comprises: under the condition that the first information and the second information comprise GPS information, whether a second user located within a preset distance range of the first user exists is inquired by adopting a GeoHash algorithm according to the GPS information; in the presence case, it is determined that a third user is present.
Optionally, the first information and the second information include at least two of account information, IP address information, GPS information, WIFI information, and near field communication information, and the method further includes: and determining whether a third user exists according to each information according to a preset sequence, and performing locking control on each determination process.
Optionally, after determining whether a third user exists according to each information in a preset sequence and performing locking control on each determination process, the method further includes: obtaining sub-results determined according to each type of information; merging the sub-results to obtain a merged result; and determining whether a third user exists according to the merging result.
An aspect of an embodiment of the present application further provides an interaction apparatus, including: the receiving module is used for receiving first information reported by a first user and second information reported by N second users, wherein N is an integer, and the first information and the second information comprise information used for determining the relative positions of the first user and the second users; the determining module is used for determining whether a third user exists according to the first information and the second information, wherein the third user is a second user located within a preset distance range of the first user; the acquisition module is used for acquiring the image of the first user as a first image and acquiring the image of the third user as a second image under the condition that the third user exists; and the interactive module is used for generating an interactive image according to the first image and the second image.
An aspect of the embodiments of the present application further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the computer device is configured to implement the steps of the above-mentioned interaction method.
An aspect of the embodiments of the present application further provides a computer-readable storage medium, in which a computer program is stored, where the computer program is executable by at least one processor, so as to cause the at least one processor to execute the steps of the above-mentioned interaction method.
The interaction method, the interaction device, the computer equipment and the storage medium provided by the embodiment of the application have the following advantages:
the method comprises the steps that first information reported by a first user and second information reported by N second users are received, whether the second users located within a preset distance range of the first user exist or not is determined according to the first information and the second information, and an interactive image between the users is generated under the condition that the second users exist, so that a new form of interaction can be provided; because the interactive image generated on line is the interactive image between users within the preset distance range, and the users within the preset distance range can also perform corresponding offline activities, the online and offline interactions can be better fused together, and the interaction forms between the users are enriched.
Drawings
FIG. 1 schematically illustrates an environmental architecture diagram of an embodiment of the present application;
fig. 2 schematically shows a flowchart of an interaction method according to a first embodiment of the present application;
fig. 3 schematically shows another flowchart of the interaction method according to the first embodiment of the present application;
FIG. 4 is a diagram illustrating a schematic example of an interaction method according to an embodiment of the present application;
FIG. 5 is a flowchart illustrating an interaction method according to a first embodiment of the present disclosure;
fig. 6 is a block diagram schematically illustrating an interactive apparatus according to a second embodiment of the present application;
fig. 7 schematically shows a hardware architecture diagram of a computer device according to a third embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of and not restrictive on the broad application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
It should be noted that the descriptions relating to "first", "second", etc. in the embodiments of the present application are only for descriptive purposes and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the feature. In addition, technical solutions between the embodiments may be combined with each other, but must be based on the realization of the technical solutions by a person skilled in the art, and when the technical solutions are contradictory to each other or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope claimed in the present application.
In the description of the present application, it should be understood that the numerical references before the steps do not identify the order of performing the steps, but merely serve to facilitate the description of the present application and to distinguish each step, and therefore should not be construed as limiting the present application.
The following are explanations of terms referred to in the present application:
near Field Communication (NFC) is a set of Communication protocols that allow two electronic devices to communicate within a few centimeters of each other.
set data structures, similar to arrays, but with member values all unique, no duplicate values.
The GeoHash is an address code, can code the latitude and longitude of two dimensions into a character string of one dimension, is a rectangular area, and the GeoHash algorithm is an effective solution for solving the search of nearby places.
Geo, a microformat that marks WGS84 (world geodetic system) geographic coordinates (longitude, latitude) in HTML (hypertext markup language) and XHTML (extensible hypertext markup language).
A gyroscope, a device for sensing and maintaining direction based on the theory of conservation of angular momentum.
The vibrator is a mechanical device capable of generating vibration and is mostly generated by a motor with an eccentric load on a transmission shaft.
Fig. 1 schematically shows an environment architecture diagram of an embodiment of the present application, as shown in fig. 1:
the plurality of clients 300 are connected with the server 100 through the network 200, the users report information for determining relative positions of the users to the server 100 through the network 200 by using the clients 300, the server 100 determines whether the distance between the two clients 300 is within a preset distance range according to the information reported by the clients 300, if so, the matching between the users is determined to be successful, the images of the users successfully matched are obtained, interactive images are generated according to the obtained images, and the interactive images are sent to the clients 300 corresponding to the users successfully matched.
In an exemplary embodiment, the server 100 may index a data center, such as a single house, or be distributed over different geographic locations (e.g., over several houses). The server 100 may provide services through one or more networks 200.
Network 200 includes various network devices such as routers, switches, multiplexers, hubs, modems, bridges, repeaters, firewalls, proxy devices, and/or the like. Network 200 may include physical links such as coaxial cable links, twisted pair cable links, fiber optic links, combinations thereof, and/or the like. The network 200 may include wireless links, such as cellular links, satellite links, wi-Fi links, and/or the like.
The client 300 may include a device such as a mobile device, a tablet, a laptop, a smart device (e.g., smart apparel, smart watch, smart glasses), a virtual reality headset, a gaming device, a set-top box, a digital streaming device, a robot, a vehicle terminal, a smart television, a television box, or an e-book reader.
At present, the online and offline interactions are mostly separated, the interactions in the two forms cannot be well fused together, and the interaction forms are not rich enough.
The interaction scheme of the embodiment of the application can better integrate the interaction of the online form and the offline form together, and enriches the interaction forms.
The interaction scheme will be described below by several embodiments, and for ease of understanding, the server 100 in fig. 1 will be exemplarily described as an execution subject.
Example one
Fig. 2 schematically shows a flowchart of an interaction method according to a first embodiment of the present application, which includes steps S410 to S440, and the following is specifically described:
step S410, receiving first information reported by a first user and second information reported by N second users, where N is an integer, and the first information and the second information include information used for determining relative positions of the first user and the second users.
The first user may be the user who initiated the interaction request and the second user may be another user relative to the first user. It will be appreciated that the second user may also be the user who initiated the interaction request, but is the other user with respect to the first user, i.e. the roles of the first user and the second user are interchangeable. For example, both the user a and the user B initiate an interaction request, and for the user a, the user a is a first user, and the user B is a second user; for user B, user B is the first user, and user a is the second user.
The first user and the second user report the first information and the second information through respective clients 300. Optionally, the first user and the second user report information to the service end 100 through a specific application program (e.g., app). When the user reports the information, the user may consider to send an interaction request, for example, when the first user reports the first information, the first user may consider to send an interaction request. Optionally, the user may report the information first and then send an interaction request to the server 100, for example, after step S410, the server 100 receives the interaction request sent by the first user, and after receiving the interaction request sent by the first user, step S420 and the subsequent steps are executed.
It can be appreciated that N may be 0 since no second user may report the second information while the first user reports the first information.
The specific kinds of the first information and the second information can be set according to actual needs, as long as the relative position between the users can be determined according to the first information and the second information, so that whether the second user is within the preset distance range of the first user can be determined. Since the roles of the first user and the second user can be interchanged, in the subsequent step S420, it is determined whether a third user exists according to the first information and the second information, and actually, for the service end 100, it is determined whether the distance between the users exists within the preset distance range.
In an exemplary embodiment, the first information and the second information include at least one of account information, IP address information, GPS information, WIFI information, and near field communication information.
And step S420, determining whether a third user exists according to the first information and the second information, wherein the third user is a second user located within a preset distance range of the first user.
For example, if the first information and the second information are WIFI information, the server 100 may determine whether the first information and the second information are the same WIFI information, and if the first information and the second information are the same WIFI information, it indicates that there is a second user who uses the same router to surf the internet with the first user, and the user who uses the same router to surf the internet is close to each other, so that it may be determined that there is a third user. Of course, in the foregoing example, the determination principle of determining whether the third user exists is to be within the preset distance range, and since the distances of the users using the same router to surf the internet are all close, when the server 100 determines that the first user and the plurality of second users surf the internet using the same router, it may determine that the distances between the users are within the preset distance range, thereby determining that the third user exists; that is, the server 100 may be configured to: and when the first information and the second information meet the preset condition, the second user located in the preset distance range of the first user is considered to exist, namely, the third user is determined to exist.
For another example, the first information and the second information are near field communication information, for example, the first user and a plurality of second users report the first information and the second information by colliding with terminals (for example, mobile phones) corresponding to respective clients 300, and since the near field communication information requires a short distance between the users, the server 100 may directly determine that a third user exists if receiving the near field communication information.
It should be understood that, when the information types of the first information and the second information are different, the client 300 may obtain the corresponding information in different manners and report the corresponding information to the server 100; after receiving the first information and the second information, the server 100 may also process the first information and the second information in different manners according to different information types, specifically, the setting may be performed according to actual needs, and no specific limitation is made herein.
In step S430, in the case where the third user exists, the image of the first user is acquired as the first image, and the image of the third user is acquired as the second image.
The specific images of the first image and the second image may be determined according to actual needs, for example, the specific images may be head images of users, pictures uploaded by users by taking pictures, and the like. The first image and the second image may be included in the first information and the second information, that is, the information reported by the user includes the corresponding image, and the server 100 acquires the corresponding first image and the corresponding second image from the first information and the second information. Alternatively, in a case where it is determined that the third user exists, the server 100 may acquire the first image and the second image again.
Step S440, generating an interactive image according to the first image and the second image.
When the interactive image is generated according to the first image and the second image, a preset template may be used to generate the corresponding interactive image. For example, the server 100 obtains an avatar of a first user as a first image, obtains an avatar of a third user as a second image, then obtains a template of a stem cup (a preset template), and generates a group photo of the first user and the stem cup (interaction) of the third user by using the template of the stem cup. The specific used preset template and the generated interactive image can be set according to actual needs, and are not limited here.
After the interactive image is generated, the server 100 can send the interactive image to the clients 300 corresponding to the first user and the third user, so that the first user and the third user can share the interactive image with friends, the interactive interest is further increased, and the interactive effect is enriched.
In the interaction method provided in this embodiment, by receiving first information reported by a first user and second information reported by N second users, determining whether a second user located within a preset distance range of the first user exists according to the first information and the second information, and in the presence of the second user, generating an interaction image between the users, a new form of interaction can be provided; because the interactive image generated on line is the interactive image between users within the preset distance range, and the users within the preset distance range can also perform corresponding offline activities, the online and offline interactions can be better fused together, and the interaction forms between the users are enriched.
In an exemplary embodiment, as shown in fig. 3, another flowchart of the interaction method in the first embodiment of the present application is schematically shown, and includes steps S510 to S570, which are specifically described as follows:
step S510, receiving first information reported by a first user and second information reported by N second users, where N is an integer, and the first information and the second information include information used for determining relative positions of the first user and the second users.
And step S520, performing user matching according to the first information and the second information, wherein the user matching comprises matching between the first user and the second user and matching between the second users.
That is, the server 100 performs matching between all users according to all reported information. For example, the first user is a user a, the second user includes a user B and a user C, and the server 100 performs matching between the user a and the users B and C, and matching between the user B and the user C according to all reported information.
Step S530, determining the user whose distance between the users is not greater than the preset distance range as the user who successfully matches, and recording the result of successful matching.
As described above, when the server 100 determines the matching, the distance may be determined directly according to the first information and the second information, or the distance between the users may be indirectly determined not to be greater than the preset distance range according to whether the first information and the second information meet the preset condition.
If the distance between the users is not greater than the preset distance range, the server 100 determines the users as the users who are successfully matched, and records the result of the successful matching, for example, if the distance between the user a, the user B, and the user C is not greater than the preset distance range, the result is recorded as the successful matching of the user a, the user B, and the user C. It is understood that the multiple users are successfully matched, which means that the distance between each two of the multiple users is not greater than the preset distance range.
Illustratively, if the distance between the users is greater than a preset distance range, it is determined that the matching fails.
And step S540, inquiring the result, judging whether the result contains the first user, if so, determining that a third user exists, and entering step S560, otherwise, entering step S550.
Optionally, the server 100 may perform step S540 after receiving the interaction request sent by the first user, that is, the first user sends the interaction request through the client 300, and after receiving the interaction request sent by the first user, the server 100 queries a result according to the interaction request and a subsequent determination process. When the first user sends an interaction request through the client 300, the first user may trigger sending the interaction request by shaking a terminal where the client 300 is located to trigger a gyroscope (an angular velocity sensor), and then may start a vibrator, so that the user obviously feels a vibration feeling of the terminal, and an interaction effect may be effectively enhanced.
As the result records the information of the successfully matched users, the server 100 can determine whether the first user is included according to the result, and if the first user is included, it indicates that the matching result related to the first user exists before, and the first user is successfully matched with at least one second user, so as to determine that a third user exists, and return a corresponding result; if the first user is not included, there may be no matching result related to the first user before, so step S550 is entered for further determination to determine whether there is a third user.
And step S550, determining whether a third user exists according to the first information and the second information, wherein the third user is a second user located within a preset distance range of the first user.
In step S560, in the case where the third user exists, the image of the first user is acquired as the first image, and the image of the third user is acquired as the second image.
Step S570, generating an interactive image according to the first image and the second image.
Step S510 and step S550 to step S570 are the same as step S140 to step S440, and refer to the foregoing description specifically, and are not repeated herein.
In this embodiment, user matching is performed according to the first information and the second information, a result of successful matching is recorded, before a third user is determined according to the first information and the second information, the result of successful matching is queried, and when the result does not include the first user, the following steps are executed, so that the first user can determine the third user according to the matching result; because a plurality of users initiate interactive requests within the same or similar time, and the processing and judging processes of the users by the server 100 are the same, before determining a third user according to the first information and the second information, whether a corresponding matching result exists is inquired, so that after the server 100 processes the request of one user, other users can utilize the matching result obtained by processing the user, thereby avoiding repeated processing and improving the utilization rate of computing resources of the server 100.
In an exemplary embodiment, the determining whether the third user exists according to the first information and the second information in step S420 includes: and under the condition that the first information or the second information comprises account information, if the first information or the second information comprises the account information of the first user and the account information of at least one second user, determining that a third user exists, wherein the account information of the first user is acquired through the Bluetooth equipment of the second user, and the account information of the second user is acquired through the Bluetooth equipment of the first user.
The account information may be a user's name, nickname, ID, etc. that is related to the user's identity.
For example, if the first information includes (zhang san and lie san), where zhang san is account information of the first user and lie san is account information of the second user, it is determined that the third user exists.
In practical applications, the first user and the second user may respectively open their respective clients 300 (specifically, app), acquire bluetooth permissions, broadcast the account information of the user to other users through bluetooth, and acquire the account information broadcast by other users through bluetooth, so that the information reported by the user may include the account information of the user and the account information of other users.
In this embodiment, when the first information or the second information includes account information of the first user and account information of at least one second user, it is determined that a third user exists, and whether the third user exists may be determined according to the account information; because the account information of other users is acquired through the Bluetooth device, and the communication distance of the Bluetooth device is short, the account information can be considered to be within the preset distance range, and therefore whether a third user exists or not is determined according to the account information, and whether the distance between the users is within the preset distance range or not can be conveniently judged.
In an exemplary embodiment, after step S410, that is, after receiving the first information reported by the first user and the second information reported by the N second users, the method further includes: storing users corresponding to the same IP address in a set data structure under the condition that the first information and the second information comprise IP address information; and in step S420, determining whether a third user exists according to the first information and the second information may include: in the case where the first user and the at least one second user exist in the same IP address, it is determined that a third user exists.
The set data structure for storing users corresponding to the same IP address is, for example: the first IP address (user a, user B, user C \8230;) so that the server 100 can judge the record in the set data structure, and determine that the third user exists in the case where the first user and the at least one second user exist in the same IP address.
In this embodiment, when the first information and the second information include IP address information, users corresponding to the same IP address are stored in a set data structure, and when the first user and at least one second user exist in the same IP address, it is determined that a third user exists, and the third user may be determined according to the IP address; because the distance between the users of the same IP address is short, the users can be considered to be in the preset distance range, and therefore the users corresponding to the same IP address are stored in the set data structure, and whether a third user exists can be conveniently judged according to the IP address; meanwhile, since there is no duplicate value in the set data structure, it is beneficial for the server 100 to make a corresponding judgment.
In an exemplary embodiment, the determining whether the third user exists according to the first information and the second information in step S420 includes: and under the condition that the first information and the second information comprise GPS information, whether a second user located within a preset distance range of the first user exists is inquired by adopting a GeoHash algorithm according to the GPS information, and if so, a third user is determined to exist.
The GPS information can be stored in the Geo structure, so that corresponding calculation can be conveniently carried out through a GeoHash algorithm.
For example, if the first information and the second information both include GPS information (specifically, longitude and latitude information, such as 123.223 and 122.4), a GeoHash algorithm may be used to calculate whether the distance between the first user and the second user is within a preset distance range, and if the distance is within the preset distance range, it is determined that a third user exists.
In the embodiment, under the condition that the first information and the second information comprise the GPS information, whether a second user within a preset distance range of the first user exists is inquired by adopting a GeoHash algorithm according to the GPS information, and under the condition that the second user exists, whether a third user exists is determined, and whether a third user exists can be determined according to the GPS information; because the GPS information can effectively reflect the position information of the users, and the GeoHash algorithm can effectively calculate the distance between the users, the GeoHash algorithm is adopted to calculate the GPS information, and a third user can be effectively determined.
In an exemplary embodiment, the first information and the second information include at least two of account information, IP address information, GPS information, WIFI information, and near field communication information, and the interaction method may further include: and determining whether a third user exists according to each information according to a preset sequence, and performing locking control on each determination process.
The locking control is used for locking the current calculation processing process of the server 100, preventing the current calculation processing process from being interfered or interrupted by other processes or requests of other users, and facilitating concurrent processing of the server 100. Optionally, if there is another user sending an interaction request to request the lock authority during the locking process, the server 100 may notify the user to retry later, and the client 300 corresponding to the user performs logic processing of the retry later.
For example, the first information and the second information include two kinds of information, i.e., IP address information and GPS information, and the preset sequence is that the IP address information is processed first and then the GPS information is processed, the server 100 performs processing according to the preset sequence, and performs locking control when it is determined whether a third user exists according to the IP address information or the GPS information.
In this embodiment, the first information and the second information include at least two kinds of information, and it is determined whether a third user exists according to each kind of information in a preset sequence, and locking control is performed on each determination process, which is beneficial for the server 100 to perform corresponding data processing, and effectively cope with the situation of concurrent interaction requests of multiple users.
In an exemplary embodiment, after determining whether a third user exists according to each information in a preset sequence and performing locking control on each determination process, the interactive method may further include: and acquiring the sub-results determined according to each type of information, merging the sub-results to obtain a merged result, and determining whether a third user exists according to the merged result.
Because the first information and the second information are reported by different users, and the information reported by different users may be different, it may be determined whether a third user exists according to a single information, and the situation that the third user does not exist may occur with a high probability; the results determined by each kind of information are combined, and the results determined by various kinds of information can be integrated, so that the success rate of interaction is ensured to a greater extent. For example, the account information is acquired through a bluetooth device, a bluetooth permission needs to be acquired first, and if the user does not allow the bluetooth permission, the user cannot acquire the account information; if the determination is simply made according to the account information, the result is that no third user exists; however, if there are other kinds of information and the results obtained each time are combined, the probability that the result is a third user is greatly increased.
In this embodiment, when the first information and the second information include at least two kinds of information, the sub-results determined according to each kind of information are obtained, the sub-results are combined to obtain a combined result, and whether a third user exists is determined according to the combined result, so that the success rate of user interaction can be effectively improved.
Please refer to fig. 4, which is a schematic diagram illustrating an interaction method according to an embodiment of the present application, and the interaction method can be simply divided into two parts: firstly, information is reported, and firstly, results are matched, so that a user can report the information to the server 100 through the APP of the client 300; the server 100 stores corresponding information, performs matching according to the corresponding information, and puts a record of successful matching into storage; when other users send interaction requests (rotation requests), the server side judges according to the stored records, if corresponding matching records exist, corresponding rotation results are returned according to the matching records, and if no corresponding matching records exist, processing and judging are carried out according to reported information.
More specifically, please refer to fig. 5, which is a flowchart illustrating an interaction method according to an embodiment of the present application, and the process thereof is substantially as follows:
1. a first user sends out a rotation training request (interaction request);
2. the server 100 inquires whether a corresponding matching result exists, if a result record exists, the step 3 is entered, and if not, the step 4 is entered;
3. returning a matching result according to the corresponding result record, acquiring the image of the user successfully matched, generating an interactive image and sending the interactive image to the corresponding client 300;
4. the server 100 inquires the information reported by the client 300 (the first user and the second user), if no corresponding information exists, the step 5 is entered, and if no corresponding information exists, the step 6 is entered;
5. returning a result of the matching failure to the client 300 of the first user;
6. performing classification matching according to the reported information (taking IP address information, GPS information and account information as examples in the figure), and respectively performing matching of the IP address information, the GPS information and the user account information;
7. integrating classification matching results, judging whether matching is successful, if so, entering 8, and otherwise, returning to 5;
8. and recording the successfully matched result into a result record, then deleting the reported data of the successfully matched user, and ending the matching process.
Example two
Fig. 6 schematically shows a block diagram of an interactive device 600 according to the second embodiment of the present application, where the interactive device 600 may be divided into one or more program modules, and the one or more program modules are stored in a storage medium and executed by one or more processors to implement the second embodiment of the present application. The program modules referred to in the embodiments of the present application refer to a series of computer program instruction segments that can perform specific functions, and the following description will specifically describe the functions of the program modules in the embodiments.
As shown in fig. 6, the interactive apparatus 600 may include a receiving module 610, a determining module 620, an obtaining module 630, and an interacting module 640.
A receiving module 610, configured to receive first information reported by a first user and second information reported by N second users, where N is an integer, and the first information and the second information include information used to determine relative positions of the first user and the second users;
a determining module 620, configured to determine whether a third user exists according to the first information and the second information, where the third user is a second user located within a preset distance range of the first user;
an obtaining module 630, configured to, in a case where a third user exists, obtain an image of the first user as a first image, and obtain an image of the third user as a second image;
and an interactive module 640, configured to generate an interactive image according to the first image and the second image.
In an exemplary embodiment, the interaction device 600 further comprises a matching module and a query module (not shown), the matching module is configured to: performing user matching according to the first information and the second information, wherein the user matching comprises matching of the first user and the second user and matching between the second users; determining users with the distance between the users not larger than the preset distance range as successfully matched users, and recording the successfully matched result; and the query module is used for: querying the result, and in case the result does not include the first user, performing the step of determining whether a third user is present based on the first information and the second information.
In an exemplary embodiment, the first information and the second information include at least one of account information, IP address information, GPS information, WIFI information, and near field communication information.
In an exemplary embodiment, the determining module 620 is further configured to: and under the condition that the first information or the second information comprises account information, if the first information or the second information comprises the account information of the first user and the account information of at least one second user, determining that a third user exists, wherein the account information of the first user is acquired through the Bluetooth equipment of the second user, and the account information of the second user is acquired through the Bluetooth equipment of the first user.
In an exemplary embodiment, the interaction device 600 further comprises a storage module (not shown in the figure) for: storing users corresponding to the same IP address in a set data structure under the condition that the first information and the second information comprise IP address information; the determining module 620 is further configured to: in the case where the first user and the at least one second user exist in the same IP address, it is determined that a third user exists.
In an exemplary embodiment, the determining module 620 is further configured to: under the condition that the first information and the second information comprise GPS information, whether a second user located within a preset distance range of the first user exists is inquired by adopting a GeoHash algorithm according to the GPS information; in the case of presence, it is determined that a third user is present.
In an exemplary embodiment, the first information and the second information include at least two of account information, IP address information, GPS information, WIFI information, and near field communication information, and the interaction device 600 further includes a locking module (not shown in the figure) configured to: and determining whether a third user exists according to each information according to a preset sequence, and performing locking control on each determination process.
In an exemplary embodiment, the interaction device 600 further comprises a merging module (not shown in the figure) configured to: acquiring a sub-result determined according to each type of information; merging the sub-results to obtain merged results; and determining whether a third user exists according to the combination result.
EXAMPLE III
Fig. 7 is a hardware architecture diagram schematically illustrating a computer apparatus 700 adapted for the interactive method according to a third embodiment of the present application. The computer device 700 may be a device capable of automatically performing numerical calculations and/or data processing according to instructions set in advance or stored. For example, the server may be a rack server, a blade server, a tower server or a rack server (including an independent server or a server cluster composed of a plurality of servers), a gateway, and the like. As shown in fig. 7, the computer device 700 includes at least, but is not limited to: memory 710, processor 720, network interface 730 may be communicatively linked to each other via a system bus. Wherein:
the memory 710 includes at least one type of computer-readable storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the storage 710 may be an internal storage module of the computer device 700, such as a hard disk or memory of the computer device 700. In other embodiments, the memory 710 may also be an external storage device of the computer device 700, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like, provided on the computer device 700. Of course, the memory 710 may also include both internal and external memory modules of the computer device 700. In this embodiment, the memory 710 is generally used for storing an operating system and various application software installed on the computer device 700, such as program codes of the interactive method. In addition, the memory 710 may also be used to temporarily store various types of data that have been output or are to be output.
Processor 720 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 720 is generally configured to control overall operation of the computer device 700, such as performing control and processing related to data interaction or communication with the computer device 700. In this embodiment, processor 720 is configured to execute program codes stored in memory 710 or to process data.
The network interface 730 may include a wireless network interface or a wired network interface, and the network interface 730 is typically used to establish communication links between the computer device 700 and other computer devices. For example, the network interface 730 is used to connect the computer device 700 to an external terminal via a network, establish a data transmission channel and a communication link between the computer device 700 and the external terminal, and the like. The network may be a wireless or wired network such as an Intranet (Internet), the Internet (Internet), a Global System of Mobile communication (GSM), wideband Code Division Multiple Access (WCDMA), 4G network, 5G network, bluetooth (Bluetooth), wi-Fi (wireless fidelity), or the like.
It should be noted that fig. 7 only shows a computer device having components 710-730, but it should be understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead.
In this embodiment, the interaction method stored in the memory 710 can be further divided into one or more program modules and executed by one or more processors (in this embodiment, the processor 720) to complete the embodiments of the present application.
Example four
Embodiments of the present application also provide a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the interaction method in the embodiments.
In this embodiment, the computer-readable storage medium includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the computer readable storage medium may be an internal storage unit of the computer device, such as a hard disk or a memory of the computer device. In other embodiments, the computer readable storage medium may be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the computer device. Of course, the computer-readable storage medium may also include both internal and external storage devices of the computer device. In this embodiment, the computer-readable storage medium is generally used to store an operating system and various application software installed on the computer device, for example, the program code of the interaction method in the embodiment, and the like. Further, the computer-readable storage medium may also be used to temporarily store various types of data that have been output or are to be output.
It will be apparent to those skilled in the art that the modules or steps of the embodiments of the present application described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different from that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, embodiments of the present application are not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (11)

1. An interactive method, comprising:
receiving first information reported by a first user and second information reported by N second users, wherein N is an integer, and the first information and the second information comprise information used for determining the relative positions of the first user and the second users;
determining whether a third user exists according to the first information and the second information, wherein the third user is the second user located within a preset distance range of the first user;
acquiring an image of the first user as a first image and acquiring an image of the third user as a second image under the condition that the third user exists;
and generating an interactive image according to the first image and the second image.
2. The interactive method of claim 1, further comprising:
performing user matching according to the first information and the second information, wherein the user matching comprises matching between the first user and the second user and matching between the second users;
determining the users with the distance between the users not larger than the preset distance range as the users successfully matched, and recording the results of successful matching;
before the determining whether a third user exists according to the first information and the second information, the method further comprises:
and inquiring the result, and under the condition that the result does not comprise the first user, executing the step of determining whether a third user exists according to the first information and the second information.
3. The interactive method of claim 1 or 2, wherein the first information and the second information comprise at least one of account information, IP address information, GPS information, WIFI information, and near field communication information.
4. The interactive method of claim 3, wherein the determining whether a third user is present according to the first information and the second information comprises:
and under the condition that the first information or the second information comprises account information, if the first information or the second information comprises the account information of the first user and the account information of at least one second user, determining that the third user exists, wherein the account information of the first user is acquired through the Bluetooth equipment of the second user, and the account information of the second user is acquired through the Bluetooth equipment of the first user.
5. The interactive method of claim 3, wherein after receiving the first information reported by the first user and the second information reported by the N second users, the method further comprises:
storing users corresponding to the same IP address in a set data structure under the condition that the first information and the second information comprise the IP address information;
the determining whether a third user exists according to the first information and the second information includes:
and determining that a third user exists under the condition that the first user and at least one second user exist in the same IP address.
6. The interactive method of claim 3, wherein the determining whether a third user is present according to the first information and the second information comprises:
under the condition that the first information and the second information comprise GPS information, whether the second user located within a preset distance range of the first user exists is inquired by adopting a GeoHash algorithm according to the GPS information;
in the case of presence, it is determined that a third user is present.
7. The interactive method of claim 3, wherein the first information and the second information comprise at least two of the account information, IP address information, GPS information, WIFI information, and near field communication information, the method further comprising:
and determining whether a third user exists according to each type of information according to a preset sequence, and performing locking control on each determination process.
8. The interactive method of claim 7, further comprising, after determining whether a third user exists according to each of the information in the preset sequence and performing locking control for each determination, the steps of:
obtaining sub-results determined from each of the information;
merging the sub-results to obtain merged results;
and determining whether the third user exists according to the merging result.
9. An interactive device, comprising:
a receiving module, configured to receive first information reported by a first user and second information reported by N second users, where N is an integer, and the first information and the second information include information used to determine a relative position of the first user and the second user;
a determining module, configured to determine whether a third user exists according to the first information and the second information, where the third user is the second user located within a preset distance range of the first user;
the acquisition module is used for acquiring the image of the first user as a first image and acquiring the image of the third user as a second image under the condition that the third user exists;
and the interactive module is used for generating an interactive image according to the first image and the second image.
10. A computer arrangement comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor is adapted to carry out the steps of the interaction method according to any of claims 1 to 8 when executing the computer program.
11. A computer-readable storage medium, in which a computer program is stored which is executable by at least one processor to cause the at least one processor to perform the steps of the interaction method according to any one of claims 1 to 8.
CN202210743052.2A 2022-06-27 2022-06-27 Interaction method and device Pending CN115208849A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210743052.2A CN115208849A (en) 2022-06-27 2022-06-27 Interaction method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210743052.2A CN115208849A (en) 2022-06-27 2022-06-27 Interaction method and device

Publications (1)

Publication Number Publication Date
CN115208849A true CN115208849A (en) 2022-10-18

Family

ID=83577900

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210743052.2A Pending CN115208849A (en) 2022-06-27 2022-06-27 Interaction method and device

Country Status (1)

Country Link
CN (1) CN115208849A (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102724168A (en) * 2011-03-30 2012-10-10 腾讯科技(深圳)有限公司 A method and a device for pushing user information
CN104025625A (en) * 2011-10-24 2014-09-03 裵陈友 Method for providing location-based service for finding person using smart device
CN104580930A (en) * 2013-10-28 2015-04-29 腾讯科技(深圳)有限公司 Group photo taking method and system
CN104796468A (en) * 2015-04-14 2015-07-22 蔡宏铭 Method and system for realizing instant messaging of people travelling together and travel-together information sharing
WO2016124098A1 (en) * 2015-02-02 2016-08-11 阿里巴巴集团控股有限公司 Method and apparatus for recommending user information
CN106407213A (en) * 2015-07-31 2017-02-15 阿里巴巴集团控股有限公司 Geographic position-based information retrieval method, device and system
CN109923512A (en) * 2016-09-09 2019-06-21 上海海知智能科技有限公司 The system and method for human-computer interaction
CN110533899A (en) * 2018-05-11 2019-12-03 黄新莉 It is a kind of to shake the method and system called a taxi
CN112202970A (en) * 2020-09-28 2021-01-08 广东小天才科技有限公司 Friend making method, terminal equipment and computer readable storage medium
CN112604303A (en) * 2020-12-24 2021-04-06 南方科技大学 Game player matching method, device, equipment and storage medium
US20210127436A1 (en) * 2019-10-24 2021-04-29 Mastercard International Incorporated Contactless communication session initiation between devices
CN113395686A (en) * 2021-05-06 2021-09-14 深圳优美创新科技有限公司 Terminal device friend-making method, system, electronic device and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102724168A (en) * 2011-03-30 2012-10-10 腾讯科技(深圳)有限公司 A method and a device for pushing user information
CN104025625A (en) * 2011-10-24 2014-09-03 裵陈友 Method for providing location-based service for finding person using smart device
CN104580930A (en) * 2013-10-28 2015-04-29 腾讯科技(深圳)有限公司 Group photo taking method and system
WO2016124098A1 (en) * 2015-02-02 2016-08-11 阿里巴巴集团控股有限公司 Method and apparatus for recommending user information
CN104796468A (en) * 2015-04-14 2015-07-22 蔡宏铭 Method and system for realizing instant messaging of people travelling together and travel-together information sharing
CN106407213A (en) * 2015-07-31 2017-02-15 阿里巴巴集团控股有限公司 Geographic position-based information retrieval method, device and system
CN109923512A (en) * 2016-09-09 2019-06-21 上海海知智能科技有限公司 The system and method for human-computer interaction
CN110533899A (en) * 2018-05-11 2019-12-03 黄新莉 It is a kind of to shake the method and system called a taxi
US20210127436A1 (en) * 2019-10-24 2021-04-29 Mastercard International Incorporated Contactless communication session initiation between devices
CN112202970A (en) * 2020-09-28 2021-01-08 广东小天才科技有限公司 Friend making method, terminal equipment and computer readable storage medium
CN112604303A (en) * 2020-12-24 2021-04-06 南方科技大学 Game player matching method, device, equipment and storage medium
CN113395686A (en) * 2021-05-06 2021-09-14 深圳优美创新科技有限公司 Terminal device friend-making method, system, electronic device and storage medium

Similar Documents

Publication Publication Date Title
US11917037B2 (en) Methods, devices, and systems for determining a subset for autonomous sharing of digital media
US10341335B2 (en) Location determination for user authentication
CN108809956B (en) Authentication method based on micro service, access request forwarding method, device and system
US20190260839A1 (en) Method and system for predicting a geographic location of a network entity
US8639785B2 (en) Unsolicited cookie enabled contextual data communications platform
US8914864B1 (en) Temporary virtual identities in a social networking system
CN107040518B (en) Private cloud server login method and system
CN103686591A (en) Method and system for acquiring position information
CN106254319B (en) Light application login control method and device
CN113190778A (en) Business data pushing method, system, computer equipment and computer storage medium
CN113746857A (en) Login method, device, equipment and computer readable storage medium
CN111771197A (en) Information processing method, information processing device, program, and information processing terminal
CN114139135B (en) Equipment login management method, device and storage medium
CN108989312B (en) Authentication method and device based on geographic position
CN115208849A (en) Interaction method and device
CN105119977A (en) Method and system for information transmission based on geographic coordinates and time interval
CN113342811A (en) HBase table data processing method and device
KR20140111137A (en) Method, server and system for providing coupon of online game
EP3021082A1 (en) Method, server, terminal, system, and storage medium for displaying multiuser map
CN114051243B (en) Verification method, verification device, electronic equipment and storage medium
CN113472895B (en) System, method, and storage medium for providing service portal
CN116358558A (en) Navigation method and device of terminal equipment, electronic equipment and storage medium
CN117240485A (en) Data processing method and device, electronic equipment and storage medium
CN117879922A (en) Account verification method and device
CN116361752A (en) OAuth authorization information distribution method, system, computer equipment and storage medium

Legal Events

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