Photo response method, photo display method, device and computer equipment
Patent Information
- Application Number
- CN202310783535.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-28
- Publication Date
- 2026-09-04
- Estimated Expiration
- 2043-06-28
AI Technical Summary
在该情形下,当数据量较大时,用户需要花费额外进行寻找目标数据,例如用户需要在诸多照片中寻找到自己希望看到的照片,若用户网络情况较差,则会进一步增加目标照片的获取难度
[0031] The aforementioned photo response method, photo display method, apparatus, and computer device improve photo response capabilities by acquiring photo request data sent by a user interface; acquiring interface information of the user interface based on the photo request data; determining a photo response strategy based on the interface information; and pushing the corresponding target response photo to the user interface according to the photo response strategy.
Smart Images

Figure CN116866706B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a photo response method, a photo display method, an apparatus, and a computer device. Background Technology
[0002] Messaging apps typically support group functionality. Group members can discuss topics; or, groups can facilitate quick message notifications and information sharing without requiring individual conversations with each member. In addition to text, group members can send images, such as photos, within the group chat interface.
[0003] In related technologies, different users receive responses with identical data formats when requesting the same set of data. In this scenario, when the data volume is large, users need to expend extra time searching for the target data. For example, a user might need to find the photo they want among many others. If the user's network connection is poor, this further increases the difficulty of obtaining the target photo.
[0004] There is still no effective solution to the problem of poor data response capability in related technologies. Summary of the Invention
[0005] Therefore, it is necessary to provide a photo response method, photo display method, device, and computer equipment that can improve data response capabilities in response to the above-mentioned technical problems.
[0006] Firstly, this application provides a photo-response method applied to a server. The method includes:
[0007] Retrieve photo request data sent by the user interface;
[0008] Based on the photo request data, obtain the interface information of the user interface;
[0009] Based on the interface information, determine the photo response strategy;
[0010] The corresponding target response photo is pushed to the user interface according to the photo response strategy.
[0011] In one embodiment, the interface information includes historical response time parameters, and obtaining the interface information of the user interface includes: obtaining the number of responses and response time of the user interface within a preset time period; calculating an average response parameter based on the number of responses and response time; and using the average response parameter as the historical response time parameter.
[0012] In one embodiment, the interface information includes photo size parameters, and the interface information for obtaining the user interface includes: obtaining the average size parameters of newly uploaded photos and the average size parameters of historical photos within a preset time period; generating a total average photo size parameter based on the average size parameters of newly uploaded photos and the average size parameters of historical photos; and using the total average photo size parameter as the photo size parameter.
[0013] In one embodiment, the interface information includes historical response time parameters, photo size parameters, and a preset number of photos to be displayed. Determining the photo response strategy based on the interface information includes: calculating a strategy parameter based on the historical response time parameters, photo size parameters, and the preset number of photos to be displayed; if the strategy parameter is less than or equal to a first parameter threshold, then the photo response strategy is determined to be a first response strategy; if the strategy parameter is greater than the first parameter threshold and less than or equal to a second parameter threshold, then the photo response strategy is determined to be a second response strategy; if the strategy parameter is greater than the second parameter threshold, then the photo response strategy is determined to be a third response strategy; the number of photos to be displayed under the first response strategy is greater than the number of photos to be displayed under the second response strategy; the number of photos to be displayed under the second response strategy is greater than the number of photos to be displayed under the third response strategy.
[0014] In one embodiment, pushing the corresponding target response photo to the user interface according to the photo response strategy includes: obtaining user identity information based on the photo request data; determining a photo response list based on the user identity information; determining the number of photos to be displayed according to the photo response strategy; determining the target response photo based on the number of photos to be displayed and the photo response list, and pushing it to the user interface.
[0015] In one embodiment, determining the photo response list based on the user identity information includes: determining a user-associated object based on the user identity information; and determining the photo response list based on the user-associated object.
[0016] In one embodiment, determining the photo response list based on the user identity information includes: performing face recognition on the photos in the photo response list to determine face detection boxes; calculating the ratio of the area of the face detection box to the area of the corresponding photo to obtain photo quality parameters; and adjusting the photo order in the photo response list according to the photo quality parameters.
[0017] Secondly, this application also provides a photo display method applied to a display terminal, the method comprising: sending photo request data, the photo request data including interface information of the display terminal;
[0018] The server receives a target response photo based on the photo request data, wherein the target response photo is pushed to the display terminal through a photo response strategy.
[0019] The photo display strategy is determined based on the photo response data and the interface information;
[0020] Photos are displayed according to the aforementioned photo display strategy.
[0021] Thirdly, this application also provides a photo-response device. The device includes:
[0022] The acquisition module is used to acquire photo request data sent by the user interface;
[0023] The parsing module is used to obtain the interface information of the user interface based on the photo request data;
[0024] The processing module is used to determine the photo response strategy based on the interface information.
[0025] The response module is used to push the corresponding target response photo to the user interface according to the photo response strategy.
[0026] Fourthly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to perform the following steps:
[0027] Retrieve photo request data sent by the user interface;
[0028] Based on the photo request data, obtain the interface information of the user interface;
[0029] Based on the interface information, determine the photo response strategy;
[0030] The corresponding target response photo is pushed to the user interface according to the photo response strategy.
[0031] The aforementioned photo response method, photo display method, apparatus, and computer device improve photo response capabilities by acquiring photo request data sent by a user interface; acquiring interface information of the user interface based on the photo request data; determining a photo response strategy based on the interface information; and pushing the corresponding target response photo to the user interface according to the photo response strategy. Attached Figure Description
[0032] Figure 1 This is a diagram illustrating the application environment of the photo response method in one embodiment;
[0033] Figure 2 This is a flowchart illustrating a photo response method in one embodiment;
[0034] Figure 3 This is a flowchart illustrating a method for viewing class photos in one embodiment;
[0035] Figure 4 This is a flowchart illustrating the process of creating class characters in one embodiment;
[0036] Figure 5 This is a flowchart illustrating the process of marking class members in one embodiment;
[0037] Figure 6 This is a flowchart illustrating the process of generating the average response time in one embodiment;
[0038] Figure 7 This is a flowchart illustrating the daily scheduled scanning process for a scheduled task in one embodiment;
[0039] Figure 8 This is a schematic diagram illustrating the process of parents viewing photos in one embodiment;
[0040] Figure 9 This is a flowchart illustrating an online photo collection method in one embodiment;
[0041] Figure 10 This is a structural block diagram of a photo response device in one embodiment;
[0042] Figure 11 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0043] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0044] With the development of instant messaging technology, the education industry has strengthened the connection between parents and schools through home-school communication. Schools and parents establish communication groups through instant messaging software to share student activities and jointly support student growth. In related technologies, when sharing student photos, teachers upload photos, and the system calls a third-party facial recognition interface to identify the coordinates of faces and save them in a local database. The identified faces are used as avatars and form face groups, with each person corresponding to a face group with the same group ID. Teachers can tag students and teachers by face classification, labeling them with their names. When users view photos, they send a request to the server and retrieve the corresponding photos. However, regardless of the user, the returned data is the same: photos posted in the same order by the teachers in that class. Many parents actually care more about photos related to their own children; and regardless of network conditions, the returned data remains unchanged, which can lead to long loading times on poor network conditions, resulting in a poor user experience. Therefore, there is an urgent need for a photo response solution to improve photo responsiveness and optimize the user experience.
[0045] The photo response method provided in this application embodiment can be applied to, for example... Figure 1 In the application environment shown, terminal 102 communicates with server 104 via a network. A data storage system can store the data that server 104 needs to process. The data storage system can be integrated onto server 104 or located in the cloud or on other network servers. Terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, etc. Portable wearable devices can include smartwatches, smart bracelets, head-mounted devices, etc. Server 104 can be implemented using a standalone server or a server cluster consisting of multiple servers.
[0046] In one embodiment, such as Figure 2 As shown, a photo response method is provided, which can be applied to... Figure 1 Taking the server in the example, the following steps are included:
[0047] Step S201: Obtain the photo request data sent by the user interface.
[0048] Specifically, the user interface serves as the medium for interaction and information exchange between the system and the user. In this embodiment, sending photo request data through the user interface means that the user sends a data request through a terminal. This terminal includes, but is not limited to, personal computers, tablets, smartphones, smartwatches, and smart bracelets. The server receives the photo request data.
[0049] Step S202: Obtain the interface information of the user interface based on the photo request data.
[0050] Specifically, after receiving photo request data, the server parses the data and retrieves interface information by querying the database. Preferably, this interface information includes one or more of the following: historical response time parameters, photo size parameters, and preset photo display quantity. The historical response time parameter is calculated based on historical request records and response data from the port sending the photo request data. This parameter characterizes the network status of the user interface; a smaller historical response time parameter indicates a better network status. Understandably, the network status of the user interface can also be characterized by other parameters, such as real-time monitoring and reporting of the network status, and determining the user's network status based on the reporting results. The photo size parameter refers to the data size of the requested photo. The unit for the photo size parameter can be KB or MB. The photo size parameter can be the file size of a single photo or the total file size of multiple photos. The preset photo display quantity refers to the number of photos displayed on the user interface. Given the differences in display area and network status among different user terminals, the preset photo display quantity can be adjusted to improve the user browsing experience.
[0051] Step S203: Determine the photo response strategy based on the interface information.
[0052] Specifically, based on historical response time parameters, photo size parameters, and preset photo display quantity, it can be determined whether the current network status of the user interface can quickly display photos. Based on the user's real-time network status and the size of the file to be received, different photo response strategies are selected.
[0053] Step S204: Push the corresponding target response photo to the user interface according to the photo response strategy.
[0054] Specifically, based on a preset photo response strategy, relevant target response photos are pushed to the user interface. For example, if the network conditions at the user interface are good, photos related to the user are prioritized for push to the user interface; if the network conditions at the user interface are poor, the quality of the photos pushed to the user interface is reduced or the number of photos displayed on the user interface is reduced, so as to reduce user waiting time and improve user experience.
[0055] The photo response method based on this application's embodiments obtains user requests, determines the network status of the user interface based on the user requests, and adjusts different photo response strategies accordingly. This solves the problem in related technologies where photo responses are not personalized for each user, resulting in slow response data reception and long user waiting times. It achieves photo response by adjusting different response strategies for different user interfaces, shortening user waiting time, optimizing user experience, and improving photo data response capabilities.
[0056] In one embodiment, the interface information includes historical response time parameters, and obtaining the interface information of the user interface includes: obtaining the number of responses and response time of the user interface within a preset time period; calculating an average response parameter based on the number of responses and response time; and using the average response parameter as the historical response time parameter.
[0057] Specifically, the duration of the preset time period can be configured according to actual needs. The response time is the time required to transmit a unit of data during the current response process, for example, the time taken to transmit 1kb of photo data. The unit of response time can be milliseconds. An average response parameter is determined based on a weighted calculation of the number of responses and the response time, and this average response parameter is used as the historical response time parameter. For example: if the preset time period is 1 day, the number of responses is 5, and the response time is the time taken to transmit 1kb of photo data, and the response times for these 5 responses are 1ms, 2ms, 3ms, 4ms, and 5ms respectively, then the average response parameter is the ratio of the sum of the 5 response times to the number of responses, i.e., (1+2+3+4+5) / 5 = 3ms. Therefore, 3ms is used as the historical response time parameter.
[0058] In one embodiment, the interface information includes photo size parameters, and the interface information for obtaining the user interface includes: obtaining the average size parameters of newly uploaded photos and the average size parameters of historical photos within a preset time period; generating a total average photo size parameter based on the average size parameters of newly uploaded photos and the average size parameters of historical photos; and using the total average photo size parameter as the photo size parameter.
[0059] Specifically, when users browse photos, they may browse historical photos. To ensure a good user experience, this application obtains both the average size parameter of recently uploaded photos and the average size parameter of historical photos, and generates a total average photo size parameter through weighted calculation. Selecting a response strategy based on the total average photo size parameter can avoid the problem of slow response times for historical photos.
[0060] In one embodiment, the interface information includes historical response time parameters, photo size parameters, and a preset number of photos to be displayed. Determining the photo response strategy based on the interface information includes: calculating a strategy parameter based on the historical response time parameters, photo size parameters, and the preset number of photos to be displayed; if the strategy parameter is less than or equal to a first parameter threshold, then the photo response strategy is determined to be a first response strategy; if the strategy parameter is greater than the first parameter threshold and less than or equal to a second parameter threshold, then the photo response strategy is determined to be a second response strategy; if the strategy parameter is greater than the second parameter threshold, then the photo response strategy is determined to be a third response strategy; the number of photos to be displayed under the first response strategy is greater than the number of photos to be displayed under the second response strategy; the number of photos to be displayed under the second response strategy is greater than the number of photos to be displayed under the third response strategy.
[0061] Specifically, the preset number of photos displayed per page on the user interface is denoted as N, the photo size parameter is Y, and the historical response time parameter is X. The total response time for this response is: S = N * Y * X / 1000, which is the strategy parameter. If the strategy parameter is less than or equal to the first parameter threshold, it indicates a good network condition, and the response can be directly based on the photo sorting. If the strategy parameter is greater than the first parameter threshold and less than or equal to the second parameter threshold, it indicates a generally poor network condition for the user interface, and the number of photos displayed per page is halved. If the strategy parameter is greater than the second parameter threshold, it indicates a poor network condition for the user interface, and the number of photos displayed per page is adjusted to one-quarter of the preset number, while still meeting basic user browsing needs. It is understood that the first parameter threshold, the second parameter threshold, and the number of photos displayed per page in this embodiment can all be adjusted according to actual needs. For example, the first parameter threshold can be a value between 0.1s and 1s, and the second parameter threshold can be a value between 2s and 5s. The number of photos displayed per page can also be one-third or one-fifth, etc.
[0062] Preferably, the photo response strategy takes into account both the number of photos distributed and the number of photos displayed. When the network conditions of the user interface are poor, the number of photo responses is reduced by adjusting the photo response list. At the same time, the photo display strategy is calculated and sent to the user terminal. The number of photos to be displayed on the user terminal according to the number of photos to be displayed in the display interface is set by the photo display strategy.
[0063] In one embodiment, the response strategy is also designed based on image quality; higher image quality results in a larger image data volume. For example, if the strategy parameter is less than or equal to a first threshold, it indicates a good network condition, and the response can be directly based on the photo sorting. If the strategy parameter is greater than the first threshold but less than or equal to a second threshold, it indicates a generally poor network condition at the user interface, and the number of photos displayed per page is halved. If the strategy parameter is greater than the second threshold, it indicates a poor network condition at the user interface, in which case the photos are compressed, reducing the image quality of each image, and the number of photos displayed on the page is adjusted to one-quarter of the preset number of photos.
[0064] In one embodiment, pushing the corresponding target response photo to the user interface according to the photo response strategy includes: obtaining user identity information based on the photo request data; determining a photo response list based on the user identity information; determining the number of photos to be displayed according to the photo response strategy; determining the target response photo based on the number of photos to be displayed and the photo response list, and pushing it to the user interface.
[0065] Specifically, by parsing photo request data, the user's identity information, such as device ID or IP address, is determined for the user interface. Based on this identity information, the list of photo responses that the user can query is determined. For example, in a home-school communication scenario, the user's identity information is determined based on the photo request data. Generally, the user is a student's parent. After determining the parent's identity, the class the parent belongs to is identified, and their photo response list consists of a set of photos from that class and a set of photos of the parent's own children. These two photo sets constitute the photo response list. Then, based on the photo response strategy, the number of photos to display is determined, and finally, the target response photos are identified and pushed.
[0066] In one embodiment, determining the photo response list based on the user identity information includes: determining a user-associated object based on the user identity information; and determining the photo response list based on the user-associated object.
[0067] Specifically, user identities are pre-associated with the identities of people in photos. When a user views a photo, the system retrieves a collection of photos associated with that user. For example, when a teacher uploads a photo, they can associate the student with their parent. When a parent requests to view a student's photos, they can see all of that student's personal photos.
[0068] In one embodiment, based on calculating the correlation between the user's identity and the identity of the person in the photo, the facial orientation of the target person in the photo is also detected. Preferably, photos of the associated person whose face is facing the camera are placed at the top of the photo response list for photo response.
[0069] In one embodiment, based on calculating the correlation between the user's identity and the identity of the person in the photo, the imaging position of the target person in the photo is detected. Preferably, the photo with the associated person in the center is placed at the beginning of the photo response list for photo response.
[0070] In one embodiment, determining the photo response list based on the user identity information includes: performing face recognition on the photos in the photo response list to determine face detection boxes; calculating the ratio of the area of the face detection box to the area of the corresponding photo to obtain photo quality parameters; and adjusting the photo order in the photo response list according to the photo quality parameters.
[0071] Specifically, facial recognition technology is used to identify faces in photos. Photos with a larger proportion of faces are considered to have higher quality parameters. When responding to photos, photos with higher quality parameters that are relevant to the user are prioritized for display. This photo response method enhances the personalization of photo recommendations, placing the photos the user expects at the top of the photo response list and improving the user's browsing experience.
[0072] In one embodiment, this application also provides a photo display method applied to a display terminal. The method includes: sending photo request data, the photo request data including interface information of the display terminal; receiving a target response photo from a server based on the photo request data, wherein the target response photo is pushed to the display terminal through a photo response strategy; determining a photo display strategy based on the photo response data and the interface information; and displaying the photo according to the photo display strategy.
[0073] Specifically, the aforementioned display terminal used by the user can flexibly select different display schemes based on the size of the photo response data, the number and content of the response photos, and the interface information of the display terminal. For example, when the network conditions of the user interface are poor, the number of photos displayed on the display interface can be reduced, and / or, photos with a large proportion of the person's face and a high degree of relevance to the current user can be prioritized for display.
[0074] In one embodiment, a method for viewing class photos is provided, such as Figure 3 As shown, the method includes:
[0075] Step S301: The teacher creates class characters.
[0076] Step S302: The teacher marks the students in the class.
[0077] Step S303: The server generates the average response time and the average photo size.
[0078] Step S304: The server selects a response strategy.
[0079] Step S305: Parents view the published photos.
[0080] Step S306: Parents save photos online.
[0081] In one embodiment, such as Figure 4 As shown, the process of creating a class character includes:
[0082] First, teachers select photos to upload, add photos and tags, and then click upload. Tags include spring outing, autumn outing, sports meet, etc., and these tags can be customized.
[0083] The process involves calling a third-party face recognition API to identify whether a photo contains a face. Photos without faces are directly saved to a database table, along with the photo size and response data size. If a photo contains a face, the app returns the face coordinates and groups the faces. Faces of the same student share the same group ID. After grouping, the grouping data is saved to the database table. This grouping data generates student groups for the current class, referred to as "class members." Saving the class members and their photos completes the photo upload process.
[0084] In one embodiment, such as Figure 5 As shown, the process of teachers marking students in the class includes:
[0085] Step S501: The teacher enters the class character editing interface.
[0086] Specifically, teachers can access the class's character list, click on an avatar to mark a character, and a pop-up window will display the names of all characters in the current class, including students and teachers.
[0087] Step S502: The teacher sets the character's name.
[0088] Specifically, the teacher selects the corresponding task based on the photo to complete the person labeling, which means establishing the association between the person and the group ID. Later, when parents view the photos, the group photos corresponding to the students who have been linked by the parents will be displayed first.
[0089] Step S503: The teacher clicks "Save Data".
[0090] In one embodiment, such as Figure 6 As shown, the process of generating the average response time includes:
[0091] Step S601: The user accesses the program's homepage.
[0092] Step S602: Record the request ID and time.
[0093] Step S603: After the front-end responds with all the data, it reports the request ID and time.
[0094] Step S604: Save the data.
[0095] Step S605: Scheduled daily scan.
[0096] Step S606: Obtain the average response time of each user on the current day and the average response time of the user's history, and take the average as the new average historical response time of the user.
[0097] Specifically, based on the user's average request interface response time and the size of the interface response data, the average response time per kilobyte (in milliseconds) for each user is calculated. Whenever a user accesses a fixed interface on the application's homepage, the server records the request ID and request time. After the frontend successfully loads all data, it reports the current time, request ID, and response data size to the server. A scheduled task scans the corresponding table data at a fixed time each day. Based on the scan results, the average response time per kilobyte for each user is generated. For example, if users A, B, and C make 5, 10, and 15 requests respectively, with varying response data sizes each time, the request times and sizes for A's 5 requests, B's 10 requests, and C's 15 requests can be summed to obtain the total request time and total request data size for A, B, and C. This summation yields the average response time per kilobyte for each user. The calculated data is then saved.
[0098] In one embodiment, such as Figure 7 As shown, the daily scheduled scanning process for the scheduled task also includes:
[0099] Step S701: Perform a daily scan via a scheduled task.
[0100] Step S702: Record the request ID and time.
[0101] Step S703: After the front-end responds with all the data, it reports the request ID and time.
[0102] Specifically, a scheduled task scans the table data of photos uploaded by teachers at fixed times each day. Based on the scan results, the average size of all photos for the current class is generated. The average size of newly uploaded photos is then calculated by averaging the sizes of historical photos to generate a new average photo size for the class.
[0103] To improve user browsing experience and optimize server responsiveness, this embodiment designs a response strategy based on relevant research. In 1982, IBM engineer Walter Doherty published a study showing that the optimal time for a computer to respond to a request is approximately 400 milliseconds. This time is known as the "Doherty threshold," and for many, it has become a benchmark for computer request response. According to Nielsen's 1993 concept of tolerable waiting time for webpage loading, there are three time intervals: 0.1 seconds, a delay that users cannot perceive, as the system does not require any special loading process and completes operation instantly; 1 second, a delay that users can slightly perceive, but a delay within one second will not interrupt the user's workflow. Therefore, a delay of 0.1s to 1s does not require a special loading process from the system, but this delay already disrupts the user's smooth operation. 10 seconds: This is the limit at which the user will not be distracted. If it exceeds 10 seconds, the user will want to perform other operations, so loading feedback during this period is essential.
[0104] In this embodiment, three response strategies are formulated based on the Doherty threshold and Nielsen's tolerable waiting time to provide users with the best possible experience. The average response time (X, in milliseconds) for 1kb of user data and the average size (Y, in kb) of photos uploaded by teachers in the current class are obtained. If the preset number of photos displayed per page is N, then the total response time is: S = N * Y * X / 1000, where the unit of the total response time S is seconds. Based on the range of S, the following response strategies are generated: If S is less than 1 second (i.e., the strategy parameter is less than the first parameter threshold), indicating good network conditions, the first response strategy is executed, directly placing photos with a higher proportion of avatars at the top of the photo response list, and responding based on the photos in the photo response list; if S is greater than 1 second but less than 3 seconds (i.e., the strategy parameter is greater than the first parameter threshold but less than or equal to the second parameter threshold), indicating average network conditions, the second response strategy is executed, halving the number of photos displayed to N / 2; if S is greater than 3 seconds (i.e., the strategy parameter is greater than the second parameter threshold), indicating poor network conditions, the third response strategy is executed, reducing the number of displayed photos to N / 4 while still satisfying basic user browsing needs.
[0105] In one specific embodiment, a method for parents to view photos is provided, such as Figure 8 As shown, the method includes:
[0106] Step S801: The user views the photos sent by the teacher.
[0107] Step S802: Obtain the average response time of the current user's homepage interface and the average size of the photos uploaded by the current class teacher.
[0108] Step S803: Obtain the number of photos per page in the current interface request from the front end.
[0109] Step S804: Calculate the total response time.
[0110] Step S805: Execute the response strategy.
[0111] Step S806: Summarize the data on a monthly basis, with a maximum of 10 months' worth of photos displayed on one page, and the photos for each month laid out flat.
[0112] Step S807: Find the category with the largest proportion of the corresponding tag from the monthly data and display it, such as "April Sports Meet" and "March Spring Outing".
[0113] In one embodiment, a method for online photo collection is also provided, such as... Figure 9 As shown, the method includes:
[0114] Step S901: The user views the photos posted by the teacher.
[0115] Step S902: Obtain the photos associated with the current user.
[0116] Step S903: Zoom in on the photo to view it, and add the photo to the album by adding album tags.
[0117] Step S904, addition successful.
[0118] Specifically, when parents browse photos posted by teachers, they can click on a single photo to view a larger version. An "Add to Album" button appears in the upper right corner of the photo; clicking this button adds the photo to the default album. Through this online photo collection method, users can view, browse, and share photos saved in the default album. Users no longer need to manually save their favorite photos to their local device each time, thus saving user time and device storage space.
[0119] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0120] Based on the same inventive concept, this application also provides a photo response apparatus for implementing the photo response method described above. The solution provided by this apparatus is similar to the implementation described in the above method; therefore, the specific limitations in one or more photo response apparatus embodiments provided below can be found in the limitations of the photo response method described above, and will not be repeated here.
[0121] In one embodiment, such as Figure 10 As shown, a photo response device is provided, including: an acquisition module 10, a parsing module 20, a processing module 30, and a response module 40, wherein:
[0122] Module 10 is used to acquire photo request data sent by the user interface;
[0123] The parsing module 20 is used to obtain the interface information of the user interface based on the photo request data;
[0124] Processing module 30 is used to determine the photo response strategy based on the interface information;
[0125] The response module 40 is used to push the corresponding target response photo to the user interface according to the photo response strategy.
[0126] The parsing module 20 is also used to obtain the number of responses and the response time within a preset time period of the user interface; calculate the average response parameter based on the number of responses and the response time; and use the average response parameter as a historical response time parameter.
[0127] The parsing module 20 is also used to obtain the average size parameter of newly uploaded photos and the average size parameter of historical photos within a preset time period; generate the total average size parameter of photos based on the average size parameter of newly uploaded photos and the average size parameter of historical photos; and use the total average size parameter of photos as the photo size parameter.
[0128] The processing module 30 is further configured to calculate a strategy parameter based on the historical response time parameter, the photo size parameter, and the preset number of photos to be displayed; if the strategy parameter is less than or equal to a first parameter threshold, the photo response strategy is determined to be a first response strategy; if the strategy parameter is greater than the first parameter threshold and less than or equal to a second parameter threshold, the photo response strategy is determined to be a second response strategy; if the strategy parameter is greater than the second parameter threshold, the photo response strategy is determined to be a third response strategy; the number of photos displayed under the first response strategy is greater than the number of photos displayed under the second response strategy; the number of photos displayed under the second response strategy is greater than the number of photos displayed under the third response strategy.
[0129] The response module 40 is further configured to: obtain user identity information based on the photo request data; determine a photo response list based on the user identity information; determine the number of photos to be displayed according to the photo response strategy; and determine the target response photo based on the number of photos to be displayed and the photo response list, and push it to the user interface.
[0130] The response module 40 is also used to determine the user's associated object based on the user's identity information; and to determine the photo response list based on the user's associated object.
[0131] The response module 40 is further configured to perform face recognition on the photos in the photo response list to determine face detection boxes; calculate the ratio of the area of the face detection box to the area of the corresponding photo to obtain photo quality parameters; and adjust the photo order in the photo response list according to the photo quality parameters.
[0132] Each module in the aforementioned photo response device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.
[0133] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 11As shown, the computer device includes a processor, memory, and a network interface connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database stores photographic data. The network interface communicates with external terminals via a network connection. When executed by the processor, the computer program implements a photographic response method.
[0134] Those skilled in the art will understand that Figure 11 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0135] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0136] Retrieve photo request data sent by the user interface;
[0137] Based on the photo request data, obtain the interface information of the user interface;
[0138] Based on the interface information, determine the photo response strategy;
[0139] The corresponding target response photo is pushed to the user interface according to the photo response strategy.
[0140] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.
[0141] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:
[0142] Retrieve photo request data sent by the user interface;
[0143] Based on the photo request data, obtain the interface information of the user interface;
[0144] Based on the interface information, determine the photo response strategy;
[0145] The corresponding target response photo is pushed to the user interface according to the photo response strategy.
[0146] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.
[0147] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:
[0148] Retrieve photo request data sent by the user interface;
[0149] Based on the photo request data, obtain the interface information of the user interface;
[0150] Based on the interface information, determine the photo response strategy;
[0151] The corresponding target response photo is pushed to the user interface according to the photo response strategy.
[0152] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0153] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0154] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0155] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0156] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A photo response method, applied to a server, characterized in that, The method includes: Retrieve photo request data sent by the user interface; Based on the photo request data, obtain the interface information of the user interface; Based on the interface information, determine the photo response strategy; According to the photo response strategy, the corresponding target response photo is pushed to the user interface; The interface information includes historical response time parameters, photo size parameters, and a preset number of photos to display; the historical response time parameters are used to characterize the network status of the user interface; the photo size parameters refer to the data size of the photos requested by the user; and the preset number of photos to display refers to the number of photos displayed on the user interface. The step of determining the photo response strategy based on the interface information includes: Calculate the strategy parameters based on the historical response time parameter, the photo size parameter, and the preset number of photos to display; If the strategy parameter is less than or equal to the first parameter threshold, then the photo response strategy is determined to be the first response strategy; If the strategy parameter is greater than the first parameter threshold and less than or equal to the second parameter threshold, then the photo response strategy is determined to be the second response strategy. If the strategy parameter is greater than the second parameter threshold, then the photo response strategy is determined to be the third response strategy; The first response strategy displays more photos than the second response strategy. The second response strategy displays more photos than the third response strategy.
2. The photo response method according to claim 1, characterized in that, The interface information includes historical response time parameters, and the interface information for obtaining the user interface includes: Get the number of responses and response time of the user interface within a preset time period; Calculate the average response parameter based on the number of responses and the response time; The average response parameter is used as the historical response time parameter.
3. The photo response method according to claim 1, characterized in that, The interface information includes photo size parameters, and the interface information for obtaining the user interface includes: Get the average size of newly uploaded photos and the average size of historical photos within a preset time period; Based on the average size parameter of the newly uploaded photos and the average size parameter of the historical photos, a total average photo size parameter is generated; The average size of the total number of photos is used as the photo size parameter.
4. The photo response method according to claim 1, characterized in that, The step of pushing the corresponding target response photo to the user interface according to the photo response strategy includes: Based on the photo request data, obtain the user's identity information; Based on the user identity information, determine the photo response list; Based on the photo response strategy, determine the number of photos to be displayed corresponding to the photo response strategy; Based on the number of photos displayed and the photo response list, the target response photo is determined and pushed to the user interface.
5. The photo response method according to claim 4, characterized in that, The step of determining the photo response list based on the user identity information includes: The user's associated objects are determined based on the user's identity information; Based on the user's associated object, determine the photo response list.
6. The photo response method according to claim 4, characterized in that, After determining the photo response list based on the user identity information, the process includes: Perform face recognition on the photos in the photo response list to determine the face detection box; Calculate the ratio of the area of the face detection bounding box to the area of the corresponding photo to obtain the photo quality parameters; The order of photos in the photo response list is adjusted based on the photo quality parameters.
7. A photo display method, applied to a display terminal, characterized in that, The method includes: Sending photo request data, the photo request data including the interface information of the display terminal; the interface information including historical response time parameters, photo size parameters, and preset photo display quantity; the historical response time parameters are used to characterize the network status of the user interface; the photo size parameters refer to the data size of the photo requested by the user; the preset photo display quantity refers to the number of photos displayed on the user interface; The server receives a target response photo based on the photo request data, wherein the target response photo is pushed to the display terminal according to a photo response strategy. The server is configured to obtain the historical response time parameter, the photo size parameter, and the preset number of photos to be displayed based on the photo request data; calculate a strategy parameter based on the historical response time parameter, the photo size parameter, and the preset number of photos to be displayed; if the strategy parameter is less than or equal to a first parameter threshold, the photo response strategy is determined to be a first response strategy; if the strategy parameter is greater than the first parameter threshold and less than or equal to a second parameter threshold, the photo response strategy is determined to be a second response strategy; if the strategy parameter is greater than the second parameter threshold, the photo response strategy is determined to be a third response strategy; the number of photos displayed under the first response strategy is greater than the number of photos displayed under the second response strategy; the number of photos displayed under the second response strategy is greater than the number of photos displayed under the third response strategy. The photo display strategy is determined based on the photo response data and the interface information; Photos are displayed according to the aforementioned photo display strategy.
8. A photo-response device, characterized in that, The device includes: The acquisition module is used to acquire photo request data sent by the user interface; The parsing module is used to obtain the interface information of the user interface based on the photo request data. The interface information includes historical response time parameters, photo size parameters, and preset photo display quantity. The historical response time parameters are used to characterize the network status of the user interface. The photo size parameters refer to the data size of the photos requested by the user. The preset photo display quantity refers to the number of photos displayed on the user interface. The processing module is used to determine the photo response strategy based on the interface information. The response module is used to push the corresponding target response photo to the user interface according to the photo response strategy; The processing module is further configured to calculate a strategy parameter based on the historical response time parameter, the photo size parameter, and the preset number of photos to be displayed; if the strategy parameter is less than or equal to a first parameter threshold, the photo response strategy is determined to be a first response strategy; if the strategy parameter is greater than the first parameter threshold and less than or equal to a second parameter threshold, the photo response strategy is determined to be a second response strategy; if the strategy parameter is greater than the second parameter threshold, the photo response strategy is determined to be a third response strategy; the number of photos displayed under the first response strategy is greater than the number of photos displayed under the second response strategy; the number of photos displayed under the second response strategy is greater than the number of photos displayed under the third response strategy.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Picture processing method and device, equipment and storage medium
CN115797147A
Representing a group identity in a social network
US8832570B1