Method, device, electronic device and storage medium for processing album resources
By judging and modifying the timestamps in the album resource display, the problem of multiple records of the same date in the mobile phone album is solved, improving the accuracy of display and user experience.
Patent Information
- Application Number
- CN202011344169.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-25
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2040-11-25
AI Technical Summary
In existing technologies, when mobile phone albums are displayed in chronological order, there may be multiple records for the same date, leading to display confusion and affecting user experience.
By obtaining the first time marker of the album resources and the second time marker of the resource list, it is determined whether they are the same. If they are the same, the time marker information of the resource list is modified to ensure that there is only one time marker in the resource list and the image resources are displayed in chronological order.
It effectively solves the problem of multiple records on the same date, improving the accuracy of album resource display and user experience.
Smart Images

Figure CN112463998B
Abstract
Description
Technical Field
[0001] The present invention generally relates to the field of terminal device resource processing, and in particular to a method, device, electronic device and storage medium for processing album resources. Background Art
[0002] As mobile phone camera functions become increasingly rich, people are used to using mobile phones for daily photography. In related technologies, mobile phones usually display images in chronological order or according to storage paths. When the native album data of the iOS system is displayed, there may be a problem of disordered order. For example, when displayed in a timeline format, there may be two or more corresponding records for the same date, such as Figure 1 shown. Summary of the invention
[0003] In view of the above-mentioned defects or deficiencies in the prior art, it is desirable to provide a method, device, electronic device and storage medium for processing album resources to improve the display effect of the terminal display interface and enhance the user experience.
[0004] In a first aspect, the present application proposes a method for processing album resources, comprising the following steps:
[0005] Get access requests for displaying album resources in chronological order;
[0006] In response to the access request, obtaining a target album resource within a preset time period from the album resource;
[0007] Obtaining the first time stamp of the target album resource and the second time stamp of the current record in the resource list;
[0008] When the first time stamp is the same as the second time stamp, importing the image resource in the target album resource into the resource list, and modifying the resource information corresponding to the second time stamp in the resource list;
[0009] The resource list is displayed according to the time sequence, wherein the resource list includes at least one image unit.
[0010] In some embodiments, it also includes:
[0011] When the first time stamp and the second time stamp are different, creating a new time stamp using the first time stamp, and using the new time stamp as the second time stamp of the current record in the resource list;
[0012] Import the image resources in the target album resources into the resource list, and record the resource information corresponding to the second time mark.
[0013] In some embodiments, in response to the access request, obtaining a target album resource within a preset time period in the album resource includes:
[0014] Generate a timeline array in accordance with the time sequence according to the access request;
[0015] Generate resource extraction requests for corresponding time periods in sequence according to the timeline array;
[0016] In response to a feedback signal indicating that the extraction of the album resources in the current time period in the album resources is completed, the next time period is used as the preset time period, and the resource extraction request corresponding to the preset time period is executed to obtain the target album resources within the preset time period.
[0017] In some embodiments, it also includes:
[0018] Receiving a refresh request for the display interface;
[0019] Acquire the image unit that has requested the image data, wherein the image data is acquired using a request instruction bound to the image unit;
[0020] When the image unit is within the display interface, the image data is displayed.
[0021] In some embodiments, it also includes:
[0022] Acquire the position information of the image unit in the display interface in the resource list;
[0023] According to the location information, selecting the image unit of the image data to be requested as a cache image unit;
[0024] The image data of the cache image unit is acquired by utilizing the request instruction bound to the cache image unit.
[0025] In some embodiments, selecting the image unit of the image data to be requested as the cache image unit according to the location information includes:
[0026] Obtaining a request frequency of the refresh request;
[0027] When the request frequency is greater than a preset frequency threshold, interrupting the step of selecting the image unit of the image data to be requested as a cache image unit according to the position information;
[0028] When the request frequency is less than or equal to the preset frequency threshold, the step of selecting the image unit of the image data to be requested as the cache image unit according to the position information is continued.
[0029] In some embodiments, it also includes:
[0030] receiving a push upload instruction, and acquiring a push upload list according to the push upload instruction, wherein the push upload list includes at least one of the image units;
[0031] According to the request instruction bound to the image unit, acquiring the image data corresponding to the image unit, and uploading the image data to a target server;
[0032] In response to a feedback signal indicating that the image units in the push upload list have been uploaded, a manual upload list or a backup upload list is acquired, and the manual upload list or the backup upload list is uploaded to the target server.
[0033] In some embodiments, obtaining the manual upload list or the backup upload list, and uploading the manual upload list or the backup upload list to the target server includes:
[0034] identifying, from the manual upload list and the backup upload list, duplicate image units that are duplicates of the push upload list;
[0035] The duplicate image units in the manual upload list and the backup upload list are deleted.
[0036] In a second aspect, the present application proposes a device for processing album resources, comprising:
[0037] A first acquisition module, used to acquire an access request for displaying album resources in chronological order;
[0038] A second acquisition module, configured to acquire a target album resource within a preset time period from the album resource in response to the access request;
[0039] A third acquisition module, used to acquire the first time stamp of the target album resource and the second time stamp of the current record in the resource list;
[0040] a control module, configured to import the image resource in the target album resource into the resource list and modify the resource information corresponding to the second resource tag in the resource list when the first time tag is the same as the second time tag;
[0041] A display module is used to display the resource list in the time sequence.
[0042] In a third aspect, the present application proposes an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for processing album resources is implemented.
[0043] In a fourth aspect, the present application proposes a computer-readable storage medium having a computer program stored thereon, which implements the method for processing album resources when executed by a processor.
[0044] When the first time tag and the second time tag are the same, the present application modifies the resource information corresponding to the second time tag in the resource list when importing the image resources in the target album resources into the resource list, so that the resource information corresponding to the second time tag is consistent with the actual resources of the time period, thereby eliminating the need to use multiple time tags to display the resource information. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
[0046] Figure 1 A schematic diagram of the technology related to this application;
[0047] Figure 2 A flowchart of a method for processing album resources proposed in one embodiment of the present application;
[0048] Figure 3 This is a schematic diagram of the case where the first time mark and the second time mark in this application are the same;
[0049] Figure 4 This is a schematic diagram of the case where the first time mark and the second time mark in this application are different;
[0050] Figure 5 A flowchart of a method for processing album resources proposed in another embodiment of the present application;
[0051] Figure 6 A flowchart of a method for processing album resources proposed in another embodiment of the present application;
[0052] Figure 7 A flowchart of a method for processing album resources proposed in yet another embodiment of the present application;
[0053] Figure 8 A flowchart of a method for processing album resources proposed in yet another embodiment of the present application;
[0054] Fig. 9 A flowchart of a method for processing album resources proposed in yet another embodiment of the present application;
[0055] Fig.10 A block diagram of a device for processing album resources proposed in one embodiment of the present application;
[0056] Fig.11 A schematic diagram of the structure of a computer system of an electronic device or server suitable for implementing an embodiment of the present application is shown. DETAILED DESCRIPTION
[0057] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the invention are shown in the accompanying drawings.
[0058] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0059] Figure 2 This is a flow chart of a method for processing album resources proposed in one embodiment of the present application. Figure 2 As shown, the method for processing album resources proposed in the embodiment of the present application includes the following steps:
[0060] Step 101: Obtain an access request for displaying album resources in chronological order.
[0061] It should be noted that the access request for displaying album resources in chronological order can be obtained through the controls in the album system application App (Application). That is to say, after the user uses the terminal device and starts the album system App, he can use the controls displayed in the user interface to choose to display the image resources locally stored in the terminal device in chronological order. At this time, the album system App obtains the access request for displaying album resources in chronological order.
[0062] Step 102: In response to the access request, obtain a target album resource within a preset time period in the album resource.
[0063] It should be noted that the album resources are album resources stored locally on the terminal device, that is, after obtaining the access request, the album resources can be further obtained from the locally stored album resources in chronological order.
[0064] It should be understood that the preset time period is the target time period for extracting the album resources. In other words, in order to display the album resources in chronological order, the album resources need to be extracted in chronological order, thereby effectively avoiding the situation where the album resources at a later time are first obtained when the number of album resources stored locally is large, thus affecting the display of the album resources.
[0065] It should also be understood that with the development of the image field, the memory occupied by images is getting larger and larger. In some scenarios, when extracting album resources from the local, it may not be possible to extract all album resources that meet the preset time period in one extraction. For example, in a preset time period, there are multiple high-definition videos and a large number of 4K pictures stored locally. In this case, multiple requests can be made for the album resources within the preset time period according to the access request until all album resources that meet the preset time period in the album resources are extracted.
[0066] The preset time period may be set according to the access request selected by the user, for example, in units of days, months, years, etc.
[0067] Step 103, obtaining the first time stamp of the target album resource and the second time stamp of the current record in the resource list.
[0068] Among them, the first time mark is the time information of a preset time period, that is, the local album resource extracts the target album resource from the album resource in chronological order according to the access request, and sends it to the album system App. At this time, the album system App is not sure about the time period to which the currently received target album resource belongs. Therefore, it is necessary to identify the first time mark of the target album resource based on the acquired target album resource.
[0069] The second time stamp currently recorded in the resource list may be the time stamp corresponding to the target album resource last received by the album system App. It should be understood that the second time stamp may be used as a display label when the resource list is displayed.
[0070] Step 104, when the first time mark is the same as the second time mark, the image resource in the target album resource is imported into the resource list, and the resource information corresponding to the second time mark in the resource list is modified.
[0071] It should be understood that when the first time mark and the second time mark are the same, it means that the time period to which the target album resource data belongs already exists in the resource list. At this time, if the first time mark is retained, multiple identical time marks will appear in the resource list, such as Figure 1As shown, therefore, the image resources in the target album resources can be imported into the resource list, and the resource information corresponding to the second time tag in the resource list can be modified so that the resource information corresponding to the second time tag is consistent with the album resources in the current resource list that meet the second time tag, for example, the number of images corresponding to the second time tag is the same as the actual number, so that multiple identical time tags will not appear when the resource list is displayed in chronological order.
[0072] The image resource may include information such as the type of image resource, longitude and latitude, whether it is a selfie, the album it belongs to, the duration of the video resource, the resolution, the original resource of the photo, etc. When the type of the image resource is a picture, the image resource may further include the picture type, such as screenshot, normal, gif, and live picture. Resource information may include the number of image resources, the image resource of each image, etc.
[0073] Step 105: Display the resource list in chronological order, wherein the resource list includes at least one image unit.
[0074] Among them, an image unit is used to represent an image resource.
[0075] Specifically, after obtaining an access request for displaying album resources in chronological order, in response to the access request, the target album resources within a preset time period are obtained from the local album resources, and then the first time tag of the target album resource and the second time tag currently recorded by the album resource App are extracted, and it is determined whether the first time tag and the second time tag are the same. If they are the same, the image resources in the target album resource are imported into the resource list, and the resource information corresponding to the second time tag of the resource list is modified, and then the resource list is displayed in chronological order.
[0076] Therefore, when the first time tag and the second time tag are the same, the present application modifies the resource information corresponding to the second time tag in the resource list when importing the image resources in the target album resources into the resource list, so that the resource information corresponding to the second time tag is consistent with the actual resources of the time period, thereby eliminating the need to use multiple time tags to display the resource information.
[0077] Furthermore, when the first time stamp and the second time stamp are different, a new time stamp is created using the first time stamp, and the new time stamp is used as the second time stamp currently recorded in the resource list, the image resources in the target album resources are imported into the resource list, and the resource information corresponding to the second time stamp is recorded.
[0078] That is to say, if the first time tag and the second time tag are different, it means that the album resources of the time period to which the first time tag belongs have not yet been obtained in the resource list, and a new time tag needs to be created, which matches the first time tag, so that the image resources in the target album resources can exist with the corresponding time tag when imported into the resource list, and then the image resources in the target album resources are imported into the resource list, and the resource information corresponding to the second time tag is recorded, so that the resource information corresponding to the current second time tag matches the received target album resources.
[0079] For example, if Figure 3 As shown, when the first time mark of the target album resource obtained according to the access request is November 5, it is the same as the second time mark November 5 recorded in the current resource list. At this time, the image resource A and the image resource B in the target album resource are directly imported into the resource list, and the resource information corresponding to the second time mark in the resource list is modified, so that the number of image resources in the resource information corresponding to the second time mark is increased by 2, so that when the album resources are displayed according to the resource list, all the image resources obtained twice on November 5 can be displayed through one time mark.
[0080] like Figure 4 As shown, when the first time mark of the target album resource obtained according to the access request is November 6, it is different from the second time mark November 5 recorded in the current resource list. At this time, a new time mark is created using November 6, and the new time mark November 6 is used as the new second time mark. Then, the image resources in the target album resources are imported into the resource list, and the resource information corresponding to the current second time mark (November 6) is recorded.
[0081] Furthermore, if Figure 5 As shown, in response to the access request, obtaining the target album resource within a preset time period in the album resource includes:
[0082] Step 201: Generate a timeline array in chronological order according to an access request.
[0083] Step 202: Generate resource extraction requests for corresponding time periods in sequence according to the timeline array.
[0084] Step 203, in response to the signal indicating that the extraction of the album resources of the current time period in the album resources is completed, the next time period is used as the preset time period, and the resource extraction request corresponding to the preset time period is executed to obtain the target album resources within the preset time period.
[0085] That is to say, after obtaining an access request for displaying album resources in chronological order, a timeline array in chronological order is generated according to the access request, and then resource extraction requests for each time period are generated in sequence according to the timeline array, and then a semaphore is added to the resource extraction request for a single time period and locked. When all album resources for a single time period are extracted, there are no album resources to be fed back. At this time, a feedback signal for the completion of album resource extraction for the current time period can be generated and fed back, that is, all image resources corresponding to the time period have been fed back to the album system App, and then the resource extraction request for the next time period is unlocked and executed.
[0086] In this way, it can be ensured that the target album resources extracted each time are in chronological order, and when the amount of local album resource data is large, the problem of incomplete album resource data displayed first can be effectively avoided.
[0087] Optionally, the number of image resources in the resource list is identified, and when the number of image resources reaches a preset number, the resource list is displayed. For example, when the amount of local album resource data is large, the target album resources can be extracted in chronological order, and after the target album resources are imported into the resource list, the number of all image resources in the resource list is obtained. If the number of image resources reaches a preset number, the resource list can be displayed at this time, and at the same time, the target album resources are continued to be obtained, and the resource list is updated. And the updated resource list is displayed.
[0088] Since the interface only displays resource data and does not include image data, that is, only labels used to express image resources are displayed when displaying the resource list, such as the image frame in the user interface. In order for users to be able to know the content of the displayed images, the image data needs to be loaded into the display interface. However, when the amount of image data to be loaded is large, the loading time increases and obvious lag is likely to occur.
[0089] As a possible embodiment, Figure 6 As shown, the method for processing album resources also includes:
[0090] Step 301: Receive a refresh request for a display interface.
[0091] The refresh request of the display interface may be obtained by operations such as the user pulling down the display interface.
[0092] Step 302: Acquire an image unit for which image data has been requested, wherein the image data is acquired using a request instruction bound to the image unit.
[0093] It should be noted that the request instruction can be generated based on the unique identifier of the image resource and bound to the image unit expressing the image resource, so that the corresponding request instruction can be executed according to the location and / or selection of the image unit to obtain the image data corresponding to the image unit.
[0094] Step 303: when the image unit is in the display interface, display the image data.
[0095] Furthermore, if Figure 7 As shown, before obtaining the image unit for which the image data has been requested, the following may also be included:
[0096] Step 401: Obtain location information of an image unit in a display interface in a resource list.
[0097] Step 402: Select an image unit of the image data to be requested as a cache image unit according to the location information.
[0098] Step 403: Acquire the image data of the cache image unit by using the request instruction bound to the cache image unit.
[0099] That is to say, in order to ensure the smoothness of user browsing of images, a cached image unit can be selected according to the position of the image unit in the current display interface, and then the image data of the cached image unit can be cached in advance, thereby ensuring that the corresponding image data can be displayed when the image unit is moved to the display interface, thereby improving the user's browsing experience.
[0100] Specifically, when a user browses the display interface of the photo album system App, the photo album system App selects the image unit that needs to cache image data based on the image unit currently in the display interface, and then obtains the image data corresponding to the cached image unit according to the request instruction bound to the cached image unit. After the caching is completed, it is determined in real time whether the image unit for which the image data has been requested has been moved to the display interface by the user. If so, the cached image data is displayed in the image unit. If not, the cached data is not displayed.
[0101] It should be understood that the cached image data can be stored in the memory. The photo album system app can use the information set (PHAsset) of video and picture resources managed by the photo album system app in the iOS system to obtain the image data of the UIImage class from the terminal API (Application Programming Interface), where UIImage is a class used to load images in the iOS system, and the image unit (UIImageView) is used to bind the request instruction and display the obtained image data.
[0102] Furthermore, based on the position information, an image unit of the image data to be requested is selected as a cache image unit, including: obtaining a request frequency of a refresh request, and when the request frequency is greater than a preset frequency threshold, interrupting execution of the step of selecting an image unit of the image data to be requested as a cache image unit based on the position information; and when the request frequency is less than or equal to the preset frequency threshold, continuing execution of the step of selecting an image unit of the image data to be requested as a cache image unit based on the position information.
[0103] It should be noted that in many scenarios, in order to locate the required image as quickly as possible, the user will quickly browse the images in the display interface, that is, quickly slide the display interface. At this time, refresh requests can be received at a higher frequency, that is, the request frequency of obtaining refresh requests is greater than the preset frequency threshold. At this time, if the image data of the image units displayed in the display interface are obtained in a conventional manner, the access volume of the image data will increase sharply, causing the display to freeze. Therefore, when the request frequency is greater than the preset frequency threshold, the application controls the interrupt execution to select the image unit of the image data to be requested as the cache image unit according to the location information, so as to effectively reduce the request volume of the image data and prevent the terminal device from freezing.
[0104] The preset frequency threshold may be a frequency threshold that satisfies slow sliding browsing. That is, when fast sliding gradually decreases to slow browsing or the user is only in slow browsing, it is necessary to continue to perform the step of selecting the image unit of the image data to be requested as the cached image unit according to the position information, so as to obtain the cached image data in advance and ensure that the image unit browsed by the user can display the corresponding image data in time.
[0105] Specifically, Figure 8 As shown, the display interface displays a resource list containing image units, then calculates the position information of the image unit in the current display interface in the resource list, determines whether a refresh request is received, and if a refresh request is received, obtains the request frequency, determines whether the request frequency is greater than a preset frequency, and if the request frequency is greater than the preset frequency, returns to obtain the request frequency, and if the request frequency is less than or equal to the preset frequency, selects the image unit of the image data to be requested as the cached image unit according to the position information. Determines whether the image unit of the requested image data is in the display interface, and if so, uses the image unit to display the image data, and if not, deletes the cached image data.
[0106] As a possible embodiment, Fig. 9 As shown, the method for processing album resources includes:
[0107] Step 501, receiving a push upload instruction, and obtaining a push upload list according to the push upload instruction.
[0108] Step 502: According to the request instruction bound to the image unit, image data corresponding to the image unit is obtained, and the image data is uploaded to the target server.
[0109] Step 503 , in response to a feedback signal indicating that all images in the push upload list have been uploaded, a manual upload list or a backup upload list is obtained, and the manual upload list or the backup upload list is uploaded to a target server.
[0110] It should be noted that, in the related art, the photo album system App is usually provided with manual upload and backup upload. Usually, when the user turns on the automatic backup function, the photo album system App can automatically upload the image data to the target server when the terminal device is connected to the network, so as to back up the local photo album through the server; manual backup is that the user selects the image unit to be backed up, and then uploads the image data corresponding to the selected image unit to the target server, so as to back up the local photo album through the server.
[0111] Push upload is to upload the image data corresponding to the image unit in the push upload list to the target server, and then the server pushes the information of the image data to the target device.
[0112] Specifically, in the present application, the priority of push upload is higher than manual upload and backup upload, that is, after receiving the push upload instruction, the push upload list is obtained according to the push upload instruction, and then the corresponding image data is obtained according to the image units in the push upload list for uploading, until all the image units in the push upload list are uploaded, and then the upload tasks in the manual upload list or the backup upload list are executed.
[0113] Furthermore, a manual upload list or a backup upload list is obtained, and the manual upload list or the backup upload list is uploaded to a target server, including: identifying duplicate image units that are duplicated in the push upload list from the manual upload list and the backup upload list; and deleting duplicate image units in the manual upload list and the backup upload list.
[0114] In other words, the image units that have been uploaded through push can be deleted from the manual upload list and the backup push list, effectively reducing the resource consumption caused by repeated uploading and improving the upload efficiency of local album resources.
[0115] Furthermore, when the push upload list contains a large number of image units, uploading the image units in the push list at the same time may easily cause memory crash when acquiring image data. Therefore, the image data can be acquired and uploaded according to the preset quantity according to the order in the upload list, thereby effectively avoiding the problem of memory crash of the terminal device when acquiring image data.
[0116] To summarize, when the first time tag and the second time tag are the same, the present application modifies the resource information corresponding to the second time tag in the resource list when importing the image resources in the target album resources into the resource list, so that the resource information corresponding to the second time tag is consistent with the actual resources of the time period, thereby eliminating the need to use multiple time tags to display the resource information.
[0117] In order to achieve the above objectives, the present application proposes a device for processing album resources.
[0118] Fig.10 FIG. 1 is a block diagram of a device for processing photo album resources according to an embodiment of the present application. Fig.10 As shown, the device 10 for processing album resources in the embodiment of the present application includes:
[0119] The first acquisition module 11 is used to acquire an access request for displaying album resources in chronological order.
[0120] The second acquisition module 12 is used to acquire target album resources within a preset time period in the album resources in response to the access request.
[0121] The third acquisition module 13 is used to acquire the first time stamp of the target album resource and the second time stamp of the current record in the resource list.
[0122] The control module 14 is used to import the image resource in the target album resource into the resource list when the first time mark is the same as the second time mark, and modify the resource information corresponding to the second resource mark in the resource list.
[0123] The display module 15 is used to display the resource list in chronological order.
[0124] In some embodiments, the control module 14 is further configured to:
[0125] When the first time stamp and the second time stamp are different, creating a new time stamp using the first time stamp, and using the new time stamp as the second time stamp of the current record in the resource list;
[0126] Import the image resources in the target album resources into the resource list, and record the resource information corresponding to the second time mark.
[0127] In some embodiments, the second acquisition module 12 is further used to:
[0128] Generate a timeline array in chronological order according to the access request;
[0129] Generate resource extraction requests for corresponding time periods in sequence according to the timeline array;
[0130] In response to a feedback signal indicating that the extraction of album resources in the current time period in the album resources is completed, the next time period is taken as a preset time period, and a resource extraction request corresponding to the preset time period is executed to obtain a target album resource within the preset time period.
[0131] In some embodiments, the control module 14 is further configured to:
[0132] Receiving a refresh request for the display interface;
[0133] Acquire an image unit that has requested image data, wherein the image data is acquired using a request instruction bound to the image unit;
[0134] When the image unit is within the display interface, the image data is displayed.
[0135] In some embodiments, the control module 14 is further configured to:
[0136] Obtaining the position information of the image unit in the display interface in the resource list;
[0137] Selecting, according to the location information, an image unit of the image data to be requested as a cached image unit;
[0138] The image data of the cache image unit is obtained by utilizing the request instruction bound to the cache image unit.
[0139] In some embodiments, the control module 14 is further configured to:
[0140] Get the request frequency of refresh requests;
[0141] When the request frequency is greater than a preset frequency threshold, interrupting execution of the step of selecting an image unit of the image data to be requested as a cached image unit according to the position information;
[0142] When the request frequency is less than or equal to the preset frequency threshold, the step of selecting the image unit of the image data to be requested as the cache image unit according to the position information is continued.
[0143] In some embodiments, the control module 14 is further configured to:
[0144] receiving a push upload instruction, and acquiring a push upload list according to the push upload instruction, wherein the push upload list includes at least one image unit;
[0145] According to the request instruction bound to the image unit, the image data corresponding to the image unit is obtained, and the image data is uploaded to the target server;
[0146] In response to a feedback signal indicating that all image units in the push upload list have been uploaded, a manual upload list or a backup upload list is acquired, and the manual upload list or the backup upload list is uploaded to a target server.
[0147] In some embodiments, the control module 14 is further configured to:
[0148] identifying duplicate image units from the manual upload list and the backup upload list that are duplicates of the push upload list;
[0149] Delete duplicate image units in the manual upload list and the backup upload list.
[0150] It should be understood that the units or modules recorded in the device correspond to the various steps in the method described above. Therefore, the operating instructions and features described above for the method are also applicable to the device and the modules contained therein, and will not be repeated here. The device can be pre-implemented in a browser or other security application of an electronic device, or loaded into a browser or other security application of an electronic device by downloading or the like. The corresponding modules in the device can cooperate with the modules in the electronic device to implement the solution of the embodiment of the present application.
[0151] To summarize, when the first time tag and the second time tag are the same, the present application modifies the resource information corresponding to the second time tag in the resource list when importing the image resources in the target album resources into the resource list, so that the resource information corresponding to the second time tag is consistent with the actual resources of the time period, thereby eliminating the need to use multiple time tags to display the resource information.
[0152] For the several modules or units mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0153] Reference below Fig.11 , Fig.11 A schematic diagram of the structure of a computer system of an electronic device or server suitable for implementing an embodiment of the present application is shown.
[0154] like Fig.11As shown, the computer system includes a central processing unit (CPU) 1101, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1102 or the program loaded from the storage part 1108 to the random access memory (RAM) 1103. In the RAM 1103, various programs and data required for the operation instructions of the system are also stored. The CPU 1101, the ROM 1102, and the RAM 1103 are connected to each other through a bus 1104. An input / output (I / O) interface 1105 is also connected to the bus 1104.
[0155] The following components are connected to the I / O interface 1105: an input section 1106 including a keyboard, a mouse, etc.; an output section 1107 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1108 including a hard disk, etc.; and a communication section 1109 including a network interface card such as a LAN card, a modem, etc. The communication section 1109 performs communication processing via a network such as the Internet. A drive 1110 is also connected to the I / O interface 1105 as needed. A removable medium 1111, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1110 as needed, so that a computer program read therefrom is installed into the storage section 1108 as needed.
[0156] In particular, according to an embodiment of the present application, the above reference flow chart Figure 2 The described process can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flow chart. In such an embodiment, the computer program includes a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1109, and / or installed from the removable medium 1111. When the computer program is executed by the central processing unit (CPU) 1101, the above-mentioned functions defined in the system of the present application are executed.
[0157] It should be noted that the computer-readable medium shown in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium such as a computer-readable storage medium that can send, propagate or transmit a program for use by or in conjunction with an instruction execution system, device or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0158] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operating instructions of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the aforementioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, the boxes represented by two connections can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operating instruction, or can be implemented with a combination of dedicated hardware and computer instructions.
[0159] The units or modules involved in the embodiments described in the present application may be implemented by software or by hardware. The described units or modules may also be provided in a processor. For example, they may be described as: a processor comprising a first acquisition unit, a second acquisition unit, a third acquisition unit, a control unit, and a display unit. Among them, the names of these units or modules do not constitute a limitation on the units or modules themselves in certain circumstances. For example, the first acquisition module may also be described as "obtaining an access request for displaying album resources in chronological order."
[0160] As another aspect, the present application further provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device. The above computer-readable storage medium stores one or more programs, and when the above programs are used by one or more processors to execute the method for processing album resources described in the present application.
[0161] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the aforementioned disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.
Claims
1. A method for processing album resources, characterized in that: include: Get access requests for displaying album resources in chronological order; In response to the access request, obtaining a target album resource within a preset time period from the album resource; Obtaining the first time stamp of the target album resource and the second time stamp of the current record in the resource list; When the first time stamp is the same as the second time stamp, importing the image resource in the target album resource into the resource list, and modifying the resource information corresponding to the second time stamp in the resource list; The resource list is displayed according to the time sequence, wherein the resource list includes at least one image unit.
2. The method for processing album resources according to claim 1, characterized in that: Also includes: When the first time stamp and the second time stamp are different, creating a new time stamp using the first time stamp, and using the new time stamp as the second time stamp of the current record in the resource list; Import the image resources in the target album resources into the resource list, and record the resource information corresponding to the second time mark.
3. The method for processing album resources according to claim 1 or 2, characterized in that: The step of obtaining, in response to the access request, a target album resource within a preset time period from the album resource comprises: Generate a timeline array in accordance with the time sequence according to the access request; Generate resource extraction requests for corresponding time periods in sequence according to the timeline array; In response to a feedback signal indicating that the extraction of the album resources in the current time period in the album resources is completed, the next time period is used as the preset time period, and the resource extraction request corresponding to the preset time period is executed to obtain the target album resources within the preset time period.
4. The method for processing album resources according to claim 1, characterized in that: Also includes: Receiving a refresh request for the display interface; Acquire the image unit that has requested image data, wherein the image data is acquired using a request instruction bound to the image unit; When the image unit is within the display interface, the image data is displayed.
5. The method for processing album resources according to claim 4, characterized in that: Also includes: Acquire the position information of the image unit in the display interface in the resource list; According to the location information, selecting the image unit of the image data to be requested as a cache image unit; The image data of the cache image unit is acquired by utilizing the request instruction bound to the cache image unit.
6. The method for processing album resources according to claim 5, characterized in that: The step of selecting the image unit of the image data to be requested as a cache image unit according to the location information includes: Obtaining a request frequency of the refresh request; When the request frequency is greater than a preset frequency threshold, interrupting the step of selecting the image unit of the image data to be requested as a cache image unit according to the position information; When the request frequency is less than or equal to the preset frequency threshold, the step of selecting the image unit of the image data to be requested as the cache image unit according to the position information is continued.
7. The method for processing album resources according to claim 4, characterized in that: Also includes: receiving a push upload instruction, and acquiring a push upload list according to the push upload instruction, wherein the push upload list includes at least one of the image units; According to the request instruction bound to the image unit, acquiring the image data corresponding to the image unit, and uploading the image data to a target server; In response to a feedback signal indicating that the image units in the push upload list have been uploaded, a manual upload list or a backup upload list is acquired, and the manual upload list or the backup upload list is uploaded to the target server.
8. The method for processing album resources according to claim 7, characterized in that: The obtaining of the manual upload list or the backup upload list, and uploading the manual upload list or the backup upload list to the target server includes: identifying, from the manual upload list and the backup upload list, duplicate image units that are duplicates of the push upload list; The duplicate image units in the manual upload list and the backup upload list are deleted.
9. A device for processing album resources, characterized in that: include: A first acquisition module, used to acquire an access request for displaying album resources in chronological order; A second acquisition module, configured to acquire a target album resource within a preset time period from the album resource in response to the access request; A third acquisition module, used to acquire the first time stamp of the target album resource and the second time stamp of the current record in the resource list; a control module, configured to import the image resource in the target album resource into the resource list and modify the resource information corresponding to the second time stamp in the resource list when the first time stamp is the same as the second time stamp; A display module is used to display the resource list in the time sequence.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method for processing album resources as described in any one of claims 1-8 is implemented.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for processing album resources as described in any one of claims 1-8 is implemented.
