Object display method and device, computer device and storage medium
Patent Information
- Application Number
- CN202210479623.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-05
- Publication Date
- 2026-08-28
- Estimated Expiration
- 2042-05-05
AI Technical Summary
但是,由于用户头像是固定显示的,用户想要在社交时显示不同的信息,需要频繁地手动更换,导致人机交互效率十分低下
[0070]通过本申请实施例提供的技术方案,能够自动基于社交双方对象的社交属性来判断对象之间的社交关系,从而有效贴合不同的社交关系,针对性地进行对象显示,无需用户频繁操作,即可高效地、灵活地满足由复杂社交关系带来的不同显示需求,有效提高了人机交互效率。
Smart Images

Figure CN117055774B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of network technology, and in particular to an object display method, apparatus, computer device, and storage medium. Background Technology
[0002] With the development of internet technology, online social networking has become commonplace. In online social interactions, to ensure that all parties involved can directly access information about their social contacts, the interface typically displays the contact's profile.
[0003] Currently, objects are typically displayed by showing user avatars. However, since user avatars are fixed, users need to manually change them frequently to display different information during social interactions, resulting in very low human-computer interaction efficiency. Therefore, there is an urgent need for an object display method that can effectively improve human-computer interaction efficiency. Summary of the Invention
[0004] This application provides an object display method, apparatus, computer device, and storage medium, which can effectively improve the efficiency of human-computer interaction. The technical solution is as follows:
[0005] On the one hand, an object display method is provided, which includes:
[0006] In response to an object display request from the first terminal for the second object, the social attributes of the first object and the social attributes of the second object are obtained. The object display request is triggered by the first object in the first terminal based on the target interface.
[0007] Based on the social attributes of the first object and the social attributes of the second object, a target resource is determined from the object information resources of the second object, and the target resource is matched with the social relationship between the first object and the second object;
[0008] Provide the target resource to the first terminal so that the first terminal can display the second object in the target interface.
[0009] On the one hand, an object display method is provided, which includes:
[0010] Display the object settings interface, which is used to set the object information resources of the second object;
[0011] Based on the input operations on the object's settings interface, obtain the target resources of the second object and the social relationships matched by the target resources;
[0012] The target resource of the second object is used to display on the target interface of the first object, and the social attributes of the first object satisfy the social relationship.
[0013] On one hand, an object display device is provided, the device comprising:
[0014] The acquisition module is used to respond to the object display request of the first terminal for the second object, and acquire the social attributes of the first object and the social attributes of the second object. The object display request is triggered by the first object in the first terminal based on the target interface.
[0015] The determination module is used to determine a target resource from the object information resources of the second object based on the social attributes of the first object and the social attributes of the second object, and the target resource matches the social relationship between the first object and the second object;
[0016] The display module is used to provide the target resource to the first terminal so that the first terminal can display the second object in the target interface.
[0017] In one possible implementation, the determining module includes:
[0018] The comparison unit is used to compare the first field of the social attributes of the first object with the first field of the social attributes of the second object, wherein the first field indicates the organization to which the object belongs;
[0019] The first determining unit is configured to determine the target resource from the first type of resources included in the object information resources of the second object if the first field of the social attribute of the first object is the same as the first field of the social attribute of the second object, wherein the display object of the first type of resource is an object within the same organization;
[0020] The second determining unit is configured to determine the target resource from the second type of resources included in the object information resources of the second object if the first field of the social attribute of the first object and the first field of the social attribute of the second object are different, wherein the display object of the second type of resource is an object of a different organization.
[0021] In one possible implementation, the first determining unit is used to:
[0022] Based on the second field of the social attributes of the first object and the second field of the social attributes of the second object, query the functional relationship corresponding to the second object. The second field indicates the functional type of the object within its organization, and the functional relationship indicates the social relationship between the functional type of the second object and multiple functional types within the organization to which the second object belongs.
[0023] If the second field of the social attribute of the first object and the second field of the social attribute of the second object match the collaboration relationship, then determine the target resource that matches the collaboration relationship from the first type of resources;
[0024] If the second field of the social attribute of the first object and the second field of the social attribute of the second object meet the management relationship, then the target resource that matches the management relationship is determined from the first type of resources.
[0025] In one possible implementation, the first determining unit is used to:
[0026] Compare the third field of the social attributes of the first object with the third field of the social attributes of the second object; the third field indicates the level of the object within its organization.
[0027] If the third field of the social attribute of the first object is greater than the third field of the social attribute of the second object, then determine the target resource that matches the higher-level relationship from the first type of resources;
[0028] If the third field of the social attribute of the first object is less than the third field of the social attribute of the second object, then determine the target resource that matches the low-level relationship from the first type of resources;
[0029] If the third field of the social attribute of the first object is equal to the third field of the social attribute of the second object, then determine the target resource that matches the same level relationship from the first type of resources.
[0030] In one possible implementation, the target resource includes a target image of the second object, and the apparatus further includes:
[0031] The information determination module is used to determine image processing information for the target image based on the social attributes of the first object and the social attributes of the second object;
[0032] The image processing module performs image processing on the target image based on the image processing information.
[0033] In one possible implementation, the information determination module is used to perform any of the following:
[0034] Based on the first field of the social attributes of the second object, the target organization to which the second object belongs in the image processing information is determined. The image processing information is used to add an image corresponding to the target organization to the target image. The image corresponding to the target organization is determined based on the logo image of the target organization and / or the organization name of the target organization.
[0035] Based on the social attributes of the second object, the image style type in the image processing information is determined. This image style type is used to add static effects to the target image, and the image style type matches the style preference of the second object.
[0036] Based on the social attributes of the first object and the second object, the image effect type in the image processing information is determined. This image effect type is used to add dynamic effects to the target image, and the image effect type is matched with the social relationship between the first object and the second object.
[0037] In one possible implementation, the second determining unit includes:
[0038] The determination subunit is used to determine the target resource that matches the first field of the social attribute of the first object from the second type of resources included in the object information resources of the second object.
[0039] In one possible implementation, the second type of resource includes a plurality of second images; the determining subunit is used for:
[0040] The first field of the first object is compared with the tissue identifier of the plurality of second images, wherein the tissue identifier of the second image indicates the tissue that the second image matches;
[0041] If a target second image exists among the plurality of second images, the target second image is obtained, and the tissue identifier of the target second image matches the first field of the first object;
[0042] If the target second image is not found among the multiple second images, obtain the default image from the second type of resource.
[0043] In one possible implementation, the second type of resource includes multiple object names of the second object; the determining subunit is used for:
[0044] The first field of the first object is compared with the organization identifier of the multiple object names, where the organization identifier of the object name indicates the organization that the object name matches;
[0045] If the target object name exists among the multiple object names, obtain the target object name, and the organization identifier of the target object name matches the first field of the first object;
[0046] If the target object name does not exist among the multiple object names, obtain the default name from the second type of resource.
[0047] In one possible implementation, the object information resource includes multiple sets of default messages sent by the second object, the default messages being used to indicate the social intentions of the second object; the determining module is used to:
[0048] Compare the social intention indicated by the social attributes of the first object with the intention identifiers of the multiple sets of default messages;
[0049] If a target message exists among the multiple default message groups, retrieve the target message and match its intent identifier with the social intent of the first object.
[0050] If the target message is not present in the multiple default message groups, a message is generated for the first object based on the social attributes of the first object and the social attributes of the second object.
[0051] On one hand, an object display device is provided, the device comprising:
[0052] The display module is set up to display the object setting interface, which is used to set the object information resources of the second object.
[0053] The resource acquisition module is used to acquire the target resources of the second object and the social relationships matched by the target resources based on the input operations on the object's settings interface.
[0054] The target resource of the second object is used to display on the target interface of the first object, and the social attributes of the first object satisfy the social relationship.
[0055] In one possible implementation, the object settings interface includes a switch option for initiating the settings process for the target resource, and the device further includes:
[0056] The enable module provides configuration functions for the target resource in response to enabling the switch option.
[0057] In one possible implementation, the object information resource includes multiple object names of the second object;
[0058] The target resource includes the target object name among the plurality of object names used to display on the target interface of the first object.
[0059] In one possible implementation, the object information resource includes multiple sets of default messages sent by the second object, which are used to indicate the social intentions of the second object;
[0060] The target resource includes the target message from the multiple sets of default messages used to display on the target interface of the first object.
[0061] In one possible implementation, the social attribute includes the organization to which the object belongs, and the resource acquisition module is used to:
[0062] Based on the input operations on the object settings interface, obtain the target resource and the organization that matches the target resource.
[0063] In one possible implementation, the social attribute includes the object's job type and level within its organization, and the resource acquisition module is further used for:
[0064] If the organization to which the target resource is matched is the same as the organization to which the second object belongs, the functional type and / or level of the target resource matching is obtained based on the input operation on the object setting interface.
[0065] In one possible implementation, the object settings interface includes a preview option for generating the display effect of the target resource on the target interface of the first object; the device further includes:
[0066] The preview module is used to display the display effect of the target resource on the target interface of the first object in response to the operation of enabling the preview option.
[0067] On one hand, a computer device is provided, the computer device including one or more processors and one or more memories, the one or more memories storing at least one computer program, the computer program being loaded and executed by the one or more processors to implement the object display method provided by any of the above aspects.
[0068] On one hand, a computer-readable storage medium is provided, which stores at least one computer program that is loaded and executed by a processor to implement the object display method provided by any of the above aspects.
[0069] On one hand, a computer program product or computer program is provided, which includes program code stored in a computer-readable storage medium, wherein a processor of a computer device reads the program code from the computer-readable storage medium and executes the program code, causing the computer device to perform the object display method provided in any of the above aspects.
[0070] The technical solution provided by the embodiments of this application can automatically determine the social relationship between objects based on the social attributes of both parties, thereby effectively matching different social relationships and displaying objects in a targeted manner. Without frequent user operations, it can efficiently and flexibly meet the different display needs brought about by complex social relationships, effectively improving the efficiency of human-computer interaction. Attached Figure Description
[0071] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0072] Figure 1 This is a schematic diagram of the implementation environment of an object display method provided in an embodiment of this application;
[0073] Figure 2 This is a flowchart of an object display method provided in an embodiment of this application;
[0074] Figure 3 This is a flowchart of an object display method provided in an embodiment of this application;
[0075] Figure 4 This is a flowchart of an object display method provided in an embodiment of this application;
[0076] Figure 5 This is a schematic diagram of an object settings interface provided in an embodiment of this application;
[0077] Figure 6 This is a schematic diagram of a session interface provided in an embodiment of this application;
[0078] Figure 7 This is a flowchart of an object display method provided in an embodiment of this application;
[0079] Figure 8 This is a schematic diagram of an object display method provided in an embodiment of this application;
[0080] Figure 9 This is a schematic diagram of the structure of an object display device provided in an embodiment of this application;
[0081] Figure 10 This is a schematic diagram of the structure of an object display device provided in an embodiment of this application;
[0082] Figure 11 This is a schematic diagram of the structure of a server provided in an embodiment of this application;
[0083] Figure 12 This is a schematic diagram of the structure of a terminal provided in an embodiment of this application. Detailed Implementation
[0084] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0085] In this application, the terms "first," "second," etc., are used to distinguish identical or similar items with essentially the same function. It should be understood that there is no logical or temporal dependency between "first," "second," and "n," nor are they limited in quantity or execution order.
[0086] In this application, the term "at least one" means one or more, and "multiple" means two or more, for example, multiple objects means two or more objects.
[0087] Cloud computing is a computing model that distributes computing tasks across a resource pool consisting of a large number of computers, enabling various application systems to access computing power, storage space, and information services as needed. The network providing these resources is called the "cloud." From the user's perspective, the resources in the "cloud" are infinitely scalable, readily available, on-demand, expandable, and pay-as-you-go. As a provider of fundamental cloud computing capabilities, a cloud resource pool (referred to as a cloud platform, generally called an IaaS (Infrastructure as a Service) platform) is established. Various types of virtual resources are deployed within this pool for external customers to choose from. The cloud resource pool mainly includes: computing devices (virtualized machines containing operating systems), storage devices, and network devices. Logically, a Platform as a Service (PaaS) layer can be deployed on top of the Infrastructure as a Service (IaaS) layer, and a Software as a Service (SaaS) layer can be deployed on top of the PaaS layer. Alternatively, SaaS can be directly deployed on top of IaaS. PaaS is a platform for running software, such as databases and web containers. SaaS refers to various types of business software, such as web portals and bulk SMS senders. Generally, SaaS and PaaS are upper layers compared to IaaS.
[0088] A database, simply put, can be viewed as an electronic filing cabinet—a place to store electronic files, where users can perform operations such as adding, querying, updating, and deleting data. A "database" is a collection of data stored together in a certain way, capable of being shared by multiple users, with minimal redundancy, and independent of application programs.
[0089] Big data refers to data sets that cannot be captured, managed, and processed within a certain timeframe using conventional software tools. It represents massive, rapidly growing, and diverse information assets that require new processing models to achieve stronger decision-making, insightful discovery, and process optimization capabilities. With the advent of the cloud era, big data has attracted increasing attention. Big data requires specialized technologies to effectively process large amounts of data within a tolerable timeframe. Technologies suitable for big data include massively parallel processing databases, data mining, distributed file systems, distributed databases, cloud computing platforms, the internet, and scalable storage systems.
[0090] Blockchain is a novel application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and cryptographic algorithms. Essentially, a blockchain is a decentralized database, a chain of data blocks linked together using cryptographic methods. Each data block contains information about a batch of network transactions, used to verify the validity of the information (anti-counterfeiting) and generate the next block. A blockchain can include an underlying platform, a platform product service layer, and an application service layer.
[0091] First, the implementation environment of the embodiments of this application will be introduced. Figure 1 This is a schematic diagram illustrating the implementation environment of an object display method provided in this application embodiment. See also... Figure 1 The implementation environment includes multiple terminals 110 and servers 120.
[0092] The terminal 110 can display objects on a target interface, such as a conversation interface of a social application, where the terminal can display conversation objects. Based on this, the terminal 110 can provide the function of setting object information resources, which are used to display the object on the target interface. For example, the object information resources include the object's avatar and name.
[0093] Optionally, the terminal 110 may be a smartphone, tablet computer, laptop computer, smart TV, in-vehicle terminal, desktop computer, smart speaker, smartwatch, etc., but is not limited to these. In some embodiments, the terminal 110 has an application that supports object display installed and running, enabling the terminal 110 to display objects based on object information resources.
[0094] The server 120 is capable of storing, processing, and distributing the object information resources of the aforementioned objects. Optionally, the server 120 can provide background services such as scheduling and updating of object information resources to multiple terminals 110. The multiple terminals 110 can communicate with the server 120 via a wireless or wired network to use the background services provided by the server.
[0095] In some embodiments, taking the first terminal and the second terminal among the plurality of terminals 110 as examples, the first object triggers an operation to display the second object in the first terminal. Based on this, the first terminal can respond to the operation of the first object and send an object display request for the second object to the server 120, thereby obtaining the object information resource of the second object through the server 120. The object information resource of the second object can be determined by the second terminal.
[0096] Optionally, the server 120 may be an independent physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery network (CDN), and big data and artificial intelligence platforms.
[0097] Optionally, the aforementioned server 120 can act as a node in the blockchain system to store relevant data involved in the object display process, such as object information resources.
[0098] It should be noted that all information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.), and signals involved in this application are authorized by the user or fully authorized by all parties, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the object information resources involved in this application were obtained with the full authorization of the user.
[0099] After introducing the implementation environment of the embodiments of this application, the object display method provided by the embodiments of this application will be described below in conjunction with the above implementation environment.
[0100] In the following description, the first terminal is the first terminal 111 among the aforementioned plurality of terminals, the second terminal is the second terminal 112 among the aforementioned plurality of terminals, and the server is the server 120. The first terminal is the terminal for displaying objects, while the second terminal is the terminal for acquiring object information resources of the objects to be displayed.
[0101] Figure 2 This is a flowchart of an object display method provided in an embodiment of this application. The method is executed by a server. See also... Figure 2 The method includes:
[0102] 201. The server responds to the object display request of the first terminal for the second object, obtains the social attributes of the first object and the social attributes of the second object, and the object display request is triggered by the first object in the first terminal based on the target interface.
[0103] The object display request can be triggered by an operation of the first object, which, by performing a corresponding operation, can trigger the display of the second object on the target interface. For example, if a social application is running on the first terminal, the first object can perform a launch operation on the social application, causing the first terminal to run the social application and display its conversation list interface, in which the second object is displayed; or, the first object can initiate a conversation with the second object, causing the first terminal to switch to the conversation interface with the second object and display the second object in that conversation interface; or, the first object can initiate a conversation with a conversation group, causing the first terminal to switch to the conversation interface of that conversation group and display multiple objects, including the second object, in that conversation group's conversation interface.
[0104] In some embodiments, the object display request indicates the first object and the second object. Optionally, the object display request includes identification information of the first object and the second object, and the server can obtain the social attributes of the first object and the second object based on the identification information. In other embodiments, the object display request indicates the session group to which the first object and multiple second objects belong, and the object display request includes identification information of the session group, and the server can obtain the social attributes of the first object and the multiple second objects based on the identification information of the session group.
[0105] The social attribute includes the object's basic attributes in a social context. For example, in a social context based on organizational structure, the social attributes of the first object include the organization to which the first object belongs, the first object's function and level within the organization, etc.
[0106] 202. Based on the social attributes of the first object and the second object, the server determines the target resource from the object information resources of the second object, and the target resource matches the social relationship between the first object and the second object.
[0107] The object information resource includes various information displayed by the second object in a social context, which can be used to display the second object. In some embodiments, the object information resource includes images and text, such as the user avatar of the second object in the social software and the username displayed by the second object in the social software. Optionally, the object information resource also includes effect files, such as the effect file corresponding to the flashing effect of the second object's avatar and the audio file corresponding to the entrance sound effect of the second object. This application embodiment does not limit the object information resource.
[0108] Social relationships are used to describe the relationships between objects in a social context. For example, if two objects are colleagues in the same organization, their social relationship can be a collaborative relationship; or if two objects have a managerial relationship in their functions within the same organization, their social relationship can be a managerial relationship.
[0109] The second object's information resources include information displayed to objects with different social relationships. Understandably, different social relationships will lead to different display requirements; that is, the second object needs to display different information to objects with different social relationships.
[0110] Specifically, the target resource matches the social relationship between the first object and the second object; that is, the target resource meets the display requirements of the social relationship. For example, the social attributes of the first object include belonging to organization A, and the object information resources of the second object include multiple avatars for multiple organizations. Then, the target resource may include avatar A; wherein avatar A is the avatar displayed to organization A.
[0111] In this embodiment, since social attributes include the basic attributes of an object in a social context, the server can determine the social relationship between the two parties based on these attributes, and thus determine the target resource based on the social relationship. Understandably, displaying the second object based on this target resource effectively aligns with the display requirements determined by the actual social relationship, eliminating the need for frequent user operations and significantly improving human-computer interaction efficiency.
[0112] 203. The server provides the target resource to the first terminal so that the first terminal can display the second object in the target interface.
[0113] In some embodiments, the server stores the target resource and returns the target resource to the first terminal so that the first terminal can directly display the second object based on the obtained target resource.
[0114] In other embodiments, the server uses a CDN-based distributed storage service, provided by source nodes and multiple distributed edge storage nodes within the CDN architecture. The server determines the storage address of the target resource on the edge storage nodes and returns that address to the first terminal, instructing the first terminal to retrieve the target resource from the nearest edge storage node based on that address, thereby providing the target resource to the first terminal. Understandably, the CDN's distributed storage architecture and load balancing mechanism effectively mitigate the impact of network latency, thus significantly improving the speed at which the first terminal retrieves the target resource.
[0115] The above technical solution can automatically determine the social relationship between the two parties based on their social attributes, thereby effectively matching different social relationships and displaying objects accordingly. This can efficiently and flexibly meet the different display needs brought about by complex social relationships without requiring frequent user operations, and effectively improve the efficiency of human-computer interaction.
[0116] Next, we will introduce the process of obtaining the object information resources of the second object. Figure 3 This is a flowchart of an object display method provided in an embodiment of this application. The method is executed by a second terminal. See also... Figure 3 The method includes:
[0117] 301. The second terminal displays an object setting interface, which is used to set the object information resources of the second object.
[0118] The definition of the object information resource is described in steps 201 to 203, and will not be repeated here.
[0119] 302. The second terminal obtains the target resource of the second object and the social relationship matched by the target resource based on the input operation on the object's settings interface, wherein the target resource of the second object is used to display on the target interface of the first object, and the social attributes of the first object satisfy the social relationship.
[0120] Refer to steps 201 to 203 for the definitions of the target interface, social attributes, and social relationships in this step.
[0121] In some embodiments, the input operation can be targeted at social attributes, such as entering an organization name. Based on the social attributes targeted by the input operation and the social attributes of the second object, the second terminal can obtain the social relationship matched by the target resource. For example, if the organization obtained based on the input operation is the same as the organization to which the second object belongs, then the social relationship matched by the target resource is: belonging to the same organization as the second object. Based on this, when the first object requests to display the second object, the target resource can be matched according to the social attributes of the first object, and the second object can be displayed on the target interface of the first object based on the target resource.
[0122] It should be noted that the second terminal obtains the target resource and the social relationship only after obtaining full authorization from the second object. For example, the second terminal displays a prompt in the object's settings interface, including "Do you allow access to your local photo album to obtain the picture you selected?" If the second object selects the "agree" option, the second terminal obtains the image selected by the second object as the target resource.
[0123] In the technical solution provided in this application embodiment, the terminal-side object setting interface provides the function of setting object information resources and matching social relationships, thereby obtaining the target resources displayed by the object for the specified social relationship. Through the above technical solution, the social relationship between the objects can be determined based on the social attributes of the two social objects, which can effectively match different social relationships and display objects in a targeted manner without the need for frequent user operations. It efficiently and flexibly meets the different display needs brought about by complex social relationships and effectively improves the efficiency of human-computer interaction.
[0124] Next, based on the above Figure 1 The implementation environment, based on Figure 2 and Figure 3 The corresponding embodiment, taking the interaction process between the first terminal, the second terminal and the server as an example, will introduce the object display method provided in the embodiments of this application. Figure 4 This is a flowchart of an object display method provided in an embodiment of this application. See also... Figure 4 The method includes:
[0125] 401. The second terminal displays an object setting interface, which is used to set the object information resources of the second object.
[0126] In the following explanation, we will take the target resource in the object information resource as an example. Understandably, the principle of the object settings interface above for obtaining the object information resource is the same as the principle for obtaining the target resource.
[0127] In some embodiments, the object information resource includes multiple images of the second object, and based on this, the target resource includes a target image among the multiple images for display on a target interface of the first object.
[0128] In some embodiments, the object information resource further includes multiple object names of the second object. Based on this, the target resource includes a target object name among the multiple object names for display on the target interface of the first object. Optionally, the object information resource also includes multiple sets of default messages for the second object, which are used to indicate the social intentions of the second object. Based on this, the target resource includes a target message among the multiple sets of default messages for display on the target interface of the first object.
[0129] 402. The second terminal obtains the target resource of the second object and the social relationship matched by the target resource based on the input operation on the object's settings interface, wherein the target resource of the second object is used to display on the target interface of the first object, and the social attributes of the first object satisfy the social relationship.
[0130] In some embodiments, the object settings interface includes a switch option for initiating the settings process for the target resource. The second terminal, in response to enabling the switch option, provides settings functionality for the target resource.
[0131] To facilitate understanding of the above content, this application provides a schematic diagram of an object settings interface, see below. Figure 5 The settings interface displays internal avatar 501, external avatar 502, and corresponding switch options 503 for external avatar 502. The internal avatar 501 is displayed for objects within the same organization. The switch option 503 for external avatar 502 is on, indicating that the settings function for external avatar 502 is being provided.
[0132] In some embodiments, the social attribute includes the organization to which the object belongs. The second terminal obtains the target resource and the organization matching the target resource based on the input operation of the second object on the object settings interface. The input operation is an organization-specific input operation, such as entering the organization name or organization code. Optionally, the object settings interface includes an organization input box, thereby obtaining the organization matching the target resource based on the input operation in the organization input box. Optionally, the second terminal can add corresponding organization identifiers to the target image and target object name included in the target resource based on the organization matching the target resource.
[0133] In some embodiments, the object information resource may include a first type of resource and a second type of resource, wherein the first type of resource displays objects within the same organization, and the second type of resource displays objects from different organizations. In this example, based on the organization obtained from the input operation and the organization to which the second object belongs, it is possible to determine which type of resource the target resource belongs to, thereby narrowing the search scope when matching the target resource and saving computational resources.
[0134] The above technical solution not only enables matching of social relationships of object information resources based on the same and different organizations, but also enables precise positioning of object information resources to specific organizations, providing users with a personalized display method for the organization to which the social object belongs.
[0135] In some embodiments, the social attribute includes the object's job type and level within its organization. If the organization matched by the target resource is the same as the organization to which the second object belongs, the second terminal obtains the job type and / or level matched by the target resource based on input operations on the object settings interface. The input operation can be an input of the job type number or an abbreviation of the job type, or it can be an input of the number corresponding to the level. Optionally, the object settings interface includes a job grade input box, thereby obtaining the job type and / or level matched by the target resource based on input operations in the job grade input box.
[0136] The above technical solution enables precise positioning of object information resources down to specific job level relationships based on social attributes such as functions and levels within an organization, providing users with personalized display methods for various social relationships within the organization.
[0137] In some embodiments, the object settings interface includes a preview option, which is used to generate the display effect of the target resource on the target interface of the first object; in response to the operation of enabling the preview option, the second terminal displays the display effect of the target resource on the target interface of the first object in the object settings interface, which not only provides an immediate and intuitive preview effect, but also effectively avoids the problem of information setting errors caused by user misoperation, thereby improving the user experience.
[0138] The above technical solution provides users with an entry point to upload object information resources on the terminal side, and provides setting methods for various social attributes to enrich the social relationships matched with the object information resources, thereby enabling users to achieve personalized object display methods, effectively improving the flexibility of object display and greatly improving the efficiency of human-computer interaction.
[0139] 403. The second terminal sends the target resource to the server.
[0140] 404. The server stores the target resource.
[0141] Optionally, the server is a CDN-based server cluster, including a source node and multiple edge storage nodes. Based on this, the server stores the target resource in the source node and sends it to multiple edge storage nodes for caching and backup.
[0142] It should be noted that steps 401 to 404 above are the process of setting object information resources for the second object. This process can be performed at any time after the second object is registered, and this application embodiment does not limit it.
[0143] 405. In response to the first object's operation based on the target interface, the first terminal sends an object display request to the server.
[0144] This step is the same as step 201, and will not be repeated here.
[0145] 406. The server responds to the object display request from the first terminal for the second object and obtains the social attributes of the first object and the social attributes of the second object.
[0146] This step refers to step 201.
[0147] In some embodiments, the server's first database is used to store the social attributes of objects. In this example, the server retrieves the social attributes of the first object and the second object from the first database based on the identification information of the first object and the identification information of the second object in the object display request. In other embodiments, the server retrieves the social attributes of the first object and the social attributes of multiple second objects included in the session group from the first database based on the identification information of the session group in the object display request.
[0148] 407. The server compares the first field of the social attributes of the first object with the first field of the social attributes of the second object, where the first field indicates the organization to which the object belongs.
[0149] In this embodiment, the social attributes of an object include multiple fields, which describe the object's characteristics in the same social attribute. The first field indicates the organization to which the object belongs. By comparing the first field of the first object with the first field of the second object, the server can determine whether the first object and the second object belong to the same organization.
[0150] 408. If the first field of the social attribute of the first object is the same as the first field of the social attribute of the second object, the server determines the target resource from the first type of resources included in the object information resources of the second object and executes step 410.
[0151] In some embodiments, when it is determined that the first object and the second object belong to the same organization, the server further determines a more specific social relationship between the first object and the second object based on the social attributes of the first object and the second object, thereby identifying the target resource. The process of identifying the target resource will be explained below using two examples:
[0152] Method 1: The server queries the functional relationship corresponding to the second object based on the second field of the social attribute of the first object and the second field of the social attribute of the second object.
[0153] The second field indicates the function type of the object within its organization, and the function relationship indicates the social relationship between the function type of the second object and multiple function types within the organization to which the second object belongs.
[0154] Specifically, if the second field of the social attribute of the first object and the second field of the social attribute of the second object meet the criteria for a collaborative relationship, the target resource matching the collaborative relationship is determined from the first type of resources; if the second field of the social attribute of the first object and the second field of the social attribute of the second object meet the criteria for a management relationship, the target resource matching the management relationship is determined from the first type of resources.
[0155] The function type indicates the responsibilities and functions of an object within the organization. Based on the function type of an object, the social relationships between objects belonging to the same organization based on the connections between their function types can be further determined.
[0156] In some embodiments, the functional relationship is stored in the form of a relation table. The relation table corresponding to the functional relationship of the second object stores the social relationships between various functional types and the functional types of the second object. For example, the organization described by the second object includes function 1 and function 2. The secondary functions derived from function 1 are function 3 and function 4. If the second object belongs to function 3, then in the relation table, function 4 corresponds to the collaborative relationship between the second object, and function 1 corresponds to the management relationship with the second object.
[0157] The above technical solution determines social relationships based on the functional type of the organization to which the object belongs. From the perspective of internal responsibility allocation and functional collaboration, it determines the way the object is displayed. Without manual operation by the user, it can ensure that the displayed information is adapted to the social relationship between the two parties in the organizational structure. This not only improves the targeting of information when displaying objects, but also effectively improves the efficiency of human-computer interaction.
[0158] Method 2: The server compares the third field of the social attributes of the first object with the third field of the social attributes of the second object.
[0159] The third field indicates the level of the object within its organization.
[0160] Optionally, the value of the third field is a numeric type, and the magnitude of the field value indicates the level of the object. Based on this, by comparing the magnitude of the field values of the third field of the objects, the relative level between the objects can be determined. Specifically, if the third field of the social attribute of the first object is greater than the third field of the social attribute of the second object, the target resource matching the higher-level relationship is determined from the first type of resources; if the third field of the social attribute of the first object is less than the third field of the social attribute of the second object, the target resource matching the lower-level relationship is determined from the first type of resources; if the third field of the social attribute of the first object is equal to the third field of the social attribute of the second object, the target resource matching the same-level relationship is determined from the first type of resources.
[0161] In some embodiments, the value of the third field can be a character type. By constructing a character relationship mapping table, the level between different field values can be specified, thereby using the third field to compare the level between objects.
[0162] The above technical solution determines social relationships based on the hierarchical level of functions within an organization, thereby determining the display method. Without requiring manual user operation, it ensures that the displayed information matches the functional level order of both parties in the organizational structure. This not only effectively improves the targeting of object display but also enhances human-computer interaction efficiency.
[0163] Optionally, the server can determine the complex social relationship between the first object and the second object based on multiple fields in the object attributes. For example, based on the second field of the first object and the second object's second field, it can be determined that the first object and the second object have a collaborative relationship; based on the third field of the first object and the second object's third field, it can be determined that the first object's level is lower than the second object. Thus, it can be determined that the first object is subordinate to the second object, but there is a collaborative working relationship in terms of function. By combining multiple fields in the social attributes to obtain complex social relationships, the complexity of simulating social relationships is increased, further enhancing the flexibility of object display.
[0164] It should be noted that the second and third fields mentioned above are merely examples. The social attributes of an object may include more fields to represent more dimensions of information, thereby providing richer criteria for judging social relationships. This application embodiment does not limit this.
[0165] 409. If the first field of the social attributes of the first object is different from the first field of the social attributes of the second object, the server determines the target resource from the second type of resources included in the object information resources of the second object, and the display object of the second type of resource is an object of a different organization.
[0166] In some embodiments, when it is determined that the first object and the second object belong to different organizations, the server further obtains target resources matching the first object from the second type of resources of the second object based on the social attributes of the first object. The process of determining the target resource will be explained below using the two types of information included in the second type of resources as examples:
[0167] In some embodiments, the second type of resource includes multiple second images. The server determines the target second image matching the first object by comparing a first field of the first object with the organization identifiers of the multiple second images. The organization identifier of the second image indicates the organization to which the second image matches. If the target second image exists among the multiple second images, it is obtained; otherwise, a default image from the second type of resource is obtained. The organization identifier of the target second image matches the first field of the first object, meaning the target second image is the image used to display to the organization to which the first object belongs in the second type of resource. The default image is the image displayed by default to objects belonging to different organizations in the second type of resource. Optionally, the default image can be set by the second object or uniformly set by the management object of the organization to which the second object belongs; this application does not limit this.
[0168] By using the above technical solution, based on whether the organizations belong to the same entity, the target resources corresponding to the organization to which the first object belongs can be further accurately located, providing users with a personalized image display method for the organization to which the social object belongs, effectively improving the flexibility of object display.
[0169] In some embodiments, the second type of resource includes multiple object names of the second object. The server compares the first field of the first object with the organization identifier of the multiple object names, whereby the organization identifier of the object name indicates the organization to which the object name matches. If a target object name exists among the multiple object names, that target object name is obtained; otherwise, a default name from the second type of resource is obtained. The organization identifier of the target object name matches the first field of the first object; that is, the target object name is the object name used in the second type of resource to be displayed to the organization to which the first object belongs. The default name is the name displayed by default to objects belonging to different organizations. Optionally, the default name can be set by the second object or uniformly set by the management object of the organization to which the second object belongs; this application does not limit this.
[0170] Through the above technical solution, based on whether the organizations belong to the same entity, the target resource corresponding to the organization to which the first object belongs can be more accurately located, providing users with a personalized name display method for the organization to which the social object belongs, and further improving the flexibility of object display.
[0171] In other embodiments, the object information resource includes multiple sets of default messages sent by the second object, which are used to indicate the social intentions of the second object. For example, when conversing with a newly added social object, a self-introduction message with a welcome message is sent by default; when conversing with a cooperative client object belonging to a different organization, a self-introduction message with organizational information is sent by default; and when conversing with a higher-level object in the same organization, a self-introduction message with a polite greeting is sent by default.
[0172] In this example, the server determines the target resource from the object information resources of the second object by comparing the social intention indicated by the social attributes of the first object with the intention identifiers of the multiple sets of default messages. In some embodiments, if a target message exists among the multiple sets of default messages, the target message is retrieved, wherein the intention identifier of the target message matches the social intention of the first object.
[0173] In other embodiments, if the target message is not present in the multiple sets of default message sending messages, the server generates a message for the first object based on the social attributes of the first object and the second object. Optionally, the server obtains information such as the organization name, function, and level of the first object and the organization name, function, and level of the second object based on the social attributes of the first object and the second object, and then fills in the organization name, function, and level of the first object into the fields corresponding to the message recipient, and fills in the organization name, function, and level of the second object into the fields corresponding to the message sender, according to the default message format of the default message sending message.
[0174] The above technical solution can automatically match the default message corresponding to the social relationship, greatly enriching the information dimensions when displaying objects, saving users from the process of manual input, and improving the efficiency of human-computer interaction.
[0175] 410. The server obtains the target resource and sends the target resource to the first terminal.
[0176] In some embodiments, after obtaining the target resource, the server processes the target resource and then sends the processed target resource to the first terminal. In this example, step 410 includes steps 1 to 4 below.
[0177] Step 1: The server obtains the target resource.
[0178] The server obtains the target resource determined based on steps 406 to 409.
[0179] Step 2: If the target resource includes a target image, the server determines the image processing information for the target image based on the social attributes of the first object and the social attributes of the second object.
[0180] This image processing information includes various types of information used to add image effects.
[0181] In some embodiments, the image processing information includes a target organization to which the second object belongs, and this image processing information can be used to add an image corresponding to the target organization to the target image. In this example, the process of determining the image processing information includes: the server determining the target organization to which the second object belongs based on a first field of the social attributes of the second object; and the server obtaining at least one of a logo image and an organization name of the target organization based on the target organization. The logo image can be a static image or a dynamic image composed of multiple frames.
[0182] In other embodiments, the image information includes an image style type, such as a sketch style, cartoon style, or oil painting style. This image style type is used to add a static effect to the target image. Optionally, the server can determine the style preference of the second object based on the object attributes in the second object's social attributes, thereby determining the image style type that matches the second object's style preference. The object attributes include the object's style preference data during social interactions. Optionally, the object attributes can be set by the object, for example, by the object selecting multiple preferred image style types and ranking them according to preference. For example, the server can determine the second object's style preference based on the number of times the second object uses multiple image style types in the second object's object attributes.
[0183] In some embodiments, the image information includes image effect types, such as image flashing effects, text scrolling effects, or social intimacy effects. These image effect types can be used to add dynamic effects to the target image. Optionally, the server can determine the image effect type matching the social relationship between the first object and the second object based on the social attributes of the first object and the second object. For example, if the fifth field in the social attributes of an object indicates the social intimacy between the object and multiple objects, the server can determine the social intimacy between the first object and the second object based on the fifth fields in the social attributes of the first object and the second object, thereby determining the corresponding social intimacy effect based on the social intimacy.
[0184] Step 3: The server performs image processing on the target image based on the image processing information.
[0185] In some embodiments, the image processing information includes the target organization to which the second object belongs. The server adds an image corresponding to the target organization to the target image based on the organization's logo image and organization name. Optionally, the server can directly obtain the logo image and add it to the target image, for example, by adding it to the upper left corner of the target image; or, for example, the server can overlay the logo image as a layer onto the target image to achieve a semi-transparent display effect. Optionally, if the logo image is a dynamic image composed of multiple frames, the server can generate a logo animation based on the logo image and then overlay the logo animation onto the target image. The process of displaying the organization name is similar to the process of displaying the logo image and will not be described in detail here. Optionally, the server can adjust the font of the organization name.
[0186] In other embodiments, the image processing information includes an image style type that matches the style preferences of the second object. Optionally, each image style type corresponds to image processing parameters, such as brightness, color saturation, contrast, sharpness, and color temperature. The server adjusts the parameters of the target image based on the image processing parameters corresponding to the image style type to achieve the corresponding static effect in the target image.
[0187] In some other embodiments, the image processing information includes an image effect type that matches the social relationship between the first object and the second object. Optionally, the server can determine the area of the target image where dynamic effects need to be displayed based on the image effect type, such as an area in the target image that includes objects or text, and then overlay the corresponding image effect animation on that area to generate a target image with dynamic effects.
[0188] Step 4: The server sends the target resource to the first terminal.
[0189] Specifically, the server updates the target resource based on the processed target image, and then sends the updated target resource to the first terminal. For example, when the server processes the target image in the target resource, it stores the target resource in a cache. After processing the target image, the target resource in the server's cache is updated, and based on this, the server sends the updated target resource to the first terminal.
[0190] By using the above technical solutions, rich image effects can be added to the target image based on the social attributes of the object and the social relationships between the objects. This not only reflects the social attributes of the object and the social relationships between the objects when displaying the object, thereby increasing the amount of information revealed, but also enriches the visual effects from multiple dimensions, effectively improving the efficiency of human-computer interaction.
[0191] 411. The first terminal displays the second object in the target interface based on the target resource.
[0192] The definition and description of the target interface are referred to in step 201. For example, if a social application is running on the first terminal, the target interface can be the conversation interface when the first object and the second object have a one-on-one chat; the target interface can also be the conversation interface when the first object has a group chat with multiple second objects in a conversation group.
[0193] In some embodiments, the first terminal displays the second object by displaying various information, including the target image, target object name, and target sent message, in the target interface. In some embodiments, the first terminal can display the object name of the second object in the name display area of the target interface. In other embodiments, when the organization to which the first object belongs and the organization to which the second object belongs are different organizations, the first terminal can also display the object name of the second object and the organization name of the target organization to which the second object belongs in the name display area of the target interface.
[0194] To facilitate understanding of the display effect of the above-described conversation interface, this application provides a schematic diagram of the conversation interface, see below. Figure 6 , Figure 6 This includes Figures (a) and (b). Referring to Figure (a), if the first and second objects belong to the same organization, in a social scenario involving a chat group, the chat interface displays the second object's internal avatar 601, which is shown by the second object to objects within the same organization. In the name display area of the chat interface, the second object's internal name 602 is displayed, which is shown by the second object to objects within the same organization. Referring to Figure (b), if the first and second objects belong to different organizations, in a one-on-one social scenario, the chat interface displays the second object's external avatar 603, which is shown by the second object to the organization to which the first object belongs. In the name display area 604 of the chat interface, the second object's external name and the name of the organization to which the second object belongs are displayed, with the external name being shown by the second object to the organization to which the first object belongs.
[0195] Optionally, if the target image included in the target resource changes, for example, if the second object re-uploads a target image matching the first object, the first terminal displays the process of dynamically switching to the changed target image in the object icon based on the obtained changed target image, thereby providing a smooth display effect for the first object and improving the user experience.
[0196] The above technical solution can automatically determine the social relationship between objects based on their social attributes, thereby effectively matching different social relationships and displaying objects accordingly. This can efficiently and flexibly meet the different display needs brought about by complex social relationships without requiring frequent user operations, and effectively improve the efficiency of human-computer interaction.
[0197] The above Figure 4 In some embodiments, the server stores the object information resources. In other embodiments, the server functions as a scheduler for the object information resources, while a CDN server (other than the server) stores the object information resources. The following will describe an object display method provided by this application based on some embodiments. Figure 7 This is a flowchart of an object display method provided in an embodiment of this application. See also... Figure 7 The method includes:
[0198] 701. The second terminal displays an object setting interface, which is used to set the object information resources of the second object.
[0199] This step is similar to step 401 and will not be repeated here.
[0200] 702. The second terminal obtains the target resource of the second object and the social relationship matched by the target resource based on the input operation on the object's settings interface, wherein the target resource of the second object is used to display on the target interface of the first object, and the social attributes of the first object satisfy the social relationship.
[0201] This step is similar to step 402 and will not be repeated here.
[0202] 703. The second terminal stores the target resource in the CDN server and obtains the storage address of the target resource in the CDN server.
[0203] In some embodiments, the CDN server includes a source node and multiple edge storage nodes deployed in a distributed manner. Based on this, the second terminal can send the target resource to the source node, obtain the storage address of the target resource in the CDN server, and complete the process of storing the target resource. The source node distributes the target resource to multiple edge storage nodes, achieving multi-node cache backup.
[0204] 704. The second terminal saves the storage address of the target resource to the server.
[0205] In this embodiment, a CDN server stores object information resources with a large data volume, while the server itself only needs to handle a small amount of data, such as the social attributes of the object and the storage address of the object information resources. This effectively alleviates the storage pressure on the server, thereby improving the server's data processing efficiency and the efficiency of object display. In some embodiments, the server's first database is used to store the storage address of the target resource, as well as the social attributes of the first object and the social attributes of the second object.
[0206] 705. In response to the first object's operation based on the target interface, the first terminal sends an object display request to the server.
[0207] 706. The server responds to the object display request from the first terminal for the second object and obtains the social attributes of the first object and the social attributes of the second object.
[0208] 707. The server compares the first field of the social attributes of the first object with the first field of the social attributes of the second object, the first field indicating the organization to which the object belongs.
[0209] 708. If the first field of the social attribute of the first object is the same as the first field of the social attribute of the second object, the server determines the target resource from the first type of resources included in the object information resources of the second object and executes step 710.
[0210] 709. If the first field of the social attributes of the first object is different from the first field of the social attributes of the second object, the server determines the target resource from the second type of resources included in the object information resources of the second object, and the display object of the second type of resource is an object of a different organization.
[0211] Please refer to steps 405 to 409 for steps 705 to 709 above; they will not be repeated here.
[0212] 710. The server determines the storage address of the target resource.
[0213] In some embodiments, the server's first database is used to store the storage address of the target resource. Based on this, the server queries the storage path of the storage address in the first database, and then obtains the storage address from the first database.
[0214] Optionally, the storage address in the first database is the storage address of the target resource in the source node of the CDN. Based on this, the server can further determine the storage address of the target resource in the edge storage node closest to the first terminal based on the location information of the first terminal and the storage address in the first database. Optionally, the server can also determine the edge storage node that can provide good network transmission services for the first terminal based on the location information of the first terminal, and then determine the storage address of the target resource in the edge storage node, so as to further improve the speed at which the first terminal obtains the target resource.
[0215] 711. The server returns the storage address to the first terminal.
[0216] Optionally, the storage address may be a Uniform Resource Locator (URL) corresponding to the target resource, which is not limited in this application.
[0217] 712. The first terminal obtains the target resource from the CDN server based on the storage address.
[0218] In some embodiments, the first terminal can access the edge storage node closest to the first terminal in the CDN server, or the edge storage node with the best network transmission conditions, based on the storage address, thereby quickly and smoothly obtaining the target resource.
[0219] 713. The first terminal displays the second object in the target interface based on the target resource.
[0220] This step is similar to step 411 and will not be repeated here.
[0221] In some embodiments, the first terminal can further process the target resource to achieve rich visual effects when displaying the second object. Optionally, the first terminal can add rich image effects to the target image by performing image processing on the target image in the target resource. The principle is the same as in step 410, and will not be repeated here. In some embodiments, the first terminal can determine the image processing information involved in processing the target image based on the first object's image display preferences, such as the image style type, image effect type, and image processing parameters customized by the object.
[0222] To facilitate understanding of the interaction process between the server, CDN server, first terminal, and second terminal described above, this application provides a schematic diagram of an object display method, see below. Figure 8In this process, the second terminal 801 sends the target resource to the CDN server 802 and obtains the storage address of the target resource in the CDN server, then returns it to the server 803. The first database 804 of the server 803 is used to store the social attributes of the object and the storage address of the target resource. In response to the object display request from the first terminal 805, the server obtains the storage address of the target resource from the first database 804 and returns it to the first terminal 805, enabling the first terminal 805 to retrieve the target resource from the CDN server 802.
[0223] The technical solution provided by the embodiments of this application can automatically determine the social relationship between objects based on the social attributes of both parties, thereby effectively matching different social relationships and displaying objects in a targeted manner. Without frequent user operations, it can efficiently and flexibly meet the different display needs brought about by complex social relationships, effectively improving the efficiency of human-computer interaction.
[0224] Figure 9 This is a schematic diagram of the structure of an object display device provided in an embodiment of this application. See also... Figure 9 The device includes:
[0225] The acquisition module 901 is used to respond to the object display request of the first terminal for the second object, and acquire the social attributes of the first object and the social attributes of the second object. The object display request is triggered by the first object in the first terminal based on the target interface.
[0226] The determining module 902 is used to determine a target resource from the object information resources of the second object based on the social attributes of the first object and the social attributes of the second object, and the target resource matches the social relationship between the first object and the second object;
[0227] Display module 903 is used to provide the target resource to the first terminal so that the first terminal displays the second object in the target interface.
[0228] In one possible implementation, the determining module 902 includes:
[0229] The comparison unit is used to compare the first field of the social attributes of the first object with the first field of the social attributes of the second object, wherein the first field indicates the organization to which the object belongs;
[0230] The first determining unit is configured to determine the target resource from the first type of resources included in the object information resources of the second object if the first field of the social attribute of the first object is the same as the first field of the social attribute of the second object, wherein the display object of the first type of resource is an object within the same organization;
[0231] The second determining unit is configured to determine the target resource from the second type of resources included in the object information resources of the second object if the first field of the social attribute of the first object and the first field of the social attribute of the second object are different, wherein the display object of the second type of resource is an object of a different organization.
[0232] In one possible implementation, the first determining unit is used to:
[0233] Based on the second field of the social attributes of the first object and the second field of the social attributes of the second object, query the functional relationship corresponding to the second object. The second field indicates the functional type of the object within its organization, and the functional relationship indicates the social relationship between the functional type of the second object and multiple functional types within the organization to which the second object belongs.
[0234] If the second field of the social attribute of the first object and the second field of the social attribute of the second object match the collaboration relationship, then determine the target resource that matches the collaboration relationship from the first type of resources;
[0235] If the second field of the social attribute of the first object and the second field of the social attribute of the second object meet the management relationship, then the target resource that matches the management relationship is determined from the first type of resources.
[0236] In one possible implementation, the first determining unit is used to:
[0237] Compare the third field of the social attributes of the first object with the third field of the social attributes of the second object; the third field indicates the level of the object within its organization.
[0238] If the third field of the social attribute of the first object is greater than the third field of the social attribute of the second object, then determine the target resource that matches the higher-level relationship from the first type of resources;
[0239] If the third field of the social attribute of the first object is less than the third field of the social attribute of the second object, then determine the target resource that matches the low-level relationship from the first type of resources;
[0240] If the third field of the social attribute of the first object is equal to the third field of the social attribute of the second object, then determine the target resource that matches the same level relationship from the first type of resources.
[0241] In one possible implementation, the target resource includes a target image of the second object, and the apparatus further includes:
[0242] The information determination module is used to determine image processing information for the target image based on the social attributes of the first object and the social attributes of the second object;
[0243] The image processing module performs image processing on the target image based on the image processing information.
[0244] In one possible implementation, the information determination module is used to perform any of the following:
[0245] Based on the first field of the social attributes of the second object, the target organization to which the second object belongs in the image processing information is determined. The image processing information is used to add an image corresponding to the target organization to the target image. The image corresponding to the target organization is determined based on the logo image of the target organization and / or the organization name of the target organization.
[0246] Based on the social attributes of the second object, the image style type in the image processing information is determined. This image style type is used to add static effects to the target image, and the image style type matches the style preference of the second object.
[0247] Based on the social attributes of the first object and the second object, the image effect type in the image processing information is determined. This image effect type is used to add dynamic effects to the target image, and the image effect type is matched with the social relationship between the first object and the second object.
[0248] In one possible implementation, the second determining unit includes:
[0249] The determination subunit is used to determine the target resource that matches the first field of the social attribute of the first object from the second type of resources included in the object information resources of the second object.
[0250] In one possible implementation, the second type of resource includes a plurality of second images; the determining subunit is used for:
[0251] The first field of the first object is compared with the tissue identifier of the plurality of second images, wherein the tissue identifier of the second image indicates the tissue that the second image matches;
[0252] If a target second image exists among the plurality of second images, the target second image is obtained, and the tissue identifier of the target second image matches the first field of the first object;
[0253] If the target second image is not found among the multiple second images, obtain the default image from the second type of resource.
[0254] In one possible implementation, the second type of resource includes multiple object names of the second object; the determining subunit is used for:
[0255] The first field of the first object is compared with the organization identifier of the multiple object names, where the organization identifier of the object name indicates the organization that the object name matches;
[0256] If the target object name exists among the multiple object names, obtain the target object name, and the organization identifier of the target object name matches the first field of the first object;
[0257] If the target object name does not exist among the multiple object names, obtain the default name from the second type of resource.
[0258] In one possible implementation, the object information resource includes multiple sets of default messages sent by the second object, the default messages being used to indicate the social intentions of the second object; the determining module 802 is used to:
[0259] Compare the social intention indicated by the social attributes of the first object with the intention identifiers of the multiple sets of default messages;
[0260] If a target message exists among the multiple default message groups, retrieve the target message and match its intent identifier with the social intent of the first object.
[0261] If the target message is not present in the multiple default message groups, a message is generated for the first object based on the social attributes of the first object and the social attributes of the second object.
[0262] The technical solution provided by the embodiments of this application can automatically determine the social relationship between objects based on the social attributes of both parties, thereby effectively matching different social relationships and displaying objects in a targeted manner. Without frequent user operations, it can efficiently and flexibly meet the different display needs brought about by complex social relationships, effectively improving the efficiency of human-computer interaction.
[0263] It should be noted that the object display device provided in the above embodiments is only illustrated by the division of the above functional modules when performing the corresponding steps. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the computer device can be divided into different functional modules to complete all or part of the functions described above. In addition, the object display device and the object display method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.
[0264] Figure 10 This is a schematic diagram of the structure of an object display device provided in an embodiment of this application. See also... Figure 10 The device includes:
[0265] The display module 1001 is set to display the object setting interface, which is used to set the object information resources of the second object.
[0266] The resource acquisition module 1002 is used to acquire the target resource of the second object and the social relationship matched by the target resource based on the input operation on the object setting interface.
[0267] The target resource of the second object is used to display on the target interface of the first object, and the social attributes of the first object satisfy the social relationship.
[0268] In one possible implementation, the object settings interface includes a switch option for initiating the settings process for the target resource, and the device further includes:
[0269] The enable module provides configuration functions for the target resource in response to enabling the switch option.
[0270] In one possible implementation, the object information resource includes multiple object names of the second object;
[0271] The target resource includes the target object name among the plurality of object names used to display on the target interface of the first object.
[0272] In one possible implementation, the object information resource includes multiple sets of default messages sent by the second object, which are used to indicate the social intentions of the second object;
[0273] The target resource includes the target message from the multiple sets of default messages used to display on the target interface of the first object.
[0274] In one possible implementation, the social attribute includes the organization to which the object belongs, and the resource acquisition module is used to:
[0275] Based on the input operations on the object settings interface, obtain the target resource and the organization that matches the target resource.
[0276] In one possible implementation, the social attribute includes the object's job type and level within its organization, and the resource acquisition module 1002 is further used for:
[0277] If the organization to which the target resource is matched is the same as the organization to which the second object belongs, the functional type and / or level of the target resource matching is obtained based on the input operation on the object setting interface.
[0278] In one possible implementation, the object settings interface includes a preview option for generating the display effect of the target resource on the target interface of the first object; the apparatus further includes:
[0279] The preview module is used to display the display effect of the target resource on the target interface of the first object in response to the operation of enabling the preview option.
[0280] In the above technical solution, the terminal side provides users with object settings for setting information and uploading resources, thereby obtaining object information resources. This allows the server side to respond to object display requests by automatically determining the social relationship between the two social objects based on their social attributes. Then, it retrieves a target resource matching this social relationship from the object information resource, enabling the first terminal to display the second object based on this target resource. This technical solution automatically determines the social relationship between the two social objects based on their social attributes, effectively adapting to different social relationships and displaying objects accordingly. It eliminates the need for frequent user operations, efficiently and flexibly meeting the diverse display needs arising from complex social relationships, and effectively improving human-computer interaction efficiency.
[0281] It should be noted that the object display device provided in the above embodiments is only illustrated by the division of the above functional modules when performing the corresponding steps. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the computer device can be divided into different functional modules to complete all or part of the functions described above. In addition, the object display device and the object display method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.
[0282] This application provides a computer device for executing the object display method executed by the server described above. The server here is the aforementioned server 120. The structure of the server is described below:
[0283] Figure 11 This application provides a schematic diagram of a server structure. The server 1100 can vary significantly due to different configurations or performance. It may include one or more Central Processing Units (CPUs) 1101 and one or more memories 1102. Each memory 1102 stores at least one computer program, which is loaded and executed by the one or more processors 1101 to implement the methods provided in the above-described method embodiments. Of course, the server 1100 may also have wired or wireless network interfaces, a keyboard, and input / output interfaces for input / output. The server 1100 may also include other components for implementing device functions, which will not be elaborated upon here.
[0284] This application provides a computer device that can be implemented as the terminal 110 described above. The structure of the terminal is described below:
[0285] Figure 12 This is a schematic diagram of the structure of a terminal provided in an embodiment of this application. The terminal 1200 can be: a smartphone, tablet computer, smart TV, vehicle terminal, laptop computer, or desktop computer. The terminal 1200 may also be referred to as a terminal, portable terminal, laptop terminal, desktop terminal, or other names.
[0286] Typically, terminal 1200 includes one or more processors 1201 and one or more memories 1202.
[0287] Processor 1201 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 1201 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 1201 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 1201 may integrate a GPU (Graphics Processing Unit) for rendering and drawing content required for the display screen. In some embodiments, processor 1201 may also include an AI (Artificial Intelligence) processor for handling computational operations related to machine learning.
[0288] The memory 1202 may include one or more computer-readable storage media, which may be non-transitory. The memory 1202 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1202 are used to store at least one computer program, which is executed by the processor 1201 to implement the object display method provided in the method embodiments of this application.
[0289] In some embodiments, the terminal 1200 may also optionally include a peripheral device interface 1203 and at least one peripheral device. The processor 1201, memory 1202, and peripheral device interface 1203 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 1203 via a bus, signal line, or circuit board. Specifically, the peripheral device includes at least one of the following: a radio frequency circuit 1204, a display screen 1205, a camera assembly 1206, an audio circuit 1207, a positioning assembly 1208, and a power supply 1209.
[0290] Peripheral device interface 1203 can be used to connect at least one I / O (Input / Output) related peripheral device to processor 1211 and memory 1202. In some embodiments, processor 1211, memory 1202 and peripheral device interface 1203 are integrated on the same chip or circuit board; in some other embodiments, any one or two of processor 1201, memory 1202 and peripheral device interface 1203 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
[0291] The radio frequency (RF) circuit 1204 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The RF circuit 1204 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 1204 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals back into electrical signals. Optionally, the RF circuit 1204 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc.
[0292] Display screen 1205 is used to display a user interface (UI). This UI may include graphics, text, icons, video, and any combination thereof. When display screen 1205 is a touch display screen, it also has the ability to collect touch signals on or above its surface. These touch signals can be input as control signals to processor 1201 for processing. In this case, display screen 1205 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard.
[0293] The camera assembly 1206 is used to capture images or videos. Optionally, the camera assembly 1206 includes a front-facing camera and a rear-facing camera. Typically, the front-facing camera is located on the front panel of the terminal, and the rear-facing camera is located on the back of the terminal.
[0294] The audio circuit 1207 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals that are input to the processor 1201 for processing, or input to the radio frequency circuit 1204 to realize voice communication.
[0295] The positioning component 1208 is used to locate the current geographical location of the terminal 1200 in order to enable navigation or LBS (Location Based Service).
[0296] The power supply 1209 is used to supply power to the various components in the terminal 1200. The power supply 1209 can be AC power, DC power, a disposable battery, or a rechargeable battery.
[0297] In some embodiments, the terminal 1200 further includes one or more sensors 1210. The one or more sensors 1210 include, but are not limited to: an acceleration sensor 1211, a gyroscope sensor 1212, a pressure sensor 1213, an optical sensor 1214, and a proximity sensor 1215.
[0298] Accelerometer 1211 can detect the magnitude of acceleration on the three coordinate axes of a coordinate system established with terminal 1200.
[0299] The gyroscope sensor 1212 can detect the orientation and rotation angle of the terminal 1200. The gyroscope sensor 1212 can work in conjunction with the accelerometer sensor 1211 to collect the user's 3D movements on the terminal 1200.
[0300] The pressure sensor 1213 can be installed on the side bezel of the terminal 1200 and / or on the lower layer of the display screen 1205. When the pressure sensor 1213 is installed on the side bezel of the terminal 1200, it can detect the user's grip signal on the terminal 1200, and the processor 1201 can perform left / right hand recognition or quick operation based on the grip signal collected by the pressure sensor 1213. When the pressure sensor 1213 is installed on the lower layer of the display screen 1205, the processor 1201 can control the operable controls on the UI interface based on the user's pressure operation on the display screen 1205.
[0301] Optical sensor 1214 is used to collect ambient light intensity. In one embodiment, processor 1201 can control the display brightness of display screen 1205 based on the ambient light intensity collected by optical sensor 1214.
[0302] The proximity sensor 1215 is used to detect the distance between the user and the front of the terminal 1200.
[0303] Those skilled in the art will understand that Figure 12The structure shown does not constitute a limitation on terminal 1200 and may include more or fewer components than shown, or combine certain components, or use different component arrangements.
[0304] In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory including a computer program that can be executed by a processor to perform the object display method in the above embodiments. For example, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device, etc.
[0305] In an exemplary embodiment, a computer program product or computer program is also provided, which includes program code stored in a computer-readable storage medium. A processor of a computer device reads the program code from the computer-readable storage medium and executes the program code, causing the computer device to perform the object display method described above.
[0306] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.
[0307] The above are merely optional embodiments of this application and are not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A method for displaying an object, characterized in that, The method includes: In response to an object display request from the first terminal for a second object, the social attributes of the first object and the social attributes of the second object are obtained. The object display request is triggered by the first object in the first terminal based on the target interface. In a social scenario based on organizational structure, the social attributes of the object include the organization to which the object belongs. Based on the social attributes of the first object and the second object, a target resource is determined from the object information resources of the second object. The target resource is matched with the social relationship between the first object and the second object. The social relationship is the social relationship between the first object and the second object, and the social relationship between the first object and the second object is used to describe whether the first object and the second object belong to the same organization. Provide the target resource to the first terminal so that the first terminal displays the second object in the target interface; The object display request is triggered by launching the social application, and the object display request is used to request the display of the second object in the conversation list interface of the social application; or, The object display request is triggered by an operation whereby the first object initiates a session with the second object. The object display request is used to request the display of the second object in the session interface where the first object and the second object are having a session; or... The object display request is triggered by the first object's operation of initiating a session for the session group. The object display request is used to request the display of multiple objects, including the second object, in the session interface of the session group.
2. The method according to claim 1, characterized in that, The step of determining the target resource from the object information resource of the second object based on the social attributes of the first object and the social attributes of the second object includes: Comparing the first field of the social attributes of the first object with the first field of the social attributes of the second object, the first field indicates the organization to which the object belongs; If the first field of the social attribute of the first object is the same as the first field of the social attribute of the second object, the target resource is determined from the first type of resources included in the object information resources of the second object, and the display object of the first type of resource is an object within the same organization; If the first field of the social attributes of the first object is different from the first field of the social attributes of the second object, the target resource is determined from the second type of resources included in the object information resources of the second object, and the display object of the second type of resource is an object of a different organization.
3. The method according to claim 2, characterized in that, The determination of the target resource from the first type of resources included in the object information resources of the second object includes: Based on the second field of the social attributes of the first object and the second field of the social attributes of the second object, query the functional relationship corresponding to the second object. The second field indicates the functional type of the object within its organization. The functional relationship indicates the social relationship between the functional type of the second object and multiple functional types within the organization to which the second object belongs. If the second field of the social attribute of the first object and the second field of the social attribute of the second object match the collaboration relationship, determine the target resource that matches the collaboration relationship from the first type of resources; If the second field of the social attribute of the first object and the second field of the social attribute of the second object meet the management relationship, the target resource that matches the management relationship is determined from the first type of resources.
4. The method according to claim 2, characterized in that, The determination of the target resource from the first type of resources included in the object information resources of the second object includes: Comparing the third field of the social attributes of the first object with the third field of the social attributes of the second object, the third field indicates the level of the object within its organization; If the third field of the social attribute of the first object is greater than the third field of the social attribute of the second object, then determine the target resource that matches the higher-level relationship from the first type of resources; If the third field of the social attribute of the first object is less than the third field of the social attribute of the second object, then determine the target resource that matches the low-level relationship from the first type of resources; If the third field of the social attribute of the first object is equal to the third field of the social attribute of the second object, then determine the target resource that matches the same level relationship from the first type of resources.
5. The method according to any one of claims 2 to 4, characterized in that, The target resource includes a target image of the second object, and the method further includes: Based on the social attributes of the first object and the social attributes of the second object, image processing information for the target image is determined; Based on the image processing information, image processing is performed on the target image.
6. The method according to claim 5, characterized in that, The determination of image processing information for the target image based on the social attributes of the first object and the social attributes of the second object includes any one of the following: Based on the first field of the social attributes of the second object, the target organization to which the second object belongs in the image processing information is determined. The image processing information is used to add an image corresponding to the target organization to the target image. The image corresponding to the target organization is determined based on the logo image of the target organization and / or the organization name of the target organization. Based on the social attributes of the second object, the image style type in the image processing information is determined. The image style type is used to add static effects to the target image, and the image style type matches the style preference of the second object. Based on the social attributes of the first object and the second object, the image effect type in the image processing information is determined. The image effect type is used to add dynamic effects to the target image, and the image effect type is matched with the social relationship between the first object and the second object.
7. The method according to claim 2, characterized in that, The determination of the target resource from the second type of resources included in the object information resources of the second object includes: From the second type of resources included in the object information resources of the second object, determine the target resource that matches the first field of the social attribute of the first object.
8. The method according to claim 7, characterized in that, The second type of resource includes multiple second images; the determination of the target resource that matches the first field of the social attribute of the first object from the second type of resource including the object information resource of the second object includes: The first field of the first object is compared with the tissue identifier of the plurality of second images, wherein the tissue identifier of the second image indicates the tissue that the second image matches; If a target second image exists among the plurality of second images, the target second image is obtained, and the organization identifier of the target second image matches the first field of the first object; If the target second image is not present among the plurality of second images, a default image from the second type of resources is obtained.
9. The method according to claim 7, characterized in that, The second type of resource includes multiple object names of the second object; the step of determining the target resource that matches the first field of the social attribute of the first object from the second type of resource including the object information resource of the second object includes: The first field of the first object is compared with the organization identifier of the plurality of object names, wherein the organization identifier of the object name indicates the organization that the object name matches; If a target object name exists among the plurality of object names, the target object name is obtained, and the organization identifier of the target object name matches the first field of the first object; If the target object name is not found among the multiple object names, obtain the default name from the second type of resource.
10. The method according to claim 1, characterized in that, The object information resource includes multiple sets of default messages sent by the second object, and the default messages are used to indicate the social intentions of the second object. The step of determining the target resource from the object information resource of the second object based on the social attributes of the first object and the social attributes of the second object includes: Compare the social intention indicated by the social attributes of the first object with the intention identifiers of the multiple sets of default message sending; If a target message exists among the multiple default message groups, the target message is obtained, and the intention identifier of the target message is matched with the social intention of the first object. If the target message is not present in the multiple default message sets, a message is generated for the first object based on the social attributes of the first object and the social attributes of the second object.
11. A method for displaying an object, characterized in that, The method includes: Display object settings interface, the object settings interface is used to set object information resources of the second object; Based on the input operations on the object settings interface, the target resources of the second object and the organizations matched by the target resources are obtained, and the social relationships matched by the target resources are determined. Wherein, the target resource of the second object is used to display on the target interface of the first object, and the social attributes of the first object satisfy the social relationship; in the social scenario based on organizational structure, the social attributes of the object include the organization to which the object belongs; the social relationship is used to describe whether the object and the second object belong to the same organization.
12. The method according to claim 11, characterized in that, The object settings interface includes a switch option, which is used to initiate the setting process for the target resource. The method further includes: In response to enabling the switch option, setting functions for the target resource are provided.
13. The method according to claim 11, characterized in that, The object information resource includes multiple object names of the second object; The target resource includes the target object name among the plurality of object names used to display on the target interface of the first object.
14. The method according to claim 11, characterized in that, The object information resource includes multiple sets of default messages sent by the second object, and the default messages are used to indicate the social intentions of the second object. The target resource includes the target message used to display on the target interface of the first object from the multiple sets of default sent messages.
15. The method according to claim 14, characterized in that, The social attributes include the object's job type and level within its organization, and the method further includes: If the organization to which the target resource is matched is the same as the organization to which the second object belongs, the functional type and / or level of the target resource matching is obtained based on the input operation on the object setting interface.
16. The method according to claim 11, characterized in that, The object settings interface includes a preview option, which is used to generate the display effect of the target resource on the target interface of the first object; the method further includes: In response to enabling the preview option, the display effect of the target resource on the target interface of the first object is displayed in the object settings interface.
17. An object display device, characterized in that, The device includes: The acquisition module is used to respond to an object display request from the first terminal for the second object, and acquire the social attributes of the first object and the second object. The object display request is triggered by the first object in the first terminal based on the target interface. In a social scenario based on organizational structure, the social attributes of the object include the organization to which the object belongs. The determining module is used to determine a target resource from the object information resource of the second object based on the social attributes of the first object and the social attributes of the second object, wherein the target resource matches the social relationship between the first object and the second object; wherein the social relationship is the social relationship between the first object and the second object, and the social relationship between the first object and the second object is used to describe whether the first object and the second object belong to the same organization; A display module is configured to provide the target resource to the first terminal so that the first terminal displays the second object in the target interface; The object display request is triggered by launching the social application, and the object display request is used to request the display of the second object in the conversation list interface of the social application; or, The object display request is triggered by an operation whereby the first object initiates a session with the second object. The object display request is used to request the display of the second object in the session interface where the first object and the second object are having a session; or... The object display request is triggered by the first object's operation of initiating a session for the session group. The object display request is used to request the display of multiple objects, including the second object, in the session interface of the session group.
18. An object display device, characterized in that, The device includes: A display module is set up to display the object setting interface, which is used to set the object information resources of the second object. The resource acquisition module is used to acquire the target resource of the second object and the organization matched by the target resource based on the input operation on the object setting interface, and to determine the social relationship matched by the target resource; Wherein, the target resource of the second object is used to display on the target interface of the first object, and the social attributes of the first object satisfy the social relationship; in the social scenario based on organizational structure, the social attributes of the object include the organization to which the object belongs; the social relationship is used to describe whether the object and the second object belong to the same organization.
19. A computer device, characterized in that, The computer device includes one or more processors and one or more memories, wherein at least one computer program is stored in the one or more memories, the computer program being loaded and executed by the one or more processors to implement the object display method as described in any one of claims 1 to 10, or the object display method as described in any one of claims 11 to 16.
20. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one computer program, which is loaded and executed by a processor to implement the object display method as described in any one of claims 1 to 10, or the object display method as described in any one of claims 11 to 16.
21. A computer program product, characterized in that, The computer program product includes program code stored in a computer-readable storage medium, a processor of a computer device reads the program code from the computer-readable storage medium, and the processor executes the program code, causing the computer device to perform the object display method as described in any one of claims 1 to 10, or the object display method as described in any one of claims 11 to 16.
Citation Information
Patent Citations
Method and device for displaying head portrait for social application
CN105141507A
Method for setting plurality of user pictures specific to different contacts
CN106533906A