CN116866706A - Photo response method, photo display method, device and computer equipment - Google Patents

Photo response method, photo display method, device and computer equipment Download PDF

Info

Publication number
CN116866706A
CN116866706A CN202310783535.XA CN202310783535A CN116866706A CN 116866706 A CN116866706 A CN 116866706A CN 202310783535 A CN202310783535 A CN 202310783535A CN 116866706 A CN116866706 A CN 116866706A
Authority
CN
China
Prior art keywords
photo
response
parameter
determining
policy
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310783535.XA
Other languages
Chinese (zh)
Inventor
葛文乐
张玺
王震
饶剑雄
张美丽
宣灵佳
王彦苏
金旦娣
陈颖
杭承政
蔡益平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Hailiang Technology Co ltd
Original Assignee
Zhejiang Hailiang Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Hailiang Technology Co ltd filed Critical Zhejiang Hailiang Technology Co ltd
Priority to CN202310783535.XA priority Critical patent/CN116866706A/en
Publication of CN116866706A publication Critical patent/CN116866706A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application relates to a photo response method, a photo display device and computer equipment. The method comprises the following steps: acquiring photo request data sent by a user interface; acquiring interface information of a user interface according to the photo request data; determining a photo response strategy according to the interface information; and pushing the corresponding target response photo to the user interface according to the photo response policy. The method can improve the response capability of the photo data.

Description

Photo response method, photo display method, device and computer equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a photo response method, a photo display device, and a computer device.
Background
Communication applications typically support group functions. Topic discussion can be realized among the group members in the group; alternatively, group-based quick messaging, information sharing, etc. may be achieved without having to separately talk to each group member. In addition to text, group members may send images, such as photographs, etc., within the chat interface of the group.
In the related art, after different users send requests for the same group of data, the data forms of the obtained response data are consistent. In this case, when the data amount is large, the user needs to spend additional searching for the target data, for example, the user needs to find the photo which he wants to see from among the photos, and if the network condition of the user is poor, the difficulty of obtaining the target photo is further increased.
For the problem of low data response capability in the related art, no effective solution has yet emerged.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a photograph response method, a photograph showing apparatus, and a computer device capable of improving data response capability.
In a first aspect, the present application provides a photo response method, which is applied to a server. The method comprises the following steps:
acquiring photo request data sent by a user interface;
acquiring interface information of a user interface according to the photo request data;
determining a photo response strategy according to the interface information;
and pushing the corresponding target response photo to the user interface according to the photo response policy.
In one embodiment, the interface information includes a historical response time parameter, and the obtaining the interface information of the user interface includes: acquiring response times and response time of a user interface in a preset time period; calculating an average response parameter according to the response times and the response time; and taking the average response parameter as a historical response time parameter.
In one embodiment, the interface information includes a photo size parameter, and the obtaining the interface information of the user interface includes: acquiring an average size parameter of a newly uploaded photo and an average size parameter of a historical photo in a preset time period; generating a total photo average size parameter according to the newly uploaded photo average size parameter and the historical photo average size parameter; and taking the average size parameter of the total photos as a photo size parameter.
In one embodiment, the interface information includes a historical response time parameter, a photo size parameter, and a preset number of photo displays, and determining the photo response policy according to the interface information includes: calculating strategy parameters according to the historical response time parameters, the photo size parameters and the preset photo display quantity; if the policy parameter is smaller than or equal to a first parameter threshold, determining that the photo response policy is a first response policy; if the policy parameter is greater than the first parameter threshold and less than or equal to the second parameter threshold, determining that the photo response policy is a second response policy; if the policy parameter is greater than a second parameter threshold, determining that the photo response policy is a third response policy; the number of photo displays of the first response strategy is larger than that of the second response strategy; the number of photo displays of the second response policy is greater than the number of photo displays of the third response policy.
In one embodiment, the pushing the corresponding target response photo to the user interface according to the photo response policy includes: acquiring user identity information according to the photo request data; determining a photo response list according to the user identity information; determining the number of photo displays corresponding to the photo response strategy according to the photo response strategy; and determining a target response photo according to the photo display quantity and the photo response list, and pushing the target response photo to a user interface.
In one embodiment, the determining a photo response list according to the user identity information includes: determining a user association object according to the user identity information; and determining a photo response list according to the user associated object.
In one embodiment, after determining the photo response list according to the user identity information, the method includes: performing face recognition on the photos in the photo response list, and determining a face detection frame; calculating the ratio of the area of the face detection frame to the area of the corresponding photo to obtain a photo quality parameter; and adjusting the photo sequence of the photo response list according to the photo quality parameters.
In a second aspect, the present application further provides a photo display method, applied to a display terminal, where the method includes: the method comprises the steps of sending photo request data, wherein the photo request data comprises interface information of the display terminal;
receiving a target response photo responded by the 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 according to the photo response data and the interface information;
and performing photo display according to the photo display strategy.
In a third aspect, the present application further provides a photo response device. The device comprises:
the acquisition module is used for acquiring photo request data sent by the user interface;
the analysis module is used for acquiring interface information of a user interface according to the photo request data;
the processing module is used for determining a photo response strategy according to the interface information;
and the response module is used for pushing the corresponding target response photo to the user interface according to the photo response strategy.
In a fourth aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor which when executing the computer program performs the steps of:
Acquiring photo request data sent by a user interface;
acquiring interface information of a user interface according to the photo request data;
determining a photo response strategy according to the interface information;
and pushing the corresponding target response photo to the user interface according to the photo response policy.
The photo response method, the photo display device and the computer equipment are used for acquiring photo request data sent by a user interface; acquiring interface information of a user interface according to the photo request data; determining a photo response strategy according to the interface information; and pushing the corresponding target response photo to the user interface according to the photo response strategy, so that the technical effect of improving the photo response capability is realized.
Drawings
FIG. 1 is an application environment diagram of a photo response method in one embodiment;
FIG. 2 is a flow diagram of a photo response method in one embodiment;
FIG. 3 is a flow diagram of a class photo review method in one embodiment;
FIG. 4 is a schematic flow diagram of creating a class character in one embodiment;
FIG. 5 is a schematic flow diagram of a label class persona in one embodiment;
FIG. 6 is a flow diagram of generating response average time in one embodiment;
FIG. 7 is a flow diagram of a timed task daily timed scan in one embodiment;
FIG. 8 is a flow diagram of a parent viewing a photograph, in one embodiment;
FIG. 9 is a flow diagram of a method for online collection of photographs in one embodiment;
FIG. 10 is a block diagram of a photo response device in one embodiment;
FIG. 11 is an internal block diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
Along with the development of instant messaging technology, education industry also strengthens the connection between parents and schools on the interconnection of home and school. Communication groups are established between schools and parents through instant messaging software, the dynamic state of students is shared, and the students are cared for growth together. In the related technology, when sharing the photo of the student, the teacher uploads the photo, the system calls a third-party face recognition interface, the coordinates of the face are recognized, and the coordinates are stored in a local database. The identified faces are used as head portraits and face groups are formed, each person corresponds to one face group, and the group IDs are the same. The teacher can mark students and teacher names through face classification. When the user views the photo, the user sends a request to the server and acquires the corresponding photo. However, whatever the user, the data returned is the same, and the order of photos issued by the class teacher. Many parents are actually more concerned about photos related to their own family and children; and regardless of the network, the returned data is unchanged, and can be loaded for too long time under the condition of poor network, so that the user experience is naturally poor. Therefore, a photo response scheme is needed to improve photo response capability and optimize user experience.
The photo response method provided by the embodiment of the application can be applied to an application environment shown in figure 1. Wherein the terminal 102 communicates with the server 104 via a network. The data storage system may store data that the server 104 needs to process. The data storage system may be integrated on the server 104 or may be located on a cloud or other network server. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices, and portable wearable devices, where the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart vehicle devices, and the like. The portable wearable device may be a smart watch, smart bracelet, headset, or the like. The server 104 may be implemented as a stand-alone server or as a server cluster of multiple servers.
In one embodiment, as shown in fig. 2, a photo response method is provided, and the method is applied to the server in fig. 1 for illustration, and includes the following steps:
step S201, photo request data sent by the user interface is acquired.
Specifically, the user interface is the medium for interaction and information exchange between the system and the user. In this embodiment, the user transmitting the photo request data through the user interface means that the user transmits the data request through the terminal. The terminal includes, but is not limited to, personal computers, tablet computers, smart phones, smart watches, smart bracelets, and the like. The server receives the photograph request data.
Step S202, according to the photo request data, the interface information of the user interface is obtained.
Specifically, after receiving the photo request data, the server parses the photo request data and obtains interface information by querying a database, where the interface information preferably includes one or more of a historical response time parameter, a photo size parameter, and a preset photo display number. The historical response time parameter is a parameter calculated according to the historical request record of the sending port of the photo request data and the historical response data, the parameter is used for representing the network state of the user interface, and the smaller the historical response time parameter is, the better the network state of the user interface is indicated. It will be appreciated that the network state of the user interface may also be characterized by other parameters, such as real-time detection and reporting of the network state of the user interface, and determining the network state of the user based on the reporting result. The photo size parameter refers to the amount of data of a photo requested by a user. The unit of the photo size parameter may be kb or Mb. The photo size parameter may be the file size of a single photo or the total file size of a plurality of photos. The preset photo display number refers to the number of photos that are presented on the user interface. In view of the differences of the display areas and the network states of different user terminals, the display quantity of the preset photos can be adjusted so as to improve the browsing experience of the user.
Step S203, according to the interface information, determining a photo response strategy.
Specifically, according to the historical response time parameter, the photo size parameter and the preset photo display quantity, whether the current network state of the user interface can display photos quickly or not can be determined, and different photo response strategies are selected based on the real-time network state of the user and the size of the file to be received.
Step S204, pushing corresponding target response photos to the user interface according to the photo response policies.
Specifically, based on a preset photo response policy, pushing a corresponding target response photo to the user interface. For example, if the network state of the user interface is good, preferentially pushing photos related to the user interface; if the network state of the user interface is poor, the quality of the pictures pushed to the user interface is reduced or the number of the pictures displayed on the user interface is reduced, so that the waiting time of the user is reduced, and the user experience is improved.
Based on the photo response method provided by the embodiment of the application, the user request is acquired, the network state of the user interface is judged according to the user request, and different photo response strategies are adjusted, so that the problems of slow response data receiving and long user waiting time caused by the fact that photo responses are not personalized for users in the related technology are solved. The photo response method and device based on the photo data has the advantages that photo response is achieved by adjusting different response strategies for different user interfaces, waiting time of users is shortened, user experience is optimized, and response capability of photo data is improved.
In one embodiment, the interface information includes a historical response time parameter, and the obtaining the interface information of the user interface includes: acquiring response times and response time of a user interface in a preset time period; calculating an average response parameter according to the response times and the response time; and taking the average response parameter as a historical response time parameter.
Specifically, the duration of the preset time period can be configured according to actual needs. The response time is a time required for transmitting a unit data amount in the course of the response, for example, a time taken for transmitting 1kb of photo data, and the unit of the response time may be milliseconds. And carrying out weighted calculation based on the response times and the response time, determining an average response parameter, and taking the average response parameter as a historical response time parameter. For example: the preset time period is 1 day, the response times are 5, the response time is the time for transmitting 1kb of photo data, the response times of the 5 times are 1ms, 2ms, 3ms, 4ms and 5ms respectively, the average response parameter is the ratio of the sum of the 5 response times to the response times, namely (1+2+3+4+5)/5=3 ms, and the 3ms is taken as the historical response time parameter.
In one embodiment, the interface information includes a photo size parameter, and the obtaining the interface information of the user interface includes: acquiring an average size parameter of a newly uploaded photo and an average size parameter of a historical photo in a preset time period; generating a total photo average size parameter according to the newly uploaded photo average size parameter and the historical photo average size parameter; and taking the average size parameter of the total photos as a photo size parameter.
Specifically, when a user browses photos, there is a situation of browsing historical photos, in order to ensure the browsing experience of the user, in the application, the average size parameter of the recently uploaded photos is obtained, the average size parameter of the historical photos is also obtained, and the average size parameter of the total photos is generated through weighted calculation. The response strategy is selected based on the average size parameter of the total photos, so that the problem of slow response speed of the historical photos can be avoided.
In one embodiment, the interface information includes a historical response time parameter, a photo size parameter, and a preset number of photo displays, and determining the photo response policy according to the interface information includes: calculating strategy parameters according to the historical response time parameters, the photo size parameters and the preset photo display quantity; if the policy parameter is smaller than or equal to a first parameter threshold, determining that the photo response policy is a first response policy; if the policy parameter is greater than the first parameter threshold and less than or equal to the second parameter threshold, determining that the photo response policy is a second response policy; if the policy parameter is greater than a second parameter threshold, determining that the photo response policy is a third response policy; the number of photo displays of the first response strategy is larger than that of the second response strategy; the number of photo displays of the second response policy is greater than the number of photo displays of the third response policy.
Specifically, the preset photo display number of each page of the display interface of the user interface is recorded as N, the photo size parameter is Y, the historical response time parameter is X, and the total response time of the response is: s=n×y×x/1000, the response time is the policy parameter. If the policy parameter is smaller than or equal to the first parameter threshold, the network state is good, and the photos are directly responded according to the photo ordering. If the policy parameter is larger than the first parameter threshold and smaller than or equal to the second parameter threshold, indicating that the current user interface network condition is general, and halving the number of pictures displayed on each page of the display interface; if the policy parameter is greater than the second parameter threshold, the network condition of the user interface is poor, and the page photo display quantity is adjusted to be one fourth of the preset photo display quantity under the condition that the basic browsing of the user is met. It can be appreciated that the first parameter threshold, the second parameter threshold and the number of page photos displayed in this embodiment may be adjusted according to actual needs, for example, the first parameter threshold may be a value within 0.1s to 1s, and the second parameter threshold may be a value within 2s to 5 s. The number of photo displays within a page may also be one third or one fifth, etc.
Preferably, the photo response strategy gives consideration to the photo distribution quantity and the photo display quantity, when the network condition of the user interface is poor, the photo response quantity is reduced by adjusting the photo response list, meanwhile, the photo display strategy is calculated and sent to the user terminal, and the photo display quantity set by the user terminal according to the photo display strategy is displayed in the display interface.
In one embodiment, the response strategy is also designed in combination with the picture quality, the higher the picture quality, the larger the picture data amount. For example, if the policy parameter is less than or equal to the first parameter threshold, it indicates that the network state is good, and the photos are directly responded according to the photo ordering. If the policy parameter is greater than the first parameter threshold and less than or equal to the second parameter threshold, indicating that the network state of the user interface is general, and halving the number of pictures displayed on each page of the display interface; if the policy parameter is greater than the second parameter threshold, the network condition of the user interface is poor, at the moment, the photos are compressed, the picture quality of each picture is reduced, and meanwhile, the display quantity of the page photos is adjusted to be one fourth of the display quantity of the preset photos.
In one embodiment, the pushing the corresponding target response photo to the user interface according to the photo response policy includes: acquiring user identity information according to the photo request data; determining a photo response list according to the user identity information; determining the number of photo displays corresponding to the photo response strategy according to the photo response strategy; and determining a target response photo according to the photo display quantity and the photo response list, and pushing the target response photo to a user interface.
Specifically, by analyzing the photo request data, user identity information of the user interface, such as a device ID or an IP address, is determined, and a photo response list that can be queried by the user is determined according to the user identity information. For example, in a communication scenario of interconnection of home and school, user identity information is determined according to photo request data, typically, a user is a parent of a student, after determining the identity of the parent of the student, a class in which the parent of the student is located is determined, and a photo response list is a photo set in the class and a photo set of a child of the parent. The two photo sets are photo response lists, then the photo display quantity is determined according to a photo response strategy, and then target response photos are determined and pushed.
In one embodiment, the determining a photo response list according to the user identity information includes: determining a user association object according to the user identity information; and determining a photo response list according to the user associated object.
Specifically, the identity of the user is associated with the identity of the person in the photo in advance, and when the user views the photo, a photo set of the user associated object can be obtained. For example: when a teacher uploads the photo, the teacher can associate the student with the parents of the student, and when the parents request to view the photo of the student, the parents can view all personal photos of the student.
In one embodiment, on the basis of calculating the association degree between the user identity and the person identity in the photo, the face orientation of the target person in the photo is detected, and preferably, the photo with the face orientation of the person associated with the photo in the photo is placed in the front position of the photo response list for photo response.
In one embodiment, on the basis of calculating the association degree between the user identity and the person identity in the photo, the imaging position of the target person in the photo is detected, and preferably, the photo centered on the position of the associated person in the photo is placed in the front position of the photo response list for photo response.
In one embodiment, after determining the photo response list according to the user identity information, the method includes: performing face recognition on the photos in the photo response list, and determining a face detection frame; calculating the ratio of the area of the face detection frame to the area of the corresponding photo to obtain a photo quality parameter; and adjusting the photo sequence of the photo response list according to the photo quality parameters.
Specifically, the face in the photo is identified through the face identification technology, the photo with the relatively large face is judged to be the photo with the relatively good photo quality parameter, and the photo with the relatively good photo quality parameter associated with the user is preferentially displayed to the user when photo response is carried out. By the photo response method, personalized differences of photo pushing can be improved, photos expected by a user are placed in the front of a photo response list, and browsing experience of the user is improved.
In one embodiment, the application further provides a photo display method applied to the display terminal, and the method comprises the following steps: the method comprises the steps of sending photo request data, wherein the photo request data comprises interface information of the display terminal; receiving a target response photo responded by the 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 according to the photo response data and the interface information; and performing photo display according to the photo display strategy.
Specifically, the display terminal used by the user can flexibly select different display schemes according to the number and content of the photo response data and interface information of the display terminal, for example, when the network condition of the user interface is poor, the number of photo displays on the display interface is reduced, and/or photos with large face occupation of the person in the photo and high association degree with the current user are preferentially displayed.
In one embodiment thereof, there is provided a class photo viewing method, as shown in fig. 3, comprising:
in step S301, the teacher creates a class character.
In step S302, the teacher marks the class character.
In step S303, the server generates a response average time and a photo average size.
In step S304, the server selects a response policy.
In step S305, the parent views the released photograph.
In step S306, the parents collect photos online.
In one embodiment, as shown in FIG. 4, the process of creating a class character includes:
firstly, a teacher selects to upload photos, and clicks to upload after completing the photos and labels. Labels include spring and autumn, sports, etc., which support customization.
And calling a third-party face recognition interface to recognize whether the face is contained or not, and directly storing the photo which does not contain the face into a database table, wherein the stored data also comprises the size of the photo and the size of response data. If the photo contains a face, the face coordinates are returned, face grouping is carried out, face grouping IDs of the same students are the same, and the face grouping IDs are stored in a database table after grouping is completed. The data from the group will generate a class student group for the current class, called a class persona. And saving the class characters and the photos, and finishing the photo uploading process.
In one embodiment, as shown in FIG. 5, the process of the teacher marking the class character includes:
In step S501, the teacher enters the class character editing interface.
Specifically, the teacher enters the class character list, clicks on the head portrait for character tagging, and the popup window displays all the character names of the current class, including students and teachers.
In step S502, the teacher sets a character name.
Specifically, the teacher determines that the character mark is finished according to the corresponding task selected by the photo, that is, the association relationship between the character and the group id is finished, and the later parents view the photo based on the group photo corresponding to the student which can be bound by the parents.
In step S503, the teacher clicks on the save data.
In one embodiment, as shown in FIG. 6, the process of generating the response average time includes:
step S601, the user accesses the program homepage.
In step S602, the request ID and time are recorded.
In step S603, the front end reports the request ID and time after responding to the full data.
Step S604, save data.
In step S605, the timing task scans daily and regularly.
Step S606, the average response time of each user on the same day and the average response time of the user history are obtained to be averaged to be used as the new average response time of the user history.
Specifically, the average response time (in milliseconds) of the user's 1kb size is calculated from the average request interface response time of the user and the response data size of the interface. The server records the request ID and the request time each time the user accesses the program homepage fixed interface. And after the front end responds to the successful loading of all the data, reporting the current time, the request id and the response data size to the server. The corresponding table data is scanned at fixed times daily by a timing task. According to the scanning result, generating 1kb average response time value of each user, for example, A, B, C users respectively request 5 times, 10 times and 15 times, and the response data size of each interface is not fixed, then accumulating 5 times of request time and size of A, 10 times of request time and size of B and 15 times of request time and size of C, respectively summing to obtain A, B, C total request time and total request data size, and obtaining average response time of each kb of each person. And saving the calculated data.
In one embodiment, as shown in fig. 7, the process of timing the task daily timing scan further includes:
step S701, scanning daily by timing task.
Step S702, record request ID and time.
In step S703, the front end reports the request ID and time after responding to the full data.
Specifically, the teacher is periodically scanned for table data of the photo by a fixed time daily by a timing task. And generating the average size of all photos of the current class according to the scanning result. And averaging the size of the newly uploaded photo and the size of the historical photo to generate the average size of the new class photo.
In order to improve user browsing experience and optimize server response capability, the embodiment designs a response strategy by referring to related researches. In related studies, in 1982, IBM's engineer Walter Doherty published a study that indicated that the optimal time for a computer response request was about 400 milliseconds, which time was referred to as the "Doherty threshold", i.e., the Doherty threshold, which has become the benchmark for many people for computer response requests. The 3 time periods are mentioned according to the tolerable latency (Tolerable Waiting Time) of the web page loading proposed by the data research company Nielsen in 1993: 0.1 seconds, the delay of the time is imperceptible to the user, and the system does not need a special loading process for the user at the moment, so that the system immediately completes the operation; the delay of this time is already slightly noticeable to the user, but the delay within one second is such that the user's workflow is not interrupted. So a delay of 0.1s to 1s does not require the system to give a special loading process, but the operation at this time has caused trouble for the direct smooth operation of the user; 10 seconds: this time is a limit that the user is not distracted beyond 10s and the user would like to perform other operations, so loading feedback for this time is necessary.
In this embodiment, 3 response strategies are formulated according to the Doherty threshold and the Nielsen tolerable waiting time, so that the user has better experience as much as possible. The average response time (X, in milliseconds) of the user 1kb data and the average size (Y, in kb) of the current class teacher's uploaded photos are obtained. The preset photo display number of each page of the display interface is N, and the total response time is as follows: s=n×y×x/1000, and the unit of the total response time S is seconds, then the following response policy is generated according to the value range of S: s is smaller than 1 second, namely the strategy parameter is smaller than a first parameter threshold, which indicates that the network state is good, executing a first response strategy, directly arranging photos with bigger head portraits in the related photos in front of a photo response list, and responding based on the photos in the photo response list; if S is greater than 1 second and less than 3 seconds, namely the strategy parameter is greater than the first parameter threshold and less than or equal to the second parameter threshold, indicating that the network condition is general, executing a second response strategy, and halving the number of photos displayed on the display interface to N/2; and when S is greater than 3 seconds, namely the policy parameter is greater than the second parameter threshold, indicating that the network condition is poor, executing a third response policy, and reducing the number of the displayed photos to N/4 under the condition that the basic browsing of the user is met.
In one specific embodiment, a method for a parent to view a photo is provided, as shown in fig. 8, the method comprising:
in step S801, a user views a photo sent by a teacher.
Step S802, the average response time of the homepage interface of the current user and the average size of the uploaded photos of the current class teacher are obtained.
Step S803, the number of photos per page of the front-end request current interface is acquired.
In step S804, the total response time is calculated.
Step S805, execute the response policy.
Step S806, data summarizing is carried out in a month unit, a page of photos is displayed for 10 months at most, and the photos per month are tiled and unfolded.
Step S807, find the category with the largest label ratio from the monthly data, and display the category, such as "4 months athletic meeting", "3 months spring tour".
In one embodiment, there is also provided an online photo collection method, as shown in fig. 9, including:
in step S901, a user views a photo released by a teacher.
Step S902, a photograph associated with the current user is obtained.
In step S903, the photo is viewed in enlargement, and the photo is added to the album by adding the album tag.
Step S904, the addition is successful.
Specifically, when a parent browses a teacher to release a photo, clicking a single photo to view a large picture, displaying a photo album adding button at the right upper corner of the photo, and clicking the button by a user to add the photo to a default photo album. Through the photo online collection method, a user can view photos stored in a default album, browse and share the photos. The user does not need to manually save the favorite photos to the local place every time, thereby realizing the technical effects of saving the operation time of the user and saving the storage space of the equipment.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a photo response device for realizing the photo response method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiment of one or more photo response devices provided below may refer to the limitation of the photo response method hereinabove, and will not be repeated herein.
In one embodiment, as shown in fig. 10, there is provided a photo response device comprising: the device comprises an acquisition module 10, an analysis module 20, a processing module 30 and a response module 40, wherein:
an acquisition module 10, configured to acquire photograph request data sent by a user interface;
the parsing module 20 is configured to obtain interface information of a user interface according to the photo request data;
a processing module 30, configured to determine a photo response policy according to the interface information;
and a response module 40, configured to push a corresponding target response photo to the user interface according to the photo response policy.
The parsing module 20 is further configured to obtain a response time and a response number within a preset period of time of the user interface; calculating an average response parameter according to the response times and the response time; and taking the average response parameter as a historical response time parameter.
The parsing module 20 is further configured to obtain an average size parameter of the newly uploaded photo and an average size parameter of the historical photo within a preset time period; generating a total photo average size parameter according to the newly uploaded photo average size parameter and the historical photo average size parameter; and taking the average size parameter of the total photos as a photo size parameter.
The processing module 30 is further configured to calculate a policy parameter according to the historical response time parameter, the photo size parameter, and the preset photo display number; if the policy parameter is smaller than or equal to a first parameter threshold, determining that the photo response policy is a first response policy; if the policy parameter is greater than the first parameter threshold and less than or equal to the second parameter threshold, determining that the photo response policy is a second response policy; if the policy parameter is greater than a second parameter threshold, determining that the photo response policy is a third response policy; the number of photo displays of the first response strategy is larger than that of the second response strategy; the number of photo displays of the second response policy is greater than the number of photo displays of the third response policy.
The response module 40 is further configured to obtain user identity information according to the photo request data; determining a photo response list according to the user identity information; determining the number of photo displays corresponding to the photo response strategy according to the photo response strategy; and determining a target response photo according to the photo display quantity and the photo response list, and pushing the target response photo to a user interface.
A response module 40, configured to determine a user-associated object according to the user identity information; and determining a photo response list according to the user associated object.
The response module 40 is further configured to perform face recognition on the photos in the photo response list, and determine a face detection frame; calculating the ratio of the area of the face detection frame to the area of the corresponding photo to obtain a photo quality parameter; and adjusting the photo sequence of the photo response list according to the photo quality parameters.
The respective modules in the above-described photo response device may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, and the internal structure of which may be as shown in fig. 11. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an 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 of the computer device is for storing photo data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a photo response method.
It will be appreciated by those skilled in the art that the structure shown in FIG. 11 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
acquiring photo request data sent by a user interface;
acquiring interface information of a user interface according to the photo request data;
determining a photo response strategy according to the interface information;
and pushing the corresponding target response photo to the user interface according to the photo response policy.
In an embodiment, there is also provided a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the method embodiments described above when the computer program is executed.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
Acquiring photo request data sent by a user interface;
acquiring interface information of a user interface according to the photo request data;
determining a photo response strategy according to the interface information;
and pushing the corresponding target response photo to the user interface according to the photo response policy.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, carries out the steps of the method embodiments described above.
In one embodiment, a computer program product is provided comprising a computer program which, when executed by a processor, performs the steps of:
acquiring photo request data sent by a user interface;
acquiring interface information of a user interface according to the photo request data;
determining a photo response strategy according to the interface information;
and pushing the corresponding target response photo to the user interface according to the photo response policy.
In an embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps of the method embodiments described above.
The user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are information and data authorized by the user or sufficiently authorized by each party.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (10)

1. A photo response method applied to a server, the method comprising:
acquiring photo request data sent by a user interface;
acquiring interface information of a user interface according to the photo request data;
determining a photo response strategy according to the interface information;
and pushing the corresponding target response photo to the user interface according to the photo response policy.
2. The photo response method of claim 1 wherein the interface information includes a historical response time parameter, and wherein the obtaining interface information for the user interface includes:
acquiring response times and response time of a user interface in a preset time period;
calculating an average response parameter according to the response times and the response time;
and taking the average response parameter as a historical response time parameter.
3. The photo response method of claim 1, wherein the interface information includes a photo size parameter, and wherein the obtaining the interface information of the user interface includes:
acquiring an average size parameter of a newly uploaded photo and an average size parameter of a historical photo in a preset time period;
generating a total photo average size parameter according to the newly uploaded photo average size parameter and the historical photo average size parameter;
and taking the average size parameter of the total photos as a photo size parameter.
4. The photo response method of claim 1, wherein the interface information includes a historical response time parameter, a photo size parameter, and a preset number of photo displays, and wherein determining a photo response policy based on the interface information includes:
Calculating strategy parameters according to the historical response time parameters, the photo size parameters and the preset photo display quantity;
if the policy parameter is smaller than or equal to a first parameter threshold, determining that the photo response policy is a first response policy;
if the policy parameter is greater than the first parameter threshold and less than or equal to the second parameter threshold, determining that the photo response policy is a second response policy;
if the policy parameter is greater than a second parameter threshold, determining that the photo response policy is a third response policy;
the number of photo displays of the first response strategy is larger than that of the second response strategy;
the number of photo displays of the second response policy is greater than the number of photo displays of the third response policy.
5. The photo response method of claim 4, wherein pushing the corresponding target response photo to the user interface according to the photo response policy comprises:
acquiring user identity information according to the photo request data;
determining a photo response list according to the user identity information;
determining the number of photo displays corresponding to the photo response strategy according to the photo response strategy;
And determining a target response photo according to the photo display quantity and the photo response list, and pushing the target response photo to a user interface.
6. The photo response method of claim 5 wherein said determining a photo response list based on said user identity information comprises:
determining a user association object according to the user identity information;
and determining a photo response list according to the user associated object.
7. The photo response method of claim 5, wherein determining a photo response list based on the user identity information comprises:
performing face recognition on the photos in the photo response list, and determining a face detection frame;
calculating the ratio of the area of the face detection frame to the area of the corresponding photo to obtain a photo quality parameter;
and adjusting the photo sequence of the photo response list according to the photo quality parameters.
8. A photo display method applied to a display terminal, the method comprising:
the method comprises the steps of sending photo request data, wherein the photo request data comprises interface information of the display terminal;
receiving a target response photo responded by the 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 according to the photo response data and the interface information;
and performing photo display according to the photo display strategy.
9. A photo response device, the device comprising:
the acquisition module is used for acquiring photo request data sent by the user interface;
the analysis module is used for acquiring interface information of a user interface according to the photo request data;
the processing module is used for determining a photo response strategy according to the interface information;
and the response module is used for pushing the corresponding target response photo to the user interface according to the photo response strategy.
10. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 7 when the computer program is executed.
CN202310783535.XA 2023-06-28 2023-06-28 Photo response method, photo display method, device and computer equipment Pending CN116866706A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310783535.XA CN116866706A (en) 2023-06-28 2023-06-28 Photo response method, photo display method, device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310783535.XA CN116866706A (en) 2023-06-28 2023-06-28 Photo response method, photo display method, device and computer equipment

Publications (1)

Publication Number Publication Date
CN116866706A true CN116866706A (en) 2023-10-10

Family

ID=88231474

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310783535.XA Pending CN116866706A (en) 2023-06-28 2023-06-28 Photo response method, photo display method, device and computer equipment

Country Status (1)

Country Link
CN (1) CN116866706A (en)

Similar Documents

Publication Publication Date Title
US9256620B2 (en) Techniques for grouping images
US11171893B2 (en) Methods and systems for providing virtual collaboration via network
Villi “Hey, I’m here Right Now”: Camera phone photographs and mediated presence
Van House Personal photography, digital technologies and the uses of the visual
US10346459B1 (en) Capture and annotation of segmented content representing insights
US9235863B2 (en) Display showing intersection between users of a social networking system
US8639722B2 (en) Ordering content in social networking applications
US20140304019A1 (en) Media capture device-based organization of multimedia items including unobtrusive task encouragement functionality
US9201561B2 (en) Rotatable object system for visual communication and analysis
US20140108963A1 (en) System and method for managing tagged images
TW201426608A (en) Portable electronic device, content recommendation method and computer-readable medium
US20150039694A1 (en) Synchronized web-browsing
Drakopoulou “We can remember it for you”: Location, memory, and commodification in social networking sites
AU2014218664A1 (en) Artwork ecosystem
CN113625911A (en) Information display method and device
US20160267068A1 (en) System, method and process for multi-modal annotation and distribution of digital object
US9578258B2 (en) Method and apparatus for dynamic presentation of composite media
US11797935B2 (en) Systems and methods for multi-party distributed active co-browsing
CN116866706A (en) Photo response method, photo display method, device and computer equipment
Stuart Organizing photographs: past and present
US11636440B2 (en) Electronic dynamic calendar system and operation method thereof
US20240037139A1 (en) Identifying similar digital assets from results of a multi-user search of digital assets, comparing digital assets and providing persistent search results of the multi-user search
US20240134498A1 (en) Structured arrangements for tracking content items on a shared user interface
CN117196635A (en) Method, device, computer equipment and storage medium for processing jewelry service request
CN117097691A (en) Session message processing method and device and electronic equipment

Legal Events

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