Content recommendation method, electronic device and computer-readable storage medium
Through the geographical location and gesture operation of the electronic device, the sliding distance is used to update the content recommendation, which solves the problem of low content recommendation efficiency in the existing technology and realizes the rapid selection and efficient screening of personalized recommendations.
Patent Information
- Application Number
- CN201911126299.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-11-15
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2040-03-19
AI Technical Summary
Existing content recommendation methods rely on users to manually fill in or select, which results in low selection efficiency and cannot meet users' needs for personalized recommendations.
Through the geographical location and gesture operation of the electronic device, the sliding distance is used to update the displayed content, automatically filter the recommended content within the geographical location, simplify the operation steps and improve the selection efficiency.
It enables users to quickly select recommended content through sliding operations, avoids manually filling in filter conditions, and improves the efficiency of content selection and personalized recommendation effects.
Smart Images

Figure CN112818259B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a content recommendation method, an electronic device, and a computer-readable storage medium. Background Art
[0002] Almost every content platform for end users updates a lot of content every day. Faced with numerous platforms and massive amounts of content, it is impossible to recommend all of them to users within the limited screen space. Different users have different choices and preferences for recommended content, and users are increasingly pursuing convenience and speed. They do not want to, and do not have, much time to spend searching for content. Based on this, more and more applications are beginning to focus on personalized screening of recommended content.
[0003] Currently, the recommended content screening through LBS technology is only done by users manually filling in or selecting the distance, that is, users can fill in or select the distance, type, and features to filter out the content they want to browse. The mode is still very primitive and the selection efficiency is not high. Therefore, how to improve the selection efficiency of recommended content is a problem that technicians in this field are studying. Summary of the invention
[0004] The embodiments of the present application disclose a content recommendation method, an electronic device, and a computer-readable storage medium, which can select the geographical location of recommended content through gesture operation based on the geographical location of the electronic device, simplify the operation steps, and improve the selection efficiency.
[0005] In a first aspect, an embodiment of the present application provides a content recommendation method, the method comprising:
[0006] The electronic device displays a first interface;
[0007] The electronic device receives a target sliding operation input by a user on the first interface, and obtains a sliding distance of the target sliding operation, where the target sliding operation is used to update display content of the first interface;
[0008] When the sliding distance of the target sliding operation meets a preset condition, the electronic device determines the target distance range corresponding to the target sliding operation according to the preset actual distance range corresponding to the sliding operation;
[0009] The electronic device displays the target recommended content within the target distance range on the first interface according to a preset rule.
[0010] In implementing an embodiment of the present application, an electronic device displays a first interface and then receives a target sliding operation of a user on the first interface, wherein the target sliding operation is used to update the display content of the first interface. When the target sliding operation satisfies a preset condition, the electronic device updates the display content of the first interface by the square root of the sliding distance of the target sliding operation, wherein the distance between the geographical location corresponding to the target recommended content in the display content of the first interface and the geographical location of the electronic device is within a target distance range, and the target distance range has a corresponding relationship with the sliding distance of the sliding operation, that is, the electronic device selects the required recommended content by determining the sliding distance of the target sliding operation of the user on the first interface, thereby avoiding the step of manually filling in the screening conditions, simplifying the operation steps, and improving the selection efficiency.
[0011] Based on the first aspect, in one of the optional implementations, the preset condition includes that the sliding distance of the target sliding operation exceeds a first threshold. This implementation describes that only under the preset condition that the sliding distance of the target sliding operation exceeds the first threshold, the electronic device can update the display content of the first interface according to the sliding distance of the target sliding operation, providing the required conditions for updating the display content by sliding distance, preventing user misoperation, and improving operation efficiency.
[0012] Based on the first aspect, in one optional implementation manner, the target distance range is one of a plurality of preset distance ranges, and the plurality of preset distance ranges are defined by at least one threshold value, and the at least one threshold value is predefined or preconfigured. In this implementation manner, the plurality of preset distance ranges are defined by a user predefining or preconfiguring at least one threshold value, that is, the user can select a preset distance range in a personalized manner.
[0013] Based on the first aspect, in one optional implementation manner, the electronic device obtains the sliding distance of the target sliding operation, including:
[0014] The electronic device determines the position coordinates of the first position and the second position of the target sliding operation on the first interface; wherein the first position is the downward line position of the first interface when the target sliding operation meets the preset condition, and the second position is the downward line position of the first interface when the target sliding operation ends; or, the first position is the downward line position of the first interface when the target sliding operation starts, and the second position is the downward line position of the first interface when the target sliding operation ends; the electronic device determines the sliding distance of the first position and the second position in the target direction according to the position coordinates of the first position and the second position. This implementation method updates the display content of the first interface by determining the sliding distance after the target sliding operation meets the preset condition, so that the user can intuitively see the selection of the distance range, thereby improving the user's operation efficiency; and by determining the sliding distance in the target direction from the start to the end of the target sliding operation, the display content of the first interface is updated, thereby avoiding the problem of no sliding space due to the limited display area of the display screen of the electronic device, thereby improving the user's operation efficiency. .
[0015] Based on the first aspect, in one of the optional implementations, the target recommended content is one or more recommended contents determined based on a target distance range of the electronic device; and the one or more recommended contents are published by a terminal whose geographical location is within the target distance range of the electronic device.
[0016] Based on the first aspect, in one of the optional implementations, the target recommended content is one or more recommended content published by terminals within the target distance range whose geographical distance from the electronic device is within the target distance range and are searched from near to far within the target distance range.
[0017] Based on the first aspect, in one optional implementation, the method further includes: when the target sliding operation does not meet the preset condition, the electronic device updates the display content of the first interface according to the target sliding operation. This implementation provides a function of updating the recommended content when the target sliding operation does not meet the preset condition.
[0018] In a second aspect, an embodiment of the present application provides a content recommendation device, the device comprising:
[0019] A first display unit, used to display a first interface;
[0020] a receiving unit, configured to receive a target sliding operation input by a user on the first interface, and obtain a sliding distance of the target sliding operation, wherein the target sliding operation is used to update the display content of the first interface;
[0021] a determining unit, configured to determine a target distance range corresponding to the target sliding operation according to a preset actual distance range corresponding to the sliding operation when the sliding distance of the target sliding operation meets a preset condition;
[0022] The second display unit is used to display the target recommendation content included in the target distance range on the first interface according to a preset rule.
[0023] Based on the second aspect, in one optional implementation manner, the preset condition includes that a sliding distance of the target sliding operation exceeds a first threshold.
[0024] Based on the second aspect, in one optional implementation manner, the target distance range is one of a plurality of preset distance ranges, the plurality of preset distance ranges are defined by at least one threshold, and the at least one threshold is predefined or preconfigured.
[0025] Based on the second aspect, in one optional implementation manner, the receiving unit specifically includes:
[0026] The determining unit is further used to determine the position coordinates of a first position and a second position of the target sliding operation on the first interface; wherein the first position is the downward sliding line position of the first interface when the target sliding operation meets the preset condition, and the second position is the downward sliding line position of the first interface when the target sliding operation ends; or, the first position is the downward sliding line position of the first interface when the target sliding operation starts, and the second position is the downward sliding line position of the first interface when the target sliding operation ends;
[0027] The determining unit is further configured to determine a sliding distance between the first position and the second position in a target direction according to the position coordinates of the first position and the second position.
[0028] Based on the second aspect, in one of the optional implementations, the target recommended content is one or more recommended contents determined based on a target distance range of the electronic device; and the one or more recommended contents are published by a terminal whose geographical location is within the target distance range of the electronic device.
[0029] Based on the second aspect, in one of the optional implementations, the target recommended content is one or more recommended content published by terminals within the target distance range whose geographical distance from the electronic device is within the target distance range and are searched from near to far within the target distance range.
[0030] Based on the second aspect, in one optional implementation manner, the device further includes:
[0031] An updating unit is used to update the display content of the first interface according to the target sliding operation by the electronic device when the target sliding operation does not meet the preset condition.
[0032] It should be noted that the implementation method and corresponding beneficial effects of the second aspect can refer to the description of the first aspect and the corresponding implementation method, and will not be repeated here.
[0033] In a third aspect, an embodiment of the present application provides an electronic device, comprising one or more processors, a memory and one or more display screens; the memory, the display screen and the one or more processors are coupled, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute the method described in the first aspect above.
[0034] It should be noted that the implementation method and corresponding beneficial effects of the third aspect can refer to the description of the first aspect and the corresponding implementation method, and will not be repeated here.
[0035] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores program instructions, and when the program instructions are executed by a processor, the processor executes the method described in the first aspect.
[0036] It should be noted that the implementation method and corresponding beneficial effects of the fourth aspect can refer to the description of the first aspect and the corresponding implementation method, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments of the present application or the background technology are briefly introduced below.
[0038] Figure 1 It is a system architecture diagram of a content recommendation method provided by an embodiment of the present application;
[0039] Figure 2 It is a flowchart of a content recommendation method provided in an embodiment of the present application;
[0040] Figure 3 It is a scenario diagram of a content recommendation method provided in an embodiment of the present application;
[0041] Figure 4 This is a scenario diagram of another content recommendation method provided by an embodiment of the present application;
[0042] Figure 5a-5c This is a scenario diagram of another content recommendation method provided by an embodiment of the present application;
[0043] Figure 6a-6c This is a scenario diagram of another content recommendation method provided by an embodiment of the present application;
[0044] Figure 7 This is a scenario diagram of another content recommendation method provided by an embodiment of the present application;
[0045] Figure 8 This is a scenario diagram of another content recommendation method provided by an embodiment of the present application;
[0046] Fig. 9 is a structural diagram of another content recommendation device provided in an embodiment of the present application;
[0047] Fig.10 It is a structural diagram of a content recommendation device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0048] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0049] It should be understood that the terms used in this specification of the application are only for the purpose of describing specific embodiments and are not intended to limit the application. Mentioning "embodiment" in the specification of the application means that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment of the present application. The phrase appears in various positions in the specification and does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments. The terms "device", "unit", "system" and the like used in this specification are used to represent computer-related entities, hardware, firmware, a combination of hardware and software, software, or software in execution. For example, a device can be, but is not limited to, a processor, a data processing platform, a computing device, a computer, 2 or more computers, etc.
[0050] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0051] First, some terms in this application are explained to facilitate understanding by those skilled in the art.
[0052] (1) LBS: Location Based Service, which obtains the location information (geographic coordinates, or geodetic coordinates) of mobile terminal users through the radio communication network (such as GSM network, CDMA network) of telecommunications mobile operators or external positioning methods (such as GPS). LBS has two meanings: first, to determine the geographical location of the mobile device or user; second, to provide various information services related to location. It refers to various service systems related to positioning, referred to as "positioning services", and another name is MPS-Mobile Position Services, also known as "mobile positioning service" system. For example, find the current geographical location of the mobile phone user, and then find the name and address of hotels, cinemas, libraries, gas stations, etc. within 1 km of the current location of the mobile phone user within the 6,340 square kilometers of Shanghai. Therefore, LBS is to use the Internet or wireless network to complete the two major functions of positioning and service between fixed or mobile users.
[0053] In order to better understand the content recommendation method, device and computer-readable storage medium provided by the embodiments of the present application, the system architecture of the content recommendation method of the embodiments of the present application is first described below. Figure 1 As shown, it is a schematic diagram of the system architecture of a content recommendation method provided in an embodiment of the present application, wherein:
[0054] The system architecture may include one or more servers (multiple servers may form a server cluster), and one or more electronic devices (or terminal devices), and the server and the local terminal form a system, wherein:
[0055] The server may include but is not limited to a backend server, a component server, a data processing server, etc. The server may communicate with multiple terminals through the Internet. The server provides operation prompt services for the terminals. The server needs to run corresponding server-side programs to provide corresponding operation prompt services, such as database services, data calculations, decision execution, etc.
[0056] The terminal can install and run related applications. An application refers to a program that corresponds to a server and provides local services to customers. Here, the local service may include but is not limited to: sending information to the server (such as the sliding distance information of the target sliding operation) and receiving information sent by the server (such as content recommendation information) and sharing information, etc. The terminal in the embodiment of this scheme may include but is not limited to any electronic product based on an intelligent operating system, which can interact with the user through input devices such as keyboards, virtual keyboards, touch pads, touch screens, and voice control devices for human-computer interaction, such as smart phones, tablet computers, personal computers, etc. Among them, the intelligent operating system includes but is not limited to any operating system that enriches the device functions by providing various mobile applications to mobile devices, such as Android (Android TM ), iOS TM 、Windows Phone TM wait.
[0057] Optionally, the system architecture may be an electronic device, which may be a wireless terminal device in a smart home, such as a smart air conditioner, a smart water spray fan, a smart sofa, a smart light, etc. It may also be a tablet computer (Pad), a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal device in industrial control, a wireless terminal device in self driving, a wireless terminal device in remote medical, a wireless terminal device in a smart grid, a wireless terminal device in transportation safety, a wireless terminal device in a smart city, etc.
[0058] This electronic device can also be a local terminal, and the terminal can install and run one or more related clients. Specifically, the client may include: locally running applications, functions running on a web browser (also known as Web App), etc. For the client, a corresponding server-side program needs to be run on the server to provide corresponding services, such as database services, data calculations, etc. The terminal in the embodiment of this scheme may include but is not limited to any electronic product based on an intelligent operating system, which can interact with the user through input devices such as keyboards, virtual keyboards, touch pads, touch screens, and voice control devices, such as smart phones, tablet computers, personal computers, etc. Among them, the intelligent operating system includes but is not limited to any operating system that enriches the device functions by providing various mobile applications to mobile devices, such as Android (Android TM), iOS TM 、Windows Phone TM wait.
[0059] Combine the following Figure 2 The content recommendation method of this application is described in detail, such as Figure 2 As shown, it is a flow chart of a content recommendation method provided by an embodiment of the present application. The method can be based on Figure 1 The system architecture shown or other architectures are implemented, and the method may include but is not limited to the following steps:
[0060] Step S201: the electronic device displays a first interface.
[0061] Specifically, the electronic device displays a first interface, which may be an interface of an application program, including one or more recommended contents, such as product recommendations of a shopping software, current affairs recommendations of a news software, video recommendations of a video software, anchor recommendations of a live broadcast software, etc. Here, the first interface is an example of anchor recommendations of a live broadcast software, such as Figure 3 As shown, Figure 3 The host recommendation interface 30 of the live broadcast software is shown as an example, including a recommendation area 301, a function area 302, a status area 303, and a navigation area 304. The recommendation area 301 includes multiple recommended contents. After the user enters the live broadcast software, he selects the live broadcast room he is interested in on the host recommendation interface 30, and clicks the corresponding display area to enter the corresponding live broadcast room.
[0062] The function area 302 may include multiple function controls, including selections for followed, popular, and nearby.
[0063] The status area 303 may include: an operator indicator (for example, the name of the operator "China Mobile"), one or more signal strength indicators of wireless high fidelity (Wi-Fi) signals, one or more signal strength indicators of mobile communication signals (also known as cellular signals), a time indicator, and a battery status indicator. The navigation area 304 may include: a return button 305, a home screen button 306, a menu setting button 307 and other system navigation keys. Among them, when it is detected that the user clicks the return button 305, the electronic device may display the previous user interface of the current user interface. When it is detected that the user clicks the home screen button 306, the electronic device may display the home interface. When it is detected that the user clicks the menu setting button 307, the electronic device may display other shortcut functions, for example. The naming of each navigation key can also be other, for example, 305 can be called Back Button, 306 can be called Home button, and 307 can be called Menu Button, which is not limited in this application. The navigation keys in the navigation bar 304 are not limited to virtual keys, and can also be implemented as physical keys.
[0064] Step S202: The electronic device receives a target sliding operation input by the user on the first interface.
[0065] Specifically, after the electronic device displays the first interface 30, it receives a target sliding operation input by the user on the first interface 30, and the target sliding operation is used to update the display content of the first interface 30. When the user's finger touches the first interface 30 of the electronic device, the electronic device records the position coordinates of the current touch point on the first interface 30. When the user's finger moves, the electronic device records the position coordinates of the touched point on the first interface 30 after the move, thereby obtaining an offset relative to the previous coordinate point, and modifying the position coordinates of the first interface 30 by the offset, thereby achieving a sliding effect of the first interface 30, such as Figure 4 As shown, Figure 4 The schematic diagram exemplarily shows that the anchor recommendation interface of the live broadcast software receives a target sliding operation on the first interface 30, including a sliding area 401 and a recommendation area 402.
[0066] The sliding area 401 is an area displayed when the user's target sliding operation is triggered. When the electronic device receives a sliding operation 403 performed by the user's finger on the first interface 30 from a certain position, and the finger does not leave the display screen of the electronic device during the sliding operation, the sliding line 404 of the first interface 30 slides down along with the sliding operation 403 of the user. The sliding operation 403 is used to update the display content of the first interface 30. The recommendation area 402 includes multiple recommended contents. When the electronic device receives a sliding operation 403 performed by the user's finger on the first interface 30 from a certain position, the recommendation area 402 slides down along with the sliding operation 403 due to the limited display area of the display screen of the electronic device. It should be noted that the sliding line 404 can be a solid line displayed on the first interface 30, or a logical virtual line, which can intuitively reflect the specific sliding distance of the first interface sliding along with the sliding operation.
[0067] Step S203: When the target sliding operation meets a preset condition, the electronic device determines a target distance range corresponding to the target sliding operation.
[0068] Specifically, after the electronic device receives a target sliding operation on the first interface 30, if the target sliding operation meets the preset conditions, the electronic device determines the target distance range corresponding to the target sliding operation based on the preset actual distance range corresponding to the sliding operation, wherein the sliding distance of the target sliding operation corresponds to a target distance range in a plurality of preset actual distance ranges, and the updated display content includes target recommended content, wherein the distance between the geographical location of the terminal that publishes the target recommended content and the geographical location of the electronic device is within the target distance range. That is to say, if the target sliding operation meets the preset conditions, the electronic device determines the sliding distance of the target sliding operation, and since the electronic device presets a plurality of preset distance ranges, the sliding distance determined by the electronic device is matched to the corresponding target distance range in the plurality of preset distance ranges, and the electronic device searches for the target recommended content based on the target distance range, and the distance between the geographical location corresponding to the target recommended content and the geographical location of the electronic device is within the target distance range.
[0069] In one embodiment, when the target sliding operation meets the preset conditions, the position of the downward sliding line 404 of the first interface 30 is the first position, and the position of the downward sliding line 404 of the first interface 30 is the second position when the target sliding operation ends; the electronic device determines the position coordinates of the first position and the second position of the target sliding operation on the first interface 30, and then determines the sliding distance of the first position and the second position in the target direction according to the position coordinates of the first position and the second position, and the electronic device updates the display content of the first interface 30 according to the sliding distance, wherein the sliding distance corresponds to a target distance range in a plurality of preset distance ranges.
[0070] For example, if Figure 5a-5c As shown, Figure 5a-5c The following is an exemplary illustration of the operation steps of the electronic device updating the display content of the first interface 30 according to the sliding distance between the first position and the second position in the target direction when the target sliding operation meets the preset conditions. Figure 5a-5c A distance selection area 501 is included. Figure 5a As shown, when the user's target sliding operation meets the preset conditions, the electronic device displays a distance selection area 501, indicating that the user has entered the distance selection mode. At this time, the distance of the downward sliding line 404 of the first interface 30 is on the 0 scale, the first position is the position of the 0 scale line, the target direction is the vertical direction, and the downward sliding line 404 of the first interface 30 slides down with the sliding distance in the vertical direction of the sliding operation; Figure 5b As shown, the electronic device displays a distance selection area 501, and the distance of the downward sliding line 404 of the first interface 30 is on the scale of 1000 meters; Figure 5c As shown, the electronic device displays a distance selection area 501, and at this time, the downward sliding line 404 of the first interface 30 continues to slide down with the sliding operation, and at this time, the distance of the downward sliding line 404 of the first interface 30 is on the scale of 300 kilometers. If the distance range of the downward sliding line 404 of the first interface 30 finally selected by the user is between 0-1000 meters, the first position of the target recommended content updated on the first interface is within 1000 meters from the electronic device; if the distance range of the downward sliding line 404 of the first interface 30 finally selected by the user is between 30 kilometers and 300 kilometers, the first position of the target recommended content updated on the first interface is within 300 kilometers from the electronic device; if the distance range of the downward sliding line 404 of the first interface 30 finally selected by the user is beyond 300 kilometers, the distance of the first position of the target recommended content updated on the first interface is unlimited.
[0071] In one embodiment, the position of the downward sliding line 404 of the first interface 30 is the first position when the target sliding operation starts, and the position of the downward sliding line 404 of the first interface 30 is the second position when the target sliding operation ends; the electronic device determines the position coordinates of the first position and the second position of the target sliding operation on the first interface 30, and then determines the sliding distance of the first position and the second position in the target direction according to the position coordinates of the first position and the second position, and the electronic device updates the display content of the first interface 30 according to the sliding distance, wherein the sliding distance corresponds to a target distance range in a plurality of preset distance ranges.
[0072] For example, if Figure 6a-6c As shown, Figure 6a-6c The operation steps of the electronic device updating the display content of the first interface 30 according to the sliding distance between the first position and the second position in the target direction are exemplarily shown. Figure 6a-6c A distance selection area 601 is included. Figure 6a As shown, when the user's target sliding operation meets the preset conditions, the electronic device displays a distance selection area 601, indicating that the user has entered the distance selection mode. At this time, the distance of the downward sliding line 404 of the first interface 30 is on the 0 scale. Since the display area of the electronic device's display screen is limited, if the position of the 0 scale line is in the middle of the display screen, it is easy to have no sliding space. In this case, it is easy to cause a situation where the recommendation cannot be achieved. Setting the position of the 0 scale line at the top of the electronic device's display screen can improve the user's operating efficiency, thereby achieving accurate recommendation of recommended content. The first position is at the top of the electronic device's display screen, that is, the position of the 0 scale line. The target direction is the vertical direction. The downward sliding line 404 of the first interface 30 slides down with the sliding distance in the vertical direction of the sliding operation; as shown in FIG. Figure 6b As shown, the electronic device displays a distance selection area 601, and the distance of the downward line 404 of the first interface 30 is on the scale of 1000 meters; Figure 6c As shown, the electronic device displays a distance selection area 601, and at this time, the downward sliding line 404 of the first interface 30 continues to slide down with the sliding operation, and at this time, the distance of the downward sliding line 404 of the first interface 30 is on the scale of 300 kilometers. If the distance range of the downward sliding line 404 of the first interface 30 finally selected by the user is between 0-1000 meters, the first position of the target recommended content updated on the first interface is within 1000 meters from the electronic device; if the distance range of the downward sliding line 404 of the first interface 30 finally selected by the user is between 30 kilometers and 300 kilometers, the first position of the target recommended content updated on the first interface is within 300 kilometers from the electronic device; if the distance range of the downward sliding line 404 of the first interface 30 finally selected by the user is outside 300 kilometers, the distance of the first position of the target recommended content updated on the first interface is unlimited.
[0073] In one embodiment, the preset condition includes that the sliding distance of the target sliding operation exceeds the first threshold, or the sliding range of the target sliding operation exceeds the first range. The first threshold may be one centimeter on the first interface, that is, when the sliding distance of the user's target sliding operation on the display area of the first interface exceeds one centimeter, the electronic device turns on the distance selection mode; the first range may be a specific area on the first interface, that is, when the sliding range of the user's target sliding operation on the display area of the first interface exceeds the specific area, the electronic device turns on the distance selection mode. This implementation method describes that under the preset condition that the sliding distance of the target sliding operation exceeds the first threshold or the sliding range exceeds the first range, the electronic device can update the display content of the first interface 30 according to the sliding distance of the target sliding operation, and provides the necessary conditions for updating the display content by the target sliding distance, preventing user misoperation and improving operation efficiency.
[0074] In one embodiment, the plurality of preset distance ranges are defined by at least one threshold value, and the at least one threshold value is predefined or preconfigured. Figure 5c It can be seen that the multiple preset distance ranges include three preset distance ranges of 0-1000 meters, 1000 meters-30 kilometers and 30 kilometers-300 kilometers. It can be seen that there are three thresholds, namely 1000 meters, 3 kilometers and 300 kilometers. These three thresholds can be pre-defined by the user according to their own usage needs. The user can customize the number and range of the thresholds at any time. These three thresholds can also be pre-configured by the live broadcast software, and the optimal thresholds obtained by big data analysis of a large number of users. This implementation method defines multiple preset distance ranges by pre-defining or pre-configuring at least one threshold by the user, that is, the user can personalize the preset distance range. This implementation method describes the way in which the first interface 30 slides with the sliding distance of the target sliding operation in the target direction, so that the user can intuitively see the selection of the distance range and improve the user's operating efficiency. Optionally, at least one threshold can be the optimal threshold calculated by personalized learning and customization of user information of the electronic device.
[0075] In one embodiment, when the target sliding operation does not meet the preset conditions, the electronic device does not trigger the correspondence between the sliding distance and the actual distance range, and the electronic device normally updates the display content of the first interface 30 according to the target sliding operation, and the updated display content is unrelated to the geographic location.
[0076] Step S204: the electronic device displays the target recommended content within the target distance range on the first interface.
[0077] Specifically, after the electronic device determines the target distance range corresponding to the target sliding operation, it determines one or more recommended contents published by the terminal whose geographical location distance to the electronic device is within the target distance range according to the target distance range, and the electronic device displays the one or more recommended contents in the first interface 30 according to the preset rules according to the geographical location of the terminal that publishes the one or more recommended contents, wherein the target recommended contents include the one or more recommended contents. Among them, the preset rules can be to arrange and display the recommended contents in order from near to far according to the distance from the geographical location of the electronic device to the geographical location, or to display them in order according to the geographical location of the recommended contents and the comprehensive judgment of factors such as the popularity, time and user information of the recommended contents. The preset rules can also limit the number of target recommended contents to be displayed, for example, only the top seven target recommended contents can be displayed on the first interface 30 among multiple target recommended contents, so as to provide users with high-quality recommended contents.
[0078] Here, the preset rule is to arrange the recommended content in order of distance from the geographical location of the electronic device to the geographical location of the electronic device. The closer the distance between the geographical location of the recommended content and the geographical location of the electronic device is, the first recommended content will be displayed. Figure 7 As shown in ac, Figure 7 ac exemplarily shows the dynamic display method of the target recommended content, including the quantity area 701 and the display area 702, wherein the quantity area 701 displays the specific quantity of the target recommended content, and the display area 702 displays the approximate content of the target recommended content. Figure 7 As shown in a, the number in the quantity area 701 shows the number of anchors, and the image in the display area 702 shows the anchor's head portrait, wherein the number in the quantity area 701 and the image in the display area 702 are in one-to-one correspondence. Since the preset rule is to arrange and display the anchors in order from near to far according to the distance between the anchors' geographical location and the geographical location of the electronic device, when the number in the quantity area 701 is 1, the image in the display area 702 is also one, which means that the anchor's geographical location is closest to the electronic device. Figure 7 As shown in FIG. 2 , when the number in the quantity area 701 is 3, there are also three images in the display area 702. The further back the anchor is displayed, the farther away from the electronic device's geographical location is. Figure 7 As shown in c, when the number in the quantity area 701 is 6, there are also six images in the display area 702. The user can select a favorite image in the display area 702 and enter the live broadcast room of the anchor.
[0079] like Figure 8 As shown, the preset rules can be a comprehensive judgment based on the geographical location of the recommended content, the popularity of the recommended content, time, user information and other factors, and the number of target recommended content displayed is limited. The electronic device can determine an anchor that best matches the user's requirements and make accurate recommendations to the user; it can be understood that the electronic device can determine multiple anchors that match the user's requirements, and select them by sliding left and right, select the anchor image you like, and enter the anchor's live broadcast room.
[0080] In one embodiment, after the electronic device determines the target distance range corresponding to the target sliding operation, the electronic device sends the target distance range to the server; the server is used to search within the target distance range from near to far with the geographical location of the electronic device as the center for one or more recommended content published by terminals whose geographical location distances to the electronic device are within the target distance range; then the electronic device receives the one or more recommended content sent by the server, and the electronic device displays the one or more recommended content in the first interface 30 according to preset rules based on the geographical locations of the one or more recommended content, and the target recommended content includes one or more recommended content.
[0081] In implementing the embodiment of the present application, the electronic device displays the first interface 30, and then receives a target sliding operation of the user on the first interface 30, the target sliding operation is used to update the display content of the first interface 30, and when the target sliding operation meets the preset conditions, the electronic device updates the display content of the first interface 30 by the square root of the sliding distance of the target sliding operation, wherein the distance between the geographical location corresponding to the target recommended content in the display content of the first interface 30 and the geographical location of the electronic device is within the target distance range, and the target distance range has a corresponding relationship with the sliding distance of the target sliding operation, that is, the electronic device selects the required recommended content by determining the sliding distance of the target sliding operation of the user on the first interface 30, thereby avoiding the step of manually filling in the screening conditions, simplifying the operation steps, and improving the selection efficiency.
[0082] In order to better implement the above solution of the embodiment of the present application, the present application also provides a content recommendation device, which is described in detail below with reference to the accompanying drawings:
[0083] like Fig. 9 As shown, the present embodiment provides a structural diagram of a content recommendation device 90, which may include: a first display unit 901, a receiving unit 902, a determining unit 903, and a second display unit 904, wherein:
[0084] A first display unit 901, used to display a first interface;
[0085] The receiving unit 902 is used to receive a target sliding operation input by a user on the first interface, and obtain a sliding distance of the target sliding operation, wherein the target sliding operation is used to update the display content of the first interface;
[0086] A determining unit 903, configured to determine a target distance range corresponding to the target sliding operation according to a preset actual distance range corresponding to the sliding operation when the sliding distance of the target sliding operation meets a preset condition;
[0087] The second display unit 904 is used to display the target recommended content included in the target distance range on the first interface according to a preset rule.
[0088] In an embodiment of the present application, the preset condition includes that the sliding distance of the target sliding operation exceeds a first threshold.
[0089] In an embodiment of the present application, the target distance range is one of a plurality of preset distance ranges, and the plurality of preset distance ranges are defined by at least one threshold value, and the at least one threshold value is predefined or preconfigured.
[0090] In the embodiment of the present application, the receiving unit 902 specifically includes:
[0091] The determining unit 903 is further configured to determine the position coordinates of a first position and a second position of the target sliding operation on the first interface; wherein the first position is the downward sliding line position of the first interface when the target sliding operation satisfies the preset condition, and the second position is the downward sliding line position of the first interface when the target sliding operation ends; or, the first position is the downward sliding line position of the first interface when the target sliding operation starts, and the second position is the downward sliding line position of the first interface when the target sliding operation ends;
[0092] The determining unit 903 is further configured to determine a sliding distance between the first position and the second position in a target direction according to the position coordinates of the first position and the second position.
[0093] In an embodiment of the present application, the target recommended content is one or more recommended contents determined according to a target distance range of the electronic device; the one or more recommended contents are published by a terminal whose geographical location is within the target distance range of the electronic device.
[0094] In an embodiment of the present application, the target recommended content is one or more recommended contents published by terminals within the target distance range that are searched from near to far with respect to the geographical location of the electronic device as the center.
[0095] In the embodiment of the present application, the device further includes:
[0096] The updating unit 906 is used for updating the display content of the first interface by the electronic device according to the target sliding operation when the target sliding operation does not meet the preset condition.
[0097] It should be noted that in the embodiments of this application Fig. 9 The functions of each functional unit in the described device can be found in the above Figure 2 The descriptions of step S201 and step S204 in the method embodiment are not repeated here.
[0098] Based on the above, please refer to the recommended device diagram Fig.10 , Fig.10 This is a simplified schematic diagram of an electronic device structure provided by an embodiment of the present application. For ease of understanding and illustration, Fig.10 The electronic device 100 may include one or more of the following components: a memory 1001, a processor 1002 and a communication device 1003.
[0099] The memory 1001 may include one or more storage units, each of which may include one or more memories. The memory may be used to store programs and various data, and may automatically access programs or data at high speed during the operation of the electronic device 100. Fig.10 The electronic device 100 shown in FIG. Figure 2 When performing the method, the memory can be used to store one or more recommended content, electronic device information and other related data. The memory 1001 can include a read-only memory and a random access memory, and provide instructions and data to the processor 1002. A portion of the memory 1001 can also include a non-volatile random access memory.
[0100] The communication device 1003 may also be referred to as a transceiver, or a transceiver, etc., which may include units for wireless, wired or other communication modes. Optionally, the device for implementing the receiving function in part 1003 may be regarded as a receiving unit, and the device for implementing the sending function may be regarded as a sending unit, that is, part 1003 includes a receiving unit and a sending unit.
[0101] Processor 1002, the processor may also be called a processing unit, a processing board, a processing module, a processing device, etc. The processor may be a central processing unit (CPU), a network processor (NP) or a combination of a CPU and a NP. The processor 1002 may also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. When Fig.10 The content recommendation device 100 shown in FIG. Figure 2 In the method embodiment described in steps S201-S203, the processor 1002 calls the content recommendation program of the memory 1001 and performs the following steps:
[0102] Display the first interface;
[0103] receiving a target sliding operation input by a user on the first interface, and acquiring a sliding distance of the target sliding operation, wherein the target sliding operation is used to update display content of the first interface;
[0104] When the sliding distance of the target sliding operation meets a preset condition, determining a target distance range corresponding to the target sliding operation according to a preset actual distance range corresponding to the sliding operation;
[0105] The target recommended contents within the target distance range are displayed on the first interface.
[0106] In one embodiment, the preset condition includes that a sliding distance of the target sliding operation exceeds a first threshold, or a sliding range of the target sliding operation exceeds a first range.
[0107] In one embodiment, the plurality of preset distance ranges are defined by at least one threshold value, and the at least one threshold value is predefined or preconfigured.
[0108] In one implementation manner, the processor 1002 obtains the sliding distance of the target sliding operation, including:
[0109] Determine the position coordinates of a first position and a second position of a target sliding operation on the first interface; wherein the first position is the downward sliding line position of the first interface when the target sliding operation satisfies the preset condition, and the second position is the downward sliding line position of the first interface when the target sliding operation ends; or, the first position is the downward sliding line position of the first interface when the target sliding operation starts, and the second position is the downward sliding line position of the first interface when the target sliding operation ends;
[0110] The sliding distances of the first position and the second position in the target direction are determined according to the position coordinates of the first position and the second position.
[0111] In one implementation, the processor 1002 displays the target recommendation content included in the target distance range on the first interface, including:
[0112] Determine, according to the target distance range, one or more recommended contents published by a terminal whose geographical location distance from the processor 1002 is within the target distance range;
[0113] The one or more recommended contents are displayed in the first interface according to a preset rule according to the geographical location of the terminal that publishes the one or more recommended contents, and the target recommended contents include the one or more recommended contents.
[0114] In one implementation manner, the processor 1002 determines, according to the target distance range, one or more recommended contents published by a terminal whose geographical location distance from the processor 1002 is within the target distance range, including:
[0115] Sending the target distance range to a server; the server is used to search within the target distance range from near to far with the geographical location of the processor 1002 as the center for one or more recommended contents published by terminals within the target distance range from the geographical location of the processor 1002;
[0116] The one or more recommended contents sent by the server are received.
[0117] In one implementation, the processor 1002 may further perform the following steps:
[0118] When the target sliding operation does not satisfy the preset condition, the display content of the first interface is updated according to the target sliding operation.
[0119] It should be noted that the execution steps of the processor 1002 in the electronic device 100 in the embodiment of the present application can refer to the above-mentioned method embodiments. Figure 2 The specific implementation of steps S201-S204 in the embodiment will not be repeated here.
[0120] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The aforementioned storage medium includes: a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc. The above-mentioned computer-readable storage medium can be the task processing device provided in any of the above-mentioned embodiments or the internal storage unit of the above-mentioned terminal, such as a hard disk or memory of an electronic device. The computer-readable storage medium can also be an external storage device of the electronic device, such as a plug-in hard disk equipped on the electronic device, a smart memory card (SMC), a secure digital (SD) card, a flash card, etc. The above-mentioned computer-readable storage medium can also include a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc. Further, the computer-readable storage medium can also include both the internal storage unit of the electronic device and the external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the electronic device. The computer-readable storage medium can also be used to temporarily store data that has been output or is to be output.
[0121] In the present application, the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present application.
[0122] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0123] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
[0124] It should be understood that in various embodiments of the present application, the size of the sequence number of each process does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. Although the present application is described herein in conjunction with various embodiments, however, in the process of the present application claimed for protection by the embodiments, those skilled in the art can understand and implement other changes of the disclosed embodiments.
Claims
1. A content recommendation method, characterized in that: include: The electronic device displays a first interface; The electronic device receives a target sliding operation input by a user on the first interface, and obtains a sliding distance of the target sliding operation, where the target sliding operation is used to update display content of the first interface; The electronic device displays a distance selection area when the sliding distance of the target sliding operation meets a preset condition, and the distance selection area includes a plurality of preset distance ranges; The electronic device determines, in the distance selection area, a target distance range corresponding to the target sliding operation according to a preset actual distance range corresponding to the sliding operation, wherein the target distance range is one of the plurality of preset distance ranges, and the plurality of preset distance ranges are defined by at least one threshold value, and the at least one threshold value is predefined or preconfigured; The electronic device displays target recommended content contained in the target distance range on the first interface according to preset rules, wherein the target recommended content is one or more recommended content determined according to the target distance range of the electronic device; and the one or more recommended content is published by a terminal whose geographical location is within the target distance range of the electronic device.
2. The method according to claim 1, characterized in that The preset condition includes that the sliding distance of the target sliding operation exceeds a first threshold.
3. The method according to claim 1, characterized in that The electronic device acquires the sliding distance of the target sliding operation, including: The electronic device determines the position coordinates of a first position and a second position of a target sliding operation on the first interface; wherein the first position is the downward sliding line position of the first interface when the target sliding operation meets the preset condition, and the second position is the downward sliding line position of the first interface when the target sliding operation ends; or, the first position is the downward sliding line position of the first interface when the target sliding operation starts, and the second position is the downward sliding line position of the first interface when the target sliding operation ends; The electronic device determines the sliding distance of the first position and the second position in the target direction according to the position coordinates of the first position and the second position.
4. The method according to claim 1, characterized in that: The target recommended content is one or more recommended contents published by terminals within the target distance range and having a geographical location of the electronic device as the center and searched from near to far within the target distance range.
5. The method according to claim 2, characterized in that: The method further comprises: When the target sliding operation does not satisfy the preset condition, the electronic device updates the display content of the first interface according to the target sliding operation.
6. A content recommendation device, characterized in that: The method comprises a unit for executing the method according to any one of claims 1 to 5.
7. An electronic device, characterized in that: include: One or more processors, a memory and one or more display screens; the memory, the display screen and the one or more processors are coupled, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute the method as described in any one of claims 1-5.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program instructions, which, when executed by a processor, cause the processor to perform the method according to any one of claims 1 to 5.
