Disclosure of Invention
In view of this, embodiments of the present invention desirably provide a recommendation method, apparatus, and computer-readable storage medium, which are capable of determining a sports friend from users other than the social circle of the user and recommending the sports friend to the user.
The technical scheme of the embodiment of the invention is realized as follows:
the embodiment of the invention provides a recommendation method, which comprises the following steps:
when a second terminal is monitored within a preset position range of a moving first terminal, monitoring whether a user using the second terminal executes a specific shaking operation;
when monitoring that a user using the second terminal executes a specific shaking operation, acquiring a shaking frequency corresponding to the specific shaking operation executed by the second terminal;
matching the shaking frequency with the step frequency of a user using the first terminal to obtain a matching result;
when the matching result represents that the shaking frequency is matched with the step frequency, sending the motion related information of the user using the second terminal to the first terminal so as to recommend the user using the second terminal to the user using the first terminal; the motion-related information is used for a user using the first terminal to determine whether to use a user using the second terminal as a running appointment object.
In the foregoing solution, the monitoring whether the user using the second terminal performs a specific shaking operation includes:
monitoring whether a user using the second terminal performs shaking operation;
when monitoring that a user using the second terminal executes shaking operation, receiving a first image sent by the second terminal; the first image is a display interface of the second terminal, which is obtained when the second terminal monitors the specific shaking operation;
comparing the first image with a preset image to obtain a comparison result;
when the comparison result represents that the first image is different from a preset image, determining that a user using the second terminal executes a specific shaking operation; and when the comparison result indicates that the first image is the same as a preset image, determining that a user using the second terminal does not execute a specific shaking operation.
In the foregoing solution, when the matching result indicates that the shake frequency matches the step frequency, sending the motion-related information of the user using the second terminal to the first terminal, includes:
acquiring the current position information of a user using the first terminal;
sending the location information to the second terminal; the position information is used for determining whether the user using the second terminal is a target recommendation friend of the user using the first terminal;
receiving the determination information sent by the first terminal; the determination information represents that the user using the second terminal determines to be the target recommendation friend of the user using the first terminal;
and sending the motion related information of the user using the second terminal to the first terminal.
In the foregoing solution, before the sending the motion-related information of the user using the second terminal to the first terminal, the method further includes:
acquiring relevant recommendation information of a user using the second terminal; the related recommendation information at least represents identity information of a user using the second terminal, evaluation information of the mobile friend on the user using the second terminal, and the number of times of adding the mobile friend to the first terminal user;
determining a recommendation score of a user using the second terminal by using the related recommendation information; the recommendation score represents whether a user using the second terminal is suitable for being used as a recommended motion friend or not;
judging whether the recommendation score is larger than a preset threshold value or not;
and when the recommendation score is determined to be larger than the preset threshold value, sending the motion related information of the user using the second terminal to the first terminal.
In the foregoing solution, the sending the motion-related information of the user using the second terminal to the first terminal includes:
calculating a first similarity based on the identification information of the user using the first terminal and the identification information of the user using the second terminal;
calculating a second similarity based on the historical movement record of the user using the first terminal and the historical movement record of the user using the second terminal;
judging whether the sum of the first similarity and the second similarity is greater than a preset similarity threshold value;
and when the sum of the first similarity and the second similarity is determined to be greater than a preset similarity threshold, sending the motion related information of the user using the second terminal to the first terminal.
An embodiment of the present invention provides a recommendation apparatus, where the apparatus includes:
the monitoring module is used for monitoring whether a user using a second terminal executes a specific shaking operation or not when the second terminal is monitored within a preset position range of a moving first terminal;
the acquisition module is used for acquiring the shaking frequency corresponding to the specific shaking operation executed by the second terminal when the specific shaking operation executed by the user using the second terminal is monitored;
the matching module is used for matching the shaking frequency with the step frequency of the user using the first terminal to obtain a matching result;
the recommending module is used for sending the motion related information of the user using the second terminal to the first terminal when the matching result represents that the shaking frequency is matched with the step frequency, so that the user using the second terminal is recommended to the user using the first terminal; the motion-related information is used for a user using the first terminal to determine whether to use a user using the second terminal as a running appointment object.
In the above scheme, the monitoring module is specifically configured to monitor whether a user using the second terminal performs a shaking operation; when monitoring that a user using the second terminal executes shaking operation, receiving a first image sent by the second terminal; the first image is a display interface of the second terminal, which is obtained when the second terminal monitors the specific shaking operation; comparing the first image with a preset image to obtain a comparison result; when the comparison result represents that the first image is different from a preset image, determining that a user using the second terminal executes a specific shaking operation; and when the comparison result indicates that the first image is the same as a preset image, determining that a user using the second terminal does not execute a specific shaking operation.
In the above scheme, the recommending module is specifically configured to obtain the current location information of the user using the first terminal; sending the location information to the second terminal; the position information is used for determining whether the user using the second terminal is a target recommendation friend of the user using the first terminal; receiving the determination information sent by the first terminal; the determination information represents that the user using the second terminal determines to be the target recommendation friend of the user using the first terminal; and sending the motion related information of the user using the second terminal to the first terminal.
An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of any of the recommendation methods described above.
An embodiment of the present invention provides a recommendation apparatus, including: a memory, a processor, and a computer program stored on the memory and executable on the processor;
wherein the processor is configured to execute the steps of any of the recommendation methods described above when running the computer program.
According to the recommendation method, the recommendation device and the computer-readable storage medium provided by the embodiment of the invention, when a second terminal is monitored in a preset position range of a moving first terminal, whether a user using the second terminal executes a specific shaking operation is monitored; when monitoring that a user using the second terminal executes a specific shaking operation, acquiring a shaking frequency corresponding to the specific shaking operation executed by the second terminal; matching the shaking frequency with the step frequency of a user using the first terminal to obtain a matching result; when the matching result represents that the shaking frequency is matched with the step frequency, sending the motion related information of the user using the second terminal to the first terminal so as to recommend the user using the second terminal to the user using the first terminal; the motion-related information is used for a user using the first terminal to determine whether to use a user using the second terminal as a running appointment object. In the embodiment of the invention, based on the matching result of the shaking frequency of the second terminal for executing the shaking operation and the step frequency of the user using the first terminal, the motion friend is recommended to the user using the first terminal. Obviously, the motion friend is not recommended to the user using the first terminal based on the social relationship of the user using the first terminal, but the motion friend is determined from other users except the social circle of the user using the first terminal, so that the social circle of the user using the first terminal is favorably expanded.
Detailed Description
In the embodiment of the invention, when a second terminal is monitored in a preset position range of a moving first terminal, whether a user using the second terminal executes a specific shaking operation is monitored; when monitoring that a user using the second terminal executes a specific shaking operation, acquiring a shaking frequency corresponding to the specific shaking operation executed by the second terminal; matching the shaking frequency with the step frequency of a user using the first terminal to obtain a matching result; when the matching result represents that the shaking frequency is matched with the step frequency, sending the motion related information of the user using the second terminal to the first terminal so as to recommend the user using the second terminal to the user using the first terminal; the motion-related information is used for a user using the first terminal to determine whether to use a user using the second terminal as a running appointment object.
So that the manner in which the features and aspects of the embodiments of the present invention can be understood in detail, a more particular description of the embodiments of the invention, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings.
As shown in fig. 1, a recommendation method according to an embodiment of the present invention is described in detail, and the recommendation method according to the embodiment is applied to a server side, and includes the following steps:
step 101: when a second terminal is monitored within a preset position range of a moving first terminal, monitoring whether a user using the second terminal executes a specific shaking operation.
Here, the server monitors the process of the moving first terminal, including the following cases:
firstly, in the movement process of a user using the first terminal, the first terminal sends movement data acquired by a sensor to a server, and the server judges whether the user using the first terminal is moving or not according to the received movement data; when it is determined that a user using the first terminal is moving, it is determined that the moving first terminal is monitored.
The motion data may include a position of the user, a motion pattern of the user, a motion time, and the like. Modes of motion include, but are not limited to, running, walking, and the like.
Secondly, the server monitors the current positions of a plurality of users in a preset user list, and when the position of the user is monitored to be changed, the terminal used by the user with the changed position is used as the first terminal in motion.
The server may obtain the current location of the user through at least one of the beidou, the Global Positioning System (GPS), the glonass, and the galileo.
After monitoring the moving first terminal, the server may determine, based on the current positions of the other monitored terminals and the current position of the moving first terminal, a second terminal whose distance from the moving first terminal is smaller than a preset distance threshold. The preset distance threshold value can be adjusted according to actual conditions.
It should be noted that the current exercise status of the user using the second terminal is not limited, that is, the user using the second terminal may be in exercise, such as running or exercising or walking using fitness equipment, or not in exercise, such as resting on the spot, etc.
The server can send the monitored current positions of the first terminal and the second terminal to the second terminal; the second terminal can display the current position of the second terminal and the current position of the first terminal in a map interface, so that a user using the second terminal can view the current position of the second terminal and the current position of the user using the first terminal in the map interface. Wherein, the user using the second terminal and the user using the first terminal can use the same sports APPlication (APP ), for example, both the user using the second terminal and the user using the first terminal use a mini-tilt running APP; different types of sports APPs may also be used, for example, the user using the second terminal uses a mikuri-good running APP, and the user using the first terminal uses a gurdong APP, but the two different types of APPs have an association relationship, for example, data sharing may be implemented, which is not limited in this embodiment.
The server can also send a shaking monitoring starting message to the second terminal; after receiving the shaking monitoring start message, the second terminal may generate a prompt message, such as "try to shake the terminal"; the prompt message is used for prompting a user using the second terminal to shake the second terminal.
In one embodiment, the monitoring whether a user using the second terminal performs a specific shaking operation includes: monitoring whether a user using the second terminal performs shaking operation; when monitoring that a user using the second terminal executes shaking operation, receiving a first image sent by the second terminal; the first image is a display interface of the second terminal, which is obtained when the second terminal monitors the specific shaking operation; comparing the first image with a preset image to obtain a comparison result; when the comparison result represents that the first image is different from a preset image, determining that a user using the second terminal executes a specific shaking operation; and when the comparison result indicates that the first image is the same as a preset image, determining that a user using the second terminal does not execute a specific shaking operation.
When a user using the second terminal actively shakes the second terminal, the second terminal can send attitude information of the second terminal, which is acquired by using a gyroscope sensor, to the server; the server may determine whether a user using the second terminal performs a shaking operation based on the posture information. The attitude information may include, but is not limited to, rotational angular velocity during shaking.
For example, the server may compare the rotational angular velocity when shaking with the rotational angular velocity when not shaking, and determine that the monitored user using the second terminal performs the shaking operation when determining that the rotational angular velocity when shaking is different from the rotational angular velocity when not shaking.
Considering that the user may be prompted to shake the terminal by "shake-shake" in the WeChat, the server may further determine whether the shake operation is a specific shake operation after determining that the user using the second terminal has performed the shake operation.
When the server determines whether the shaking operation is a specific shaking operation, the following conditions may be included:
firstly, the server receives a first image sent by the second terminal; the first image is a display interface of the second terminal, which is obtained when the second terminal monitors the specific shaking operation; determining that a specific shaking operation is performed by a user using the second terminal when the first image is not a display image of a WeChat shake;
secondly, when monitoring that the user using the second terminal executes the shaking operation, the server may further send a prompt message to the second terminal, such as "whether the terminal has been shaken"; receiving a confirmation operation aiming at the prompt message sent by the second terminal; and determining that a specific shaking operation is performed by the user using the second terminal in response to the determination operation.
Step 102: when the fact that a user using the second terminal executes a specific shaking operation is monitored, a shaking frequency corresponding to the specific shaking operation executed by the second terminal is obtained.
When the second terminal acquires the shaking frequency, the shaking frequency can be determined based on the direction data of the second terminal in a static state and a shaking state.
Or, the second terminal may determine the shaking frequency based on acceleration data of the second terminal in a stationary state and a shaking state.
For example, the second terminal may obtain, through a direction sensor, direction data, such as an angle, an orientation, and the like, of the second terminal in a stationary state and a shaking state; taking an angle as an example, the server determines the number of times of changing the angle data based on the angle data of the second terminal in the stationary state and the shaking state, and assumes that when the frequency of changing the angle data is determined to be 1/1 second, the shaking frequency is determined to be 1/1 second.
The second terminal can acquire acceleration data of the second terminal in a static state and a shaking state through an acceleration sensor; and judging the number of times of changing the acceleration data based on the acceleration data of the second terminal in the static state and the shaking state, and assuming that when the frequency of changing the acceleration data is determined to be 1 time/1 second, the shaking frequency is determined to be 1 time/1 second.
Step 103: and matching the shaking frequency with the step frequency of the user using the first terminal to obtain a matching result.
The step frequency refers to the number of steps of the user using the first terminal in a unit time, in other words, the step frequency is the frequency of steps of the user using the first terminal during exercise.
When a user using the first terminal starts running, the first terminal can record the running step frequency of the user periodically; the first terminal may upload the recorded stride frequency to the server; after receiving the step frequency uploaded by the first terminal, the server may associate and store the identification information of the user using the first terminal with the received step frequency.
Considering that the step frequency of the user using the first terminal may change during the exercise process, the server may further obtain the current time after receiving the step frequency uploaded by the first terminal; and establishing the corresponding relation among the time, the step frequency and the user identification.
Considering that if the step frequency of the user using the first terminal changes too fast, the success rate of matching the shaking frequency with the step frequency is reduced, so that in order to ensure that the step frequency of the user using the first terminal does not change during the movement, the server may send a prompt message to the first terminal; the prompting message is used for prompting a user using the first terminal to keep a constant step frequency in the process of movement. In this way, the server can obtain a stable stride frequency of the user using the first terminal.
Matching the shaking frequency with the step frequency of the user using the first terminal, wherein the following conditions are included:
firstly, determining the current time for acquiring the shaking frequency; searching the step frequency corresponding to the current time of the user using the first terminal from the pre-stored corresponding relation among the current time, the step frequency and the user identification; comparing the searched step frequency with the obtained shaking frequency to obtain a comparison result; when the comparison result represents that the found step frequency is the same as the obtained shaking frequency, obtaining a matching result of the shaking frequency and the step frequency; or when the comparison result represents that the difference value between the searched step frequency and the obtained shaking frequency is within a preset numerical range, obtaining a matching result of the shaking frequency and the step frequency.
And secondly, searching for a step frequency which corresponds to a user using the first terminal and is the same as the shaking frequency from a pre-stored corresponding relation between the step frequency and a user identifier based on the obtained shaking frequency, and obtaining a matching result of the shaking frequency and the step frequency when the step frequency which is the same as the shaking frequency is searched.
In order to improve the matching success rate, when the shaking frequency is not matched with the step frequency of the user using the first terminal, for example, when the difference between the shaking frequency and the step frequency of the user using the first terminal is not within a preset value range, the server may send a prompt message to the first terminal based on the difference between the shaking frequency and the step frequency, where the prompt message is used to instruct the user using the first terminal to adjust the step frequency of the user. Therefore, the server can obtain a matching result of the shaking frequency and the step frequency according to the adjusted step frequency and the obtained shaking frequency.
Step 104: and when the matching result represents that the shaking frequency is matched with the step frequency, sending the motion related information of the user using the second terminal to the first terminal so as to recommend the user using the second terminal to the user using the first terminal.
Wherein the motion-related information is used for a user using the first terminal to determine whether to use a user using the second terminal as a running appointment object.
When the matching result indicates that the shaking frequency is matched with the step frequency, whether the user using the second terminal wants to be a target recommendation friend of the user using the first terminal or not can be inquired.
In an embodiment, the sending, to the first terminal, motion-related information of a user using the second terminal when the matching result indicates that the shake frequency matches the step frequency includes: acquiring the current position information of a user using the first terminal; sending the location information to the second terminal; the position information is used for determining whether the user using the second terminal is a target recommendation friend of the user using the first terminal; receiving the determination information sent by the first terminal; the determination information represents that the user using the second terminal determines to be the target recommendation friend of the user using the first terminal; and sending the motion related information of the user using the second terminal to the first terminal.
The user using the second terminal may determine whether or not to wish to recommend a friend as a target of the user using the first terminal based on a distance between the user using the first terminal and the user using the second terminal.
For example, the locations of the user using the first terminal and the user using the second terminal are simultaneously displayed in the map interface of the second terminal, and the distance between the two is displayed, so that the user using the second terminal can determine whether to wish to recommend a friend as a target of the user using the first terminal based on the displayed distance.
In an embodiment, before the sending the motion-related information of the user using the second terminal to the first terminal, the method further includes: acquiring relevant recommendation information of a user using the second terminal; the related recommendation information at least represents identity information of a user using the second terminal, evaluation information of the mobile friend on the user using the second terminal, and the number of times of adding the mobile friend to the first terminal user; determining a recommendation score of a user using the second terminal by using the related recommendation information; the recommendation score represents whether a user using the second terminal is suitable for being used as a recommended motion friend or not; judging whether the recommendation score is larger than a preset threshold value or not; and when the recommendation score is determined to be larger than the preset threshold value, sending the motion related information of the user using the second terminal to the first terminal.
When the matching result shows that the shaking frequency is matched with the step frequency, the recommendation score of the user using the second terminal can be calculated through the server so as to determine whether the user using the second terminal meets the recommendation requirement.
For example, when the shaking frequencies of at least two terminals are matched with the step frequency, the recommendation scores of the at least two terminals can be respectively calculated, and the calculated recommendation scores are sorted to obtain a sorting result; and recommending the user corresponding to the ranking result with the recommendation score larger than the preset threshold value to the user using the first terminal.
In one embodiment, the motion-related information comprises at least: using current location information, identification information, and a historical movement record of a user of the second terminal; the sending the motion-related information of the user using the second terminal to the first terminal to recommend the user using the second terminal to the user using the first terminal includes: acquiring motion-related information of a user using the second terminal; and sending the motion related information to the first terminal so as to recommend the user using the second terminal to the user using the first terminal.
In order to enable the user using the first terminal to know more information of the target recommended friends so as to establish a social relationship between the user using the first terminal and the target recommended friends, when the target recommended friends are recommended to the user using the first terminal, the current position information, the identification information, the historical movement record, the good movement items and the like of the target recommended friends can be obtained.
For example, if the recommendation score corresponding to the user using the second terminal is higher than a recommendation score threshold preset by the user using the first terminal, the server may obtain current location information, user information, historical running records, and good sports items of the user using the second terminal; and sending the acquired current position information, user information and historical running records of the user using the second terminal to the user using the first terminal so as to recommend the runner to the user using the first terminal. The historical running records comprise historical running routes, historical running step frequency, historical running distance and the like, and the good sports item is running.
In one embodiment, the sending motion-related information of the user using the second terminal to the first terminal includes: calculating a first similarity based on the identification information of the user using the first terminal and the identification information of the user using the second terminal; calculating a second similarity based on the historical movement record of the user using the first terminal and the historical movement record of the user using the second terminal; judging whether the sum of the first similarity and the second similarity is greater than a preset similarity threshold value; and when the sum of the first similarity and the second similarity is determined to be greater than a preset similarity threshold, sending the motion related information of the user using the second terminal to the first terminal.
In order to improve the interest of the user using the first terminal in the target recommended friends, before the server recommends the target recommended friends to the user using the first terminal, similarity matching can be further performed between the target recommended friends and the user using the first terminal, so as to determine whether the sports interests of the two users are similar.
For example, after acquiring the user information and the historical running record of the user using the second terminal, the server may acquire the user information and the historical running record of the user using the first terminal. If the sum of the similarity is greater than a preset similarity threshold value, the server can send the current position information, the user information and the historical running record of the user using the second terminal to the user using the first terminal so as to recommend the runner to the user using the first terminal; if the sum of the similarity is less than or equal to a preset similarity threshold, the server may not send the current location information, the user information, and the historical running record of the user using the second terminal to the user using the first terminal, that is, the server does not recommend friends running to the user using the first terminal.
By adopting the technical scheme of the embodiment of the invention, the sports friend is recommended to the user using the first terminal based on the matching result of the shaking frequency of the second terminal for executing the shaking operation and the step frequency of the user using the first terminal. Obviously, the motion friend is not recommended to the user using the first terminal based on the social relationship of the user using the first terminal, but the motion friend is determined from other users except the social circle of the user using the first terminal, so that the social circle of the user using the first terminal is favorably expanded.
Based on the recommendation method provided by each embodiment of the present application, the present application further provides a recommendation apparatus, as shown in fig. 2, the apparatus includes:
the monitoring module 21 is configured to monitor whether a user using a second terminal performs a specific shaking operation when the second terminal is monitored within a preset position range of a moving first terminal;
an obtaining module 22, configured to obtain, when it is monitored that a user using the second terminal performs a specific shaking operation, a shaking frequency corresponding to the specific shaking operation performed by the second terminal;
the matching module 23 is configured to match the shaking frequency with a step frequency of a user using the first terminal to obtain a matching result;
and the recommending module 24 is configured to send the motion-related information of the user using the second terminal to the first terminal when the matching result indicates that the shaking frequency matches the step frequency, so as to recommend the user using the second terminal to the user using the first terminal.
Wherein the motion-related information is used for a user using the first terminal to determine whether to use a user using the second terminal as a running appointment object.
In an embodiment, the monitoring module 21 is specifically configured to monitor whether a user using the second terminal performs a shake operation; when monitoring that a user using the second terminal executes shaking operation, receiving a first image sent by the second terminal; the first image is a display interface of the second terminal, which is obtained when the second terminal monitors the specific shaking operation; comparing the first image with a preset image to obtain a comparison result; when the comparison result represents that the first image is different from a preset image, determining that a user using the second terminal executes a specific shaking operation; and when the comparison result indicates that the first image is the same as a preset image, determining that a user using the second terminal does not execute a specific shaking operation.
It should be noted that the current exercise status of the user using the second terminal is not limited, that is, the user using the second terminal may be in exercise, such as running or exercising or walking using fitness equipment, or not in exercise, such as resting on the spot, etc.
Wherein, the user using the second terminal and the user using the first terminal can use the same sports APPlication (APP ), for example, both the user using the second terminal and the user using the first terminal use a mini-tilt running APP; different types of sports APPs may also be used, for example, the user using the second terminal uses a mikuri-good running APP, and the user using the first terminal uses a gurdong APP, but the two different types of APPs have an association relationship, for example, data sharing may be implemented, which is not limited in this embodiment.
In an embodiment, the recommending module 24 is specifically configured to obtain information of a current location of a user using the first terminal; sending the location information to the second terminal; the position information is used for determining whether the user using the second terminal is a target recommendation friend of the user using the first terminal; receiving the determination information sent by the first terminal; the determination information represents that the user using the second terminal determines to be the target recommendation friend of the user using the first terminal; and sending the motion related information of the user using the second terminal to the first terminal.
In one embodiment, the apparatus further comprises:
the determining module is used for acquiring relevant recommendation information of a user using the second terminal; the related recommendation information at least represents identity information of a user using the second terminal, evaluation information of the mobile friend on the user using the second terminal, and the number of times of adding the mobile friend to the first terminal user; determining a recommendation score of a user using the second terminal by using the related recommendation information; the recommendation score represents whether a user using the second terminal is suitable for being used as a recommended motion friend or not; judging whether the recommendation score is larger than a preset threshold value or not; and when the recommendation score is determined to be larger than the preset threshold value, sending the motion related information of the user using the second terminal to the first terminal.
In an embodiment, the recommending module 24 is specifically configured to obtain motion-related information of a user using the second terminal; and sending the motion related information to the first terminal so as to recommend the user using the second terminal to the user using the first terminal.
The motion-related information comprises at least: using current location information, identification information, and a historical movement record of a user of the second terminal.
In one embodiment, the apparatus further comprises:
a calculation module configured to calculate a first similarity based on identification information of a user using the first terminal and identification information of a user using the second terminal; calculating a second similarity based on the historical movement record of the user using the first terminal and the historical movement record of the user using the second terminal; judging whether the sum of the first similarity and the second similarity is greater than a preset similarity threshold value; and when the sum of the first similarity and the second similarity is determined to be greater than a preset similarity threshold, sending the motion related information to the first terminal.
It should be noted that: in the recommendation device provided in the above embodiment, when recommending sports friends, only the division of the program modules is used as an example, and in practical applications, the processing allocation may be completed by different program modules according to needs, that is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the recommendation device and the recommendation method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments in detail and are not described herein again.
In practical applications, the obtaining module 22 is implemented by a network interface located on the recommending device; the monitoring module 21, the matching module 23, the recommending module 24, the determining module, and the calculating module can be implemented by a Processor located on the recommending device, such as a Central Processing Unit (CPU), a microprocessor Unit (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like.
Fig. 3 is a schematic structural diagram of a recommendation device of the present invention, and the recommendation device 300 shown in fig. 3 is disposed on a server and includes: at least one processor 301, memory 302, user interface 303, at least one network interface 304. The various components in the recommendation device 300 are coupled together by a bus system 305. It will be appreciated that the bus system 305 is used to enable communications among the components connected. The bus system 305 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 305 in fig. 3.
The user interface 303 may include, among other things, a display, a keyboard, a mouse, a trackball, a click wheel, a key, a button, a touch pad, or a touch screen.
The memory 302 in embodiments of the present invention is used to store various types of data to support the operation of the recommendation device 300. Examples of such data include: any computer programs for operating on the recommendation device 300, such as an operating system 3021 and application programs 3022; operating system 3021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and for processing hardware-based tasks. The application programs 3022 may include various application programs for implementing various application services. A program implementing the method of an embodiment of the present invention may be included in the application program 3022.
The method disclosed in the above embodiments of the present invention may be applied to the processor 301, or implemented by the processor 301. The processor 301 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 301. The processor 301 described above may be a general purpose processor, a digital signal processor, or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. Processor 301 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 302, and the processor 301 reads the information in the memory 302 and performs the steps of the aforementioned methods in conjunction with its hardware.
It will be appreciated that the memory 302 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 302 described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
Based on the recommendation method provided in the embodiments of the present application, the present application further provides a computer-readable storage medium, which is shown in fig. 3 and may include: a memory 302 for storing a computer program executable by the processor 301 of the recommendation device 300 for performing the steps of the method as described above. The computer readable storage medium may be Memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface Memory, optical disk, or CD-ROM.
It should be noted that: the technical schemes described in the embodiments of the present invention can be combined arbitrarily without conflict.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.