CN112463998B - Method, device, electronic device and storage medium for processing album resources - Google Patents
Method, device, electronic device and storage medium for processing album resources Download PDFInfo
- Publication number
- CN112463998B CN112463998B CN202011344169.0A CN202011344169A CN112463998B CN 112463998 B CN112463998 B CN 112463998B CN 202011344169 A CN202011344169 A CN 202011344169A CN 112463998 B CN112463998 B CN 112463998B
- Authority
- CN
- China
- Prior art keywords
- resource
- album
- list
- image
- resources
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/51—Indexing; Data structures therefor; Storage structures
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/58—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F16/5866—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, manually generated location and time information
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Library & Information Science (AREA)
- Software Systems (AREA)
- Processing Or Creating Images (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
技术领域Technical Field
本发明一般涉及终端设备资源处理领域,具体涉及一种相册资源的处理方法、装置、电子设备和存储介质。The present invention generally relates to the field of terminal device resource processing, and specifically relates to a method, device, electronic device and storage medium for processing album resources.
背景技术Background Art
随着手机照相功能的日益丰富,人们习惯于使用手机进行日常拍照。相关技术中,手机通常按照时间顺序展示图像或按照存储路径展示图像。ios系统的原生相册数据进行数据展示时,可能存在顺序混乱问题。例如按照时间轴方式展示时,同一个日期可能存在两条及以上的对应记录,如图1所示。As mobile phone camera functions become increasingly rich, people are accustomed 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 manner, there may be two or more corresponding records for the same date, as shown in Figure 1.
发明内容Summary of the invention
鉴于现有技术中的上述缺陷或不足,期望提供一种相册资源的处理方法、装置、电子设备和存储介质,以改善终端显示界面的显示效果,提高用户体验。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.
第一方面,本申请提出一种相册资源的处理方法,包括以下步骤:In a first aspect, the present application proposes a method for processing album resources, comprising the following steps:
获取用于按照时间顺序进行相册资源展示的访问请求;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.
在一些实施例中,还包括:In some embodiments, it 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.
在一些实施例中,所述响应于所述访问请求,获取所述相册资源中预设时间段内的目标相册资源,包括:In some embodiments, in response to the access request, obtaining a target album resource within a preset time period in the album resource includes:
根据所述访问请求,生成符合所述时间顺序的时间线数组;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.
在一些实施例中,还包括:In some embodiments, it also includes:
接收对显示界面的刷新请求;Receiving a refresh request for the display interface;
获取已请求到所述图像数据的所述图像单元,其中,所述图像数据是利用与所述图像单元绑定的请求指令获取的;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;
在所述图像单元处于所述显示界面内时,显示所述图像数据。When the image unit is within the display interface, the image data is displayed.
在一些实施例中,还包括:In some embodiments, it 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.
在一些实施例中,所述根据所述位置信息,选取待请求图像数据的所述图像单元作为缓存图像单元,包括: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:
获取所述刷新请求的请求频率;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.
在一些实施例中,还包括:In some embodiments, it 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 all 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.
在一些实施例中,所述获取手动上传列表或备份上传列表,并将所述手动上传列表或所述备份上传列表上传至所述目标服务器,包括: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:
从所述手动上传列表和所述备份上传列表中识别出与所述推送上传列表重复的重复图像单元;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.
第二方面,本申请提出一种相册资源的处理装置,包括:In a second aspect, the present application proposes a device for processing album resources, comprising:
第一获取模块,用于获取用于按照时间顺序进行相册资源展示的访问请求;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 resource tag in the resource list when the first time tag is the same as the second time tag;
展示模块,用于按照所述时间顺序对所述资源列表进行展示。A display module is used to display the resource list in the time sequence.
第三方面,本申请提出一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时,实现所述的相册资源的处理方法。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.
第四方面,本申请提出一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现所述的相册资源的处理方法。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.
本申请在第一时间标记和第二时间标记相同时,通过在将目标相册资源中的图像资源导入资源列表时,修改资源列表中第二时间标记对应的资源信息,使得第二时间标记对应的资源信息与该时间段的实际资源相符,从而无需使用多个时间标记对资源信息进行展示。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
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显: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:
图1为本申请相关技术的示意图;FIG1 is a schematic diagram of the related technology of this application;
图2为本申请一实施例提出的一种相册资源的处理方法的流程图;FIG2 is a flow chart of a method for processing album resources proposed in an embodiment of the present application;
图3为本申请中第一时间标记和第二时间标记相同时的示意图;FIG3 is a schematic diagram showing the case where the first time mark and the second time mark are the same in the present application;
图4为本申请中第一时间标记和第二时间标记不相同时的示意图;FIG4 is a schematic diagram showing a case where the first time mark and the second time mark are different in the present application;
图5为本申请另一实施例提出的一种相册资源的处理方法的流程图;FIG5 is a flow chart of a method for processing album resources proposed in another embodiment of the present application;
图6为本申请又一实施例提出的一种相册资源的处理方法的流程图;FIG6 is a flowchart of a method for processing album resources according to another embodiment of the present application;
图7为本申请再一实施例提出的一种相册资源的处理方法的流程图;FIG7 is a flow chart of a method for processing album resources according to yet another embodiment of the present application;
图8为本申请再一实施例提出的一种相册资源的处理方法的流程图;FIG8 is a flow chart of a method for processing album resources according to yet another embodiment of the present application;
图9为本申请再一实施例提出的一种相册资源的处理方法的流程图;FIG9 is a flowchart of a method for processing album resources according to yet another embodiment of the present application;
图10为本申请一实施例提出的一种相册资源的处理装置的方框示意图;FIG10 is a block diagram of a device for processing album resources according to an embodiment of the present application;
图11示出了适于用来实现本申请实施例的电子设备或服务器的计算机系统的结构示意图。FIG. 11 shows 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.
具体实施方式DETAILED DESCRIPTION
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与发明相关的部分。The present application will be 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 inventions, rather than to limit the inventions. It should also be noted that, for ease of description, only the parts related to the invention are shown in the accompanying drawings.
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。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.
图2为本申请一实施例提出的一种相册资源的处理方法的流程图。如图2所示,本申请实施例提出的相册资源的处理方法,包括以下步骤;FIG2 is a flow chart of a method for processing album resources proposed in an embodiment of the present application. As shown in FIG2, the method for processing album resources proposed in an embodiment of the present application includes the following steps:
步骤101,获取用于按照时间顺序进行相册资源展示的访问请求。Step 101: Obtain an access request for displaying album resources in chronological order.
需要说明的是,用于按照时间顺序进行相册资源展示的访问请求,可通过相册系统应用程序App(Application)中的控件获取,也就是说,用户在使用终端设备,并启动相册系统App后,可利用用户界面中展示的控件选择按照时间顺序对终端设备本地存储的图像资源进行展示,此时,相册系统App获取到用于按照时间顺序进行相册资源展示的访问请求。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.
步骤102,响应于访问请求,获取相册资源中预设时间段内的目标相册资源。Step 102: In response to the access request, obtain a target album resource within a preset time period in the album resource.
需要说明的是,相册资源为终端设备本地存储的相册资源,也就是说,在获取到访问请求之后,可进一步从本地存储的相册资源中按照时间顺序获取相册资源。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.
应当理解的是,预设时间段为当前提取相册资源的目标时间段。也就是说,为了满足按照时间顺序展示相册资源,因此,需要按照时间顺序对相册资源进行提取,从而有效避免存储在本地的相册资源数量较大时先获取在后时间的相册资源,影响对相册资源的展示。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, which affects the display of the album resources.
还应当理解的是,随着图像领域的发展,图像占有的内存越来越大,在部分场景中,从本地提取相册资源时,一次提取可能无法提取到全部满足该预设时间段的相册资源,例如某预设时间段内,本地存储有多个高清视频、大量4K图片等。此时,可根据访问请求对预设时间段内的相册资源进行多次请求,直至将相册资源内符合该预设时间段的全部相册资源取出为止。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.
其中,预设时间段可根据用户选择的访问请求设定,例如以日为单位、以月为单元、以年为单位等。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.
步骤103,获取目标相册资源的第一时间标记,以及资源列表中当前记录的第二时间标记。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.
其中,第一时间标记为预设时间段的时间信息,即,本地相册资源根据访问请求,按照时间顺序从相册资源中提取出目标相册资源,并发送给相册系统App,此时,相册系统App并不确知当前接收到的目标相册资源所属的时间段,因此,需要根据获取到的目标相册资源识别目标相册资源的第一时间标记。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.
资源列表中当前记录的第二时间标记可为相册系统App最后一次接收到的目标相册资源对应的时间标记。应当理解的是,第二时间标记可在资源列表展示时作为展示标签。The second time stamp of the current record in the resource list may be the time stamp corresponding to the target album resource received by the album system App for the last time. It should be understood that the second time stamp may be used as a display label when the resource list is displayed.
步骤104,在第一时间标记与第二时间标记相同时,将目标相册资源中的图像资源导入资源列表,并修改资源列表中第二时间标记对应的资源信息。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.
应当理解的是,当第一时间标记和第二时间标记相同,则说明目标相册资源数据所属的时间段在资源列表中已存在,此时,如果继续保留第一时间标记,则使得资源列表中出现多个相同的时间标记,如图1所示,因此,可将目标相册资源中的图像资源导入资源列表,并修改资源列表中第二时间标记对应的资源信息,以使第二时间标记对应的资源信息与当前资源列表中满足第二时间标记的相册资源相符,例如第二时间标记对应的图像个数与实际个数相同,进而使得在按照时间顺序对资源列表进行展示时不会出现多个相同的时间标记。It should be understood that when the first time marker and the second time marker 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 marker is retained, multiple identical time markers will appear in the resource list, as shown in Figure 1. 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 marker in the resource list can be modified to make the resource information corresponding to the second time marker consistent with the album resources in the current resource list that meet the second time marker, for example, the number of images corresponding to the second time marker is the same as the actual number, so that multiple identical time markers will not appear when the resource list is displayed in chronological order.
其中,图像资源可包括图像资源的类型、经纬度、是否自拍、所属相册、视频资源时长、分辨率、照片原始资源等信息,当图像资源的类型为图片是,图像资源还可进一步包括图片类型,例如截图、普通、gif和实况图。资源信息可包括图像资源的个数、每个图像的图像资源等。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.
步骤105,按照时间顺序对资源列表进行展示,其中,资源列表中包含至少一个图像单元。Step 105: Display the resource list in chronological order, wherein the resource list includes at least one image unit.
其中,一个图像单元用于表示一个图像资源。Among them, an image unit is used to represent an image resource.
具体而言,在获取到用于按照时间顺序进行相册资源展示的访问请求后,响应于该访问请求,从本地相册资源中获取预设时间段内的目标相册资源,然后提取目标相册资源的第一时间标记,和相册资源App当前记录的第二时间标记,并判断第一时间标记和第二时间标记是否相同,如果相同,则将目标相册资源中的图像资源导入资源列表,并修改资源列表第二时间标记对应的资源信息,然后按照时间顺序对资源列表进行展示。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.
由此,本申请在第一时间标记和第二时间标记相同时,通过在将目标相册资源中的图像资源导入资源列表时,修改资源列表中第二时间标记对应的资源信息,使得第二时间标记对应的资源信息与该时间段的实际资源相符,从而无需使用多个时间标记对资源信息进行展示。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.
进一步地,在第一时间标记和第二时间标记不同时,利用第一时间标记创建新的时间标记,并将新的时间标记作为资源列表中当前记录的第二时间标记,将目标相册资源中的图像资源导入资源列表,并记录第二时间标记对应的资源信息。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.
也就是说,如果第一时间标记和第二时间标记不同,则说明资源列表中尚未获取到第一时间标记所属时间段的相册资源,需要创建新的时间标签,该时间标签与第一时间标记相符,以使目标相册资源中的图像资源在导入资源列表时能够存在隶属于与之相应的时间标签,然后再将目标相册资源中的图像资源导入资源列表,并记录第二时间标记对应的资源信息,以使当前第二时间标记对应的资源信息符合接收到的目标相册资源。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.
举例来说,如图3所示,在根据访问请求得到的目标相册资源的第一时间标记为11月5日时,其与当前资源列表中记录的第二时间标记11月5日相同,此时,将目标相册资源中的图像资源A和图像资源B直接导入资源列表中,并修改资源列表中第二时间标记对应的资源信息,以使第二时间标记对应的资源信息中的图像资源个数增加2,使得在根据资源列表进行相册资源展示时通过一个时间标记即可展示11月5日两次获得的全部图像资源。For example, as shown in Figure 3, 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 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 to increase the number of image resources in the resource information corresponding to the second time mark 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.
如图4所示,在根据访问请求得到的目标相册资源的第一时间标记为11月6日时,其与当前资源列表中记录的第二时间标记11月5日不相同,此时,利用11月6日创建新的时间标记,并将新的时间标记11月6日作为新的第二时间标记,然后将目标相册资源中的图像资源导入资源列表,并记录当前第二时间标记(11月6日)对应的资源信息。As shown in Figure 4, 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.
更进一步地,如图5所示,响应于访问请求,获取相册资源中预设时间段内的目标相册资源,包括:Furthermore, as shown in FIG5 , in response to the access request, obtaining the target album resource within a preset time period in the album resource includes:
步骤201,根据访问请求,生成符合时间顺序的时间线数组。Step 201: Generate a timeline array in chronological order according to an access request.
步骤202,根据时间线数组,依次生成相应时间段的资源提取请求。Step 202: Generate resource extraction requests for corresponding time periods in sequence according to the timeline array.
步骤203,响应于相册资源中当前时间段的相册资源提取结束的信号,将下一时间段作为预设时间段,并执行预设时间段对应的资源提取请求,以得到预设时间段内的目标相册资源。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.
也就是说,在获取到用于按照时间顺序进行相册资源展示的访问请求之后,根据访问请求生成符合时间顺序的时间线数组,然后按照时间线数组依次生成各个时间段的资源提取请求,然后对单个时间段的资源提取请求增加信号量并锁定,当单个时间段的所有相册资源都提取结束时,无可反馈的相册资源,此时,可生成并反馈对当前时间段的相册资源提取结束的反馈信号,即,该时间段对应的所有图像资源均已反馈至相册系统App,则解锁执行下一个时间段的资源提取请求。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.
由此,能够确保每次提取出的目标相册资源符合时间顺序,在本地相册资源数据量较大时,有效避免在先展示的相册资源数据不全的问题。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.
可选的,识别资源列表中的图像资源的个数,在图像资源的个数达到预设个数时,展示资源列表。举例来说,在本地相册资源数据量较大时,可按照时间顺序提取目标相册资源,在将目标相册资源导入资源列表后,获取资源列表中的全部图像资源的个数,如果图像资源的个数达到预设个数,此时可将资源列表进行展示,同时,继续获取目标相册资源,并对资源列表进行更新。以及根据更新后的资源列表进行展示。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.
由于界面展示的仅仅是资源数据,不包含有图像的图像数据,即,在展示资源列表时仅仅展示了用于表达图像资源的标签,例如用户界面中的图像框体,为了让用户能够确知展示的图像内容,需要将图像数据加载到显示界面中,但是,当需要加载的图像数据量较大时,加载耗时加大,容易出现明显卡顿。Since the interface only displays resource data and does not include image data, that is, when displaying the resource list, only the labels used to express image resources are displayed, 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.
作为一个可行实施例,如图6所示,相册资源的处理方法,还包括:As a feasible embodiment, as shown in FIG6 , the method for processing album resources further includes:
步骤301,接收对显示界面的刷新请求。Step 301: Receive a refresh request for a display interface.
其中,显示界面的刷新请求可包括通过用户下拉显示界面等操作来获取。The refresh request of the display interface may be obtained by operations such as the user pulling down the display interface.
步骤302,获取已请求到图像数据的图像单元,其中,图像数据是利用与图像单元绑定的请求指令获取的。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.
需要说明的是,请求指令可根据图像资源的唯一标识生成,并绑定在表达该图像资源的图像单元上,使得能够根据图像单元的位置情况和/或选择情况执行相应的请求指令,以获得图像单元对应的图像数据。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.
步骤303,在图像单元处于显示界面内时,显示图像数据。Step 303: when the image unit is in the display interface, display the image data.
进一步地,如图7所示,获取已请求到图像数据的图像单元之前,还可包括:Further, as shown in FIG7 , before obtaining the image unit whose image data has been requested, the following may also be included:
步骤401,获取处于显示界面内的图像单元在资源列表中的位置信息。Step 401: Obtain location information of an image unit in a display interface in a resource list.
步骤402,根据位置信息,选取待请求图像数据的图像单元作为缓存图像单元。Step 402: Select an image unit of the image data to be requested as a cache image unit according to the location information.
步骤403,利用缓存图像单元绑定的请求指令,获取缓存图像单元的图像数据。Step 403: Acquire the image data of the cache image unit by using the request instruction bound to the cache image unit.
也就是说,为了确保用户浏览图像的流畅性,可根据当前显示界面内的图像单元的位置,选取缓存图像单元,然后对缓存图像单元的图像数据进行提前缓存,从而确保图像单元移动到显示界面内时能够显示相应的图像数据,提升用户的浏览体验。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.
具体而言,在用户浏览相册系统App的显示界面时,相册系统App会根据当前处于显示界面内的图像单元选取需要缓存图像数据的图像单元,然后根据缓存图像单元绑定的请求指令获取缓存图像单元对应的图像数据,在缓存结束后实时判断已请求到图像数据的图像单元是否被用户移动到显示界面内,如果是,则将缓存得到的图像数据展示在图像单元中,如果否,则情况缓存到的数据。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.
应当理解的是,缓存得到的图像数据可存储在内存中。相册系统App可利用由IOS系统中的相册系统app管理的视频和图片资源的信息集(PHAsset),从终端API(Application Programming Interface,应用程序接口)中获取UIImage类的图像数据,其中,UIImage为IOS系统中用来加载图像的一个类,图像单元(UIImageView)用于绑定请求指令并将获取到的图像数据进行展示。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.
更进一步地,根据位置信息,选取待请求图像数据的图像单元作为缓存图像单元,包括:获取刷新请求的请求频率,在请求频率大于预设频率阈值时,中断执行根据位置信息,选取待请求图像数据的图像单元作为缓存图像单元的步骤;在请求频率小于或等于预设频率阈值时,继续执行根据位置信息,选取待请求图像数据的图像单元作为缓存图像单元的步骤。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.
需要说明的是,在较多场景中,用户为了尽快定位所需的图像,会对显示界面中的图像进行快速浏览,即,快速滑动显示界面,此时,能够较高频率的接收到刷新请求,即,获取到刷新请求的请求频率大于预设频率阈值。此时如果按照常规的方式对在显示界面中进行显示的图像单元均进行图像数据的获取,则会导致图像数据的访问量急剧增大,造成显示卡顿。因此,本申请在请求频率大于预设频率阈值时,控制中断执行根据位置信息,选取待请求图像数据的图像单元作为缓存图像单元的步骤,以有效降低图像数据的请求量,防止终端设备发生卡顿。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.
其中,预设频率阈值可为满足慢速滑动浏览的频率阈值。也就是说,当快速滑动逐渐降低至慢速浏览或用户仅处于慢速浏览时,则需要继续执行根据位置信息,选取待请求图像数据的图像单元作为缓存图像单元的步骤,以提前获取缓存图像数据,确保用户浏览到的图像单元能够及时展示相应的图像数据。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.
具体地,如图8所示,显示界面展示包含有图像单元的资源列表,然后计算当前显示界面内的图像单元在资源列表中的位置信息,判断是否接收到刷新请求,如果接收到刷新请求,则获取请求频率,判断请求频率是否大于预设频率,如果请求频率大于预设频率,则返回获取请求频率,如果请求频率小于或等于预设频率,则根据位置信息选取待请求图像数据的图像单元作为缓存图像单元。判断已请求到图像数据的图像单元是否在显示界面内,如果是,则利用图像单元展示图像数据,如果否,则删除已缓存的图像数据。Specifically, as shown in FIG8 , the display interface displays a resource list containing image units, and 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. Determine 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.
作为一个可行实施例,如图9所示,相册资源的处理方法,包括:As a feasible embodiment, as shown in FIG9 , the method for processing album resources includes:
步骤501,接收推送上传指令,并根据推送上传指令获取推送上传列表。Step 501, receiving a push upload instruction, and obtaining a push upload list according to the push upload instruction.
步骤502,根据图像单元绑定的请求指令,获取与图像单元对应的图像数据,并将图像数据上传至目标服务器。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.
步骤503,响应于推送上传列表中的图像均上传结束的反馈信号,获取手动上传列表或备份上传列表,并将手动上传列表或备份上传列表上传至目标服务器。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.
需要说明的是,相关技术中,相册系统App通常设置有手动上传和备份上传,通常用户在开启自动备份功能时,相册系统App在终端设备连接网络的情况下能够自动将图像数据上传至目标服务器,以通过服务器对本地的相册进行备份;手动备份为用户通过选择需要进行备份的图像单元,然后将选择的图像单元对应的图像数据上传至目标服务器,以通过服务器对本地的相册进行备份。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.
推送上传为将推送上传列表中的图像单元对应的图像数据上传至目标服务器,然后再由服务器将图像数据的信息推送至目标设备。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.
具体而言,在本申请中,推送上传的优先级优于手动上传和备份上传,即,在接收到推送上传指令后,则根据推送上传指令获取推送上传列表,然后根据推送上传列表中的图像单元获取相应的图像数据进行上传,直至推送上传列表中的图像单元均上传完成,再执行手动上传列表或备份上传列表中的上传任务。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.
进一步地,获取手动上传列表或备份上传列表,并将手动上传列表或备份上传列表上传至目标服务器,包括:从手动上传列表和备份上传列表中识别出与推送上传列表重复的重复图像单元;将手动上传列表和备份上传列表中的重复图像单元进行删除。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.
也就是说,可将已通过推送上传的图像单元在手动上传列表和备份推送列表中删除,有效降低重复上传造成的资源消耗,提高本地相册资源的上传效率。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.
进一步地,当推送上传列表中含有大量图像单元时,同时将推送列表中的图像单元进行上传容易在获取图像数据时造成内存崩溃,因此,可根据上传列表中的顺序,按照预设数量进行图像数据的获取和上传,从而有效避免获取图像数据时终端设备内存崩溃的问题。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.
综上所述,本申请在第一时间标记和第二时间标记相同时,通过在将目标相册资源中的图像资源导入资源列表时,修改资源列表中第二时间标记对应的资源信息,使得第二时间标记对应的资源信息与该时间段的实际资源相符,从而无需使用多个时间标记对资源信息进行展示。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.
为了达到上述目的,本申请提出一种相册资源的处理装置。In order to achieve the above objectives, the present application proposes a device for processing album resources.
图10为本申请一实施例提出的一种相册资源的处理装置的方框示意图。如图10所示,本申请实施例的相册资源的处理装置10,包括:FIG10 is a block diagram of a device for processing photo album resources according to an embodiment of the present application. As shown in FIG10 , the device for processing photo album resources 10 according to an embodiment of the present application includes:
第一获取模块11,用于获取用于按照时间顺序进行相册资源展示的访问请求。The first acquisition module 11 is used to acquire an access request for displaying album resources in chronological order.
第二获取模块12,用于响应于访问请求,获取相册资源中预设时间段内的目标相册资源。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.
第三获取模块13,用于获取目标相册资源的第一时间标记,以及资源列表中当前记录的第二时间标记。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.
控制模块14,用于在第一时间标记与第二时间标记相同时,将目标相册资源中的图像资源导入资源列表,并修改资源列表中第二资源标记对应的资源信息。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.
展示模块15,用于按照时间顺序对资源列表进行展示。The display module 15 is used to display the resource list in chronological order.
在一些实施例中,控制模块14,还用于:In some embodiments, the control module 14 is further configured to:
在第一时间标记和第二时间标记不同时,利用第一时间标记创建新的时间标记,并将新的时间标记作为资源列表中当前记录的第二时间标记;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.
在一些实施例中,第二获取模块12,还用于:In some embodiments, the second acquisition module 12 is further used to:
根据访问请求,生成符合时间顺序的时间线数组;Generate a timeline array in chronological order 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 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.
在一些实施例中,控制模块14,还用于:In some embodiments, the control module 14 is further configured to:
接收对显示界面的刷新请求;Receiving a refresh request for the display interface;
获取已请求到图像数据的图像单元,其中,图像数据利用与图像单元绑定的请求指令获取;Acquire an 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.
在一些实施例中,控制模块14,还用于:In some embodiments, the control module 14 is further configured to:
获取处于显示界面内的图像单元在资源列表中的位置信息;Obtaining the position information of the image unit in the display interface in the resource list;
根据位置信息,选取待请求图像数据的图像单元作为缓存图像单元;Selecting, according to the location information, an image unit of the image data to be requested as a cached image unit;
利用与缓存图像单元绑定的请求指令,获取缓存图像单元的图像数据。The image data of the cache image unit is obtained by utilizing the request instruction bound to the cache image unit.
在一些实施例中,控制模块14,还用于:In some embodiments, the control module 14 is further configured to:
获取刷新请求的请求频率;Get the request frequency of refresh requests;
在请求频率大于预设频率阈值时,中断执行根据位置信息,选取待请求图像数据的图像单元作为缓存图像单元的步骤;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;
在请求频率小于或等于预设频率阈值时,继续执行根据位置信息,选取待请求图像数据的图像单元作为缓存图像单元的步骤。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.
在一些实施例中,控制模块14,还用于:In some embodiments, the control module 14 is further configured to:
接收推送上传指令,并根据推送上传指令获取推送上传列表,其中,推送上传列表包括至少一个图像单元;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;
根据与图像单元绑定的请求指令,获取与图像单元对应的图像数据,并将图像数据上传至目标服务器;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;
响应于推送上传列表中的图像单元均上传结束的反馈信号,获取手动上传列表或备份上传列表,并将手动上传列表或备份上传列表上传至目标服务器。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.
在一些实施例中,控制模块14,还用于:In some embodiments, the control module 14 is further configured to:
从手动上传列表和备份上传列表中识别出与推送上传列表重复的重复图像单元;identifying duplicate image units from the manual upload list and the backup upload list that are duplicates of the push upload list;
将手动上传列表和备份上传列表中的重复图像单元进行删除。Delete duplicate image units in the manual upload list and the backup upload list.
应当理解,装置中记载的诸单元或模块与上述描述的方法中的各个步骤相对应。由此,上文针对方法描述的操作指令和特征同样适用于装置及其中包含的模块,在此不再赘述。装置可以预先实现在电子设备的浏览器或其他安全应用中,也可以通过下载等方式而加载到电子设备的浏览器或其他安全应用中。装置中的相应模块可以与电子设备中的模块相互配合以实现本申请实施例的方案。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.
综上所述,本申请在第一时间标记和第二时间标记相同时,通过在将目标相册资源中的图像资源导入资源列表时,修改资源列表中第二时间标记对应的资源信息,使得第二时间标记对应的资源信息与该时间段的实际资源相符,从而无需使用多个时间标记对资源信息进行展示。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.
在上文详细描述中提及的若干模块或单元,这种划分并非强制性的。实际上,根据本公开的实施方式,上文描述的两个或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,上文描述的一个模块或单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。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.
下面参考图11,图11示出了适于用来实现本申请实施例的电子设备或服务器的计算机系统的结构示意图,Referring to FIG. 11 , FIG. 11 shows a schematic diagram of a computer system of an electronic device or server suitable for implementing an embodiment of the present application.
如图11所示,计算机系统包括中央处理单元(CPU)1101,其可以根据存储在只读存储器(ROM)1102中的程序或者从存储部分1108加载到随机访问存储器(RAM)1103中的程序而执行各种适当的动作和处理。在RAM1103中,还存储有系统的操作指令所需的各种程序和数据。CPU1101、ROM1102以及RAM1103通过总线1104彼此相连。输入/输出(I/O)接口1105也连接至总线1104。As shown in FIG11 , the computer system includes a central processing unit (CPU) 1101, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1102 or a program loaded from a storage portion 1108 into a random access memory (RAM) 1103. Various programs and data required for the operation instructions of the system are also stored in the RAM 1103. The CPU 1101, the ROM 1102, and the RAM 1103 are connected to each other via a bus 1104. An input/output (I/O) interface 1105 is also connected to the bus 1104.
以下部件连接至I/O接口1105;包括键盘、鼠标等的输入部分1106;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分1107;包括硬盘等的存储部分1108;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分1109。通信部分1109经由诸如因特网的网络执行通信处理。驱动器1110也根据需要连接至I/O接口1105。可拆卸介质1111,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器1110上,以便于从其上读出的计算机程序根据需要被安装入存储部分1108。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.
特别地,根据本申请的实施例,上文参考流程图图2描述的过程可以被实现为计算机软件程序。例如,本申请的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分1109从网络上被下载和安装,和/或从可拆卸介质1111被安装。在该计算机程序被中央处理单元(CPU)1101执行时,执行本申请的系统中限定的上述功能。In particular, according to an embodiment of the present application, the process described above with reference to flowchart Figure 2 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 flowchart. In such an embodiment, the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 1109, and/or installed from a removable medium 1111. When the computer program is executed by a central processing unit (CPU) 1101, the above-mentioned functions defined in the system of the present application are executed.
需要说明的是,本申请所示的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本申请中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本申请中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以为的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。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.
附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作指令。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,前述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以不同于附图中所标注的顺序发生。例如,两个连接表示的方框实际上可以基本并行地执行,他们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作指令的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。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.
描述于本申请实施例中所涉及到的单元或模块可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元或模块也可以设置在处理器中,例如,可以描述为:一种处理器包括第一获取单元、第二获取单元、第三获取单元、控制单元和展示单元。其中,这些单元或模块的名称在某种情况下并不构成对该单元或模块本身的限定,例如,第一获取模块,还可以被描述为“获取用于按照时间顺序进行相册资源展示的访问请求”。The units or modules involved in the embodiments of the present application may be implemented in software or hardware. The units or modules described may also be provided in a processor. For example, they may be described as follows: a processor includes a first acquisition unit, a second acquisition unit, a third acquisition unit, a control unit, and a display unit. The names of these units or modules do not, in some cases, constitute limitations on the units or modules themselves. For example, the first acquisition module may also be described as "acquiring access requests for displaying album resources in chronological order."
作为另一方面,本申请还提供了一种计算机可读存储介质,该计算机可读存储介质可以是上述实施例中描述的电子设备中所包含的,也可以是单独存在,而未装配入该电子设备中的。上述计算机可读存储介质存储有一个或多个程序,当上述程序被一个或者一个以上的处理器用来执行描述于本申请的相册资源的处理方法。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.
以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离前述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其他技术方案。例如上述特征与本申请中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。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 (11)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011344169.0A CN112463998B (en) | 2020-11-25 | 2020-11-25 | Method, device, electronic device and storage medium for processing album resources |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011344169.0A CN112463998B (en) | 2020-11-25 | 2020-11-25 | Method, device, electronic device and storage medium for processing album resources |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112463998A CN112463998A (en) | 2021-03-09 |
CN112463998B true CN112463998B (en) | 2024-08-27 |
Family
ID=74809462
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011344169.0A Active CN112463998B (en) | 2020-11-25 | 2020-11-25 | Method, device, electronic device and storage medium for processing album resources |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112463998B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113282846B (en) * | 2021-05-19 | 2022-09-23 | 武汉悦学帮网络技术有限公司 | Image display method and device, electronic equipment and computer readable storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102663034A (en) * | 2012-03-23 | 2012-09-12 | 北京云图微动科技有限公司 | File composing device and file composing method |
CN104216976A (en) * | 2014-09-01 | 2014-12-17 | 广东欧珀移动通信有限公司 | A mobile terminal picture group viewing method and system |
Family Cites Families (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4083917B2 (en) * | 1998-04-10 | 2008-04-30 | 富士フイルム株式会社 | Electronic album system and operation control method thereof |
US6428155B1 (en) * | 1999-05-25 | 2002-08-06 | Silverbrook Research Pty Ltd | Printer cartridge including machine readable ink |
KR101404738B1 (en) * | 2007-05-18 | 2014-06-19 | 엘지전자 주식회사 | Timeline photo album and photo album display device and method using same |
CN104951459A (en) * | 2014-03-26 | 2015-09-30 | 腾讯科技(深圳)有限公司 | Display method and device for photo gallery |
CN105630791B (en) * | 2014-10-27 | 2020-11-10 | 腾讯科技(深圳)有限公司 | Network album browsing method and device |
CN105989182A (en) * | 2015-04-13 | 2016-10-05 | 乐视移动智能信息技术(北京)有限公司 | Photo display method and intelligent terminal |
CN104933146A (en) * | 2015-06-19 | 2015-09-23 | 深圳天珑无线科技有限公司 | Photo management method, photo management device and mobile terminal |
CN105808667A (en) * | 2016-02-29 | 2016-07-27 | 北京小米移动软件有限公司 | Image acquisition method, apparatus and system |
CN105912216A (en) * | 2016-04-25 | 2016-08-31 | 珠海格力电器股份有限公司 | Method, system and terminal for displaying electronic photo |
CN106657817A (en) * | 2016-12-28 | 2017-05-10 | 杭州趣维科技有限公司 | Processing method applied to mobile phone platform for automatically making album MV |
CN107085612A (en) * | 2017-05-15 | 2017-08-22 | 腾讯科技(深圳)有限公司 | media content display method, device and storage medium |
CN107153708A (en) * | 2017-05-16 | 2017-09-12 | 珠海市魅族科技有限公司 | A kind of picture inspection method and device, computer installation, computer-readable recording medium |
CN110109878A (en) * | 2018-01-10 | 2019-08-09 | 广东欧珀移动通信有限公司 | Photo album management method and device, storage medium and electronic equipment |
CN108228030B (en) * | 2018-01-17 | 2021-01-08 | Oppo广东移动通信有限公司 | Album display method, device, storage medium and electronic device |
CN108256072B (en) * | 2018-01-17 | 2021-03-02 | Oppo广东移动通信有限公司 | Album display method, apparatus, storage medium and electronic device |
CN108537057A (en) * | 2018-03-27 | 2018-09-14 | 百度在线网络技术(北京)有限公司 | Method and apparatus for handling photograph album browse request |
CN108763597A (en) * | 2018-07-12 | 2018-11-06 | 太仓煜和网络科技有限公司 | A kind of photograph album photo display system based on artificial intelligence |
CN110955788A (en) * | 2019-11-28 | 2020-04-03 | 维沃移动通信有限公司 | Information display method and electronic equipment |
-
2020
- 2020-11-25 CN CN202011344169.0A patent/CN112463998B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102663034A (en) * | 2012-03-23 | 2012-09-12 | 北京云图微动科技有限公司 | File composing device and file composing method |
CN104216976A (en) * | 2014-09-01 | 2014-12-17 | 广东欧珀移动通信有限公司 | A mobile terminal picture group viewing method and system |
Also Published As
Publication number | Publication date |
---|---|
CN112463998A (en) | 2021-03-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6566330B2 (en) | Video editing method | |
CN109117425B (en) | Method, system, and medium for digital asset synchronization | |
US10067652B2 (en) | Providing access to a cloud based content management system on a mobile device | |
US20170364526A1 (en) | Systems and Methods for Remote Replay of User Interaction with a Webpage | |
US20150156247A1 (en) | Client-Side Bulk Uploader | |
US10929460B2 (en) | Method and apparatus for storing resource and electronic device | |
CN111176549B (en) | Data storage method and device based on cloud storage and storage medium | |
WO2018107719A1 (en) | Data sharing method, apparatus, terminal device and server | |
US20130325932A1 (en) | Electronic device and method for storing distributed documents | |
US20120109952A1 (en) | System, method, and computer program for remote management of digital content | |
WO2022188386A1 (en) | Video publishing method and apparatus, and device | |
CN115563071B (en) | Data processing method, system, electronic device and computer readable storage medium | |
CN107291839A (en) | Share the method and apparatus of picture | |
US11729248B2 (en) | Web application component migration to a cloud computing system | |
CN114116611A (en) | File scanning method and related device | |
CN113297267A (en) | Data caching and task processing method, device, equipment and storage medium | |
JP2008085983A (en) | Image data management apparatus, image data management method, and computer-readable storage medium | |
CN112463998B (en) | Method, device, electronic device and storage medium for processing album resources | |
CN113096218B (en) | Dynamic image playing method, device, storage medium and computer equipment | |
CN103246729A (en) | Method and system for processing multi-media files of android mobile terminal | |
CN117641023B (en) | Video processing method and device and electronic equipment | |
CN107885807B (en) | File saving method and device, intelligent tablet and storage medium | |
JP7417044B2 (en) | Information processing device, information processing system, information processing method and program | |
CN115509639A (en) | Page loading method and device, electronic equipment and computer readable storage medium | |
WO2015154678A1 (en) | File processing method, device, and network system |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |