[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN107766517A - A kind of acquisition methods of view data, device and mobile terminal - Google Patents

A kind of acquisition methods of view data, device and mobile terminal Download PDF

Info

Publication number
CN107766517A
CN107766517A CN201710998665.XA CN201710998665A CN107766517A CN 107766517 A CN107766517 A CN 107766517A CN 201710998665 A CN201710998665 A CN 201710998665A CN 107766517 A CN107766517 A CN 107766517A
Authority
CN
China
Prior art keywords
image data
date
target image
application
predetermined
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710998665.XA
Other languages
Chinese (zh)
Inventor
吴天文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710998665.XA priority Critical patent/CN107766517A/en
Publication of CN107766517A publication Critical patent/CN107766517A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/5866Retrieval 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72439User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72451User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Library & Information Science (AREA)
  • Multimedia (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

本申请实施例公开了一种图像数据的获取方法、装置及移动终端,该方法包括:当检测到对日历应用中的预定日期的选择操作时,获取与所述预定日期相匹配的目标图像数据;显示所述目标图像数据。利用本申请实施例,可以实现图像数据的获取或查找过程不需要通过从所有图像数据中逐一查找的方式实现,从而提高了图像查找效率,而且也提高了日历应用对用户的亲和力和粘性,提升用户体验。

The embodiment of the present application discloses a method, device and mobile terminal for acquiring image data, the method comprising: when a selection operation on a predetermined date in a calendar application is detected, acquiring target image data matching the predetermined date ; Display the target image data. Utilizing the embodiment of the present application, it is possible to realize the acquisition or search process of image data without searching all the image data one by one, thereby improving the image search efficiency, and also improving the affinity and stickiness of the calendar application to users, improving user experience.

Description

一种图像数据的获取方法、装置及移动终端Method, device and mobile terminal for acquiring image data

技术领域technical field

本申请涉及计算机技术领域,尤其涉及一种图像数据的获取方法、装置及移动终端。The present application relates to the field of computer technology, in particular to a method, device and mobile terminal for acquiring image data.

背景技术Background technique

随着终端技术的发展,尤其是移动终端(如手机或平板电脑等)成为人们生活的必需品。而随着人们对终端设备功能需求的不断提升,终端设备的功能也不断增加和完善,如摄像功能,终端设备的摄像功能为人们生活增添了乐趣、提供了便利,相应的,相册应用作为管理终端设备拍摄的图片或视频的应用程序,已成为终端设备中必备的管理应用。With the development of terminal technologies, especially mobile terminals (such as mobile phones or tablet computers, etc.) have become a necessity in people's lives. With the continuous improvement of people's demand for terminal equipment functions, the functions of terminal equipment are also continuously increased and improved, such as the camera function. The camera function of terminal equipment adds fun and convenience to people's life. The application program for the picture or video taken by the terminal device has become a necessary management application in the terminal device.

通过相册应用可以为用户提供记录和存储拍摄的图片和管理图片等,但是,相册应用中存储的图像往往较多,当用户需要查找某个日期或某一段时期终端设备中存储或拍摄的图像时,需要从终端设备中存储的所有图像中逐一查找,这样会消耗用户大量的时间,而且,查找过程中还可能存在遗漏情况而需要重新查找,从而造成图像查找效率较低,用户体验较差。The photo album application can provide users with the ability to record and store captured pictures and manage pictures, etc. However, there are often many images stored in the photo album application. , it is necessary to search one by one from all the images stored in the terminal device, which will consume a lot of time for the user, and there may be omissions in the search process and need to be searched again, resulting in low image search efficiency and poor user experience.

发明内容Contents of the invention

本申请实施例提供一种图像数据的获取方法,以解决现有技术中图像查找效率较低,用户体验较差的问题。The embodiment of the present application provides a method for acquiring image data, so as to solve the problems of low image search efficiency and poor user experience in the prior art.

为解决上述技术问题,本申请实施例是这样实现的:In order to solve the above technical problems, the embodiment of the present application is implemented as follows:

第一方面,本申请实施例提供的一种图像数据的获取方法,所述方法包括:In the first aspect, a method for acquiring image data provided in an embodiment of the present application, the method includes:

当检测到对日历应用中的预定日期的选择操作时,获取与所述预定日期相匹配的目标图像数据;When detecting a selection operation on a predetermined date in the calendar application, acquiring target image data matching the predetermined date;

显示所述目标图像数据。The target image data is displayed.

可选地,所述显示所述目标图像数据,包括:Optionally, the displaying the target image data includes:

根据所述目标图像数据的存储日期,以带有时间戳的线性显示方式,依次显示所述目标图像数据;或者,sequentially displaying the target image data in a linear display manner with a time stamp according to the storage date of the target image data; or,

根据所述目标图像数据的存储日期,在预定的显示区域内依次显示所述目标图像数据。The target image data is sequentially displayed in a predetermined display area according to the storage date of the target image data.

可选地,所述当检测到对日历应用中的预定日期的选择操作时,获取与所述预定日期相匹配的目标图像数据之前,所述方法还包括:Optionally, when a selection operation on a predetermined date in the calendar application is detected, before acquiring target image data matching the predetermined date, the method further includes:

当检测到所述日历应用启动时,显示是否允许获取相册应用中的图像数据的权限的选择框,所述选择框中包括允许选项和拒绝选项;When it is detected that the calendar application is started, a selection box is displayed whether to allow the permission to obtain the image data in the photo album application, and the selection box includes a permission option and a rejection option;

当检测到对所述选择框中允许选项的选择操作时,确定所述日历应用具有获取相册应用中的图像数据的权限。When a selection operation on the allowed option in the selection box is detected, it is determined that the calendar application has permission to acquire image data in the photo album application.

可选地,所示预定日期为单一日期,Optionally, the scheduled date shown is a single date,

所述获取与所述预定日期相匹配的目标图像数据,包括:The acquisition of target image data matching the predetermined date includes:

从所述相册应用中的图像数据中,获取在所述预定日期以及所述预定日期之后的日期存储的第一图像数据;acquiring first image data stored on the predetermined date and a date after the predetermined date from the image data in the photo album application;

将获取的第一图像数据作为与所述预定日期相匹配的目标图像数据。The acquired first image data is used as the target image data matching the predetermined date.

可选地,所述预定日期中包括两个以上的日期,则所述获取与所述预定日期相匹配的目标图像数据,包括:Optionally, if the predetermined date includes more than two dates, then the acquisition of target image data matching the predetermined date includes:

获取所述预定日期中的最早日期和最晚日期;obtaining the earliest date and the latest date among the scheduled dates;

从所述相册应用中的图像数据中,获取从所述最早日期到所述最晚日期之间的日期存储的第二图像数据;obtaining, from the image data in the photo album application, second image data stored from a date between the earliest date and the latest date;

将获取的第二图像数据作为与所述预定日期相匹配的目标图像数据;或者,using the acquired second image data as target image data matching the predetermined date; or,

所述预定日期中包括两个日期,则所述获取与所述预定日期相匹配的目标图像数据,包括:If two dates are included in the predetermined date, then the acquisition of the target image data matching the predetermined date includes:

从所述相册应用中的图像数据中,获取两个日期之间的日期存储的第三图像数据;Obtaining third image data stored on a date between two dates from the image data in the photo album application;

将获取的第三图像数据作为与所述预定日期相匹配的目标图像数据。The acquired third image data is used as the target image data matching the predetermined date.

可选地,所述方法还包括:Optionally, the method also includes:

当检测到对所述第二图像数据的查看操作时,根据所述第二图像数据,利用预先设定的图像播放规则生成视频播放数据,并播放所述视频播放数据;或者,When a viewing operation on the second image data is detected, according to the second image data, video playback data is generated using preset image playback rules, and the video playback data is played; or,

当检测到对所述第三图像数据的查看操作时,根据所述第三图像数据,利用预先设定的图像播放规则生成视频播放数据,并播放所述视频播放数据。When a viewing operation on the third image data is detected, according to the third image data, video playback data is generated by using a preset image playback rule, and the video playback data is played.

可选地,所述方法还包括:Optionally, the method also includes:

当检测到对所述目标图像数据的管理操作时,根据所述管理操作对所述目标图像数据进行处理,其中,所述管理操作包括删除操作、编辑操作和美化操作中的一种或多种;When a management operation on the target image data is detected, the target image data is processed according to the management operation, wherein the management operation includes one or more of a deletion operation, an editing operation and a beautification operation ;

将处理后的目标图像数据存储到所述相册应用对应的存储区域中。Store the processed target image data in a storage area corresponding to the photo album application.

第二方面,本申请实施例提供了一种图像数据的获取装置,所述装置包括:In a second aspect, an embodiment of the present application provides an image data acquisition device, the device comprising:

图像数据获取模块,用于当检测到对日历应用中的预定日期的选择操作时,获取与所述预定日期相匹配的目标图像数据;An image data acquiring module, configured to acquire target image data matching the scheduled date when a selection operation on the scheduled date in the calendar application is detected;

图像数据显示模块,用于显示所述目标图像数据。The image data display module is used to display the target image data.

可选地,所述图像数据显示模块,用于根据所述目标图像数据的存储日期,以带有时间戳的线性显示方式,依次显示所述目标图像数据;或者,根据所述目标图像数据的存储日期,在预定的显示区域内依次显示所述目标图像数据。Optionally, the image data display module is configured to sequentially display the target image data in a linear display manner with a time stamp according to the storage date of the target image data; or, according to the storage date of the target image data The date is stored, and the target image data is sequentially displayed in a predetermined display area.

可选地,所述装置还包括:Optionally, the device also includes:

选择框显示模块,用于当检测到所述日历应用启动时,显示是否允许获取相册应用中的图像数据的权限的选择框,所述选择框中包括允许选项和拒绝选项;The selection box display module is used to display a selection box whether to allow the permission to obtain the image data in the photo album application when it is detected that the calendar application is started, and the selection box includes a permission option and a rejection option;

权限确定模块,用于当检测到对所述选择框中允许选项的选择操作时,确定所述日历应用具有获取相册应用中的图像数据的权限。The authority determination module is configured to determine that the calendar application has the authority to obtain the image data in the photo album application when a selection operation on the allowed option in the selection box is detected.

可选地,所示预定日期为单一日期,Optionally, the scheduled date shown is a single date,

所述图像数据获取模块,包括:The image data acquisition module includes:

第一图像获取单元,用于从所述相册应用中的图像数据中,获取在所述预定日期以及所述预定日期之后的日期存储的第一图像数据;A first image acquisition unit, configured to acquire first image data stored on the predetermined date and a date after the predetermined date from the image data in the photo album application;

目标图像确定单元,用于将获取的第一图像数据作为与所述预定日期相匹配的目标图像数据。A target image determining unit, configured to use the acquired first image data as target image data matching the predetermined date.

可选地,所述预定日期中包括两个以上的日期,则所述图像数据获取模块,包括:Optionally, if more than two dates are included in the predetermined date, then the image data acquisition module includes:

日期获取单元,用于获取所述预定日期中的最早日期和最晚日期;a date obtaining unit, configured to obtain the earliest date and the latest date among the predetermined dates;

第二图像获取单元,用于从所述相册应用中的图像数据中,获取从所述最早日期到所述最晚日期之间的日期存储的第二图像数据;A second image acquiring unit, configured to acquire, from the image data in the photo album application, second image data stored on dates between the earliest date and the latest date;

第一目标图像确定单元,用于将获取的第二图像数据作为与所述预定日期相匹配的目标图像数据;或者,The first target image determining unit is configured to use the acquired second image data as the target image data matching the predetermined date; or,

所述预定日期中包括两个日期,则所述图像数据获取模块,包括:If two dates are included in the predetermined date, then the image data acquisition module includes:

第三图像获取单元,用于从所述相册应用中的图像数据中,获取两个日期之间的日期存储的第三图像数据;A third image acquisition unit, configured to acquire third image data stored on a date between two dates from the image data in the photo album application;

第二目标图像确定单元,用于将获取的第三图像数据作为与所述预定日期相匹配的目标图像数据。The second target image determining unit is configured to use the acquired third image data as the target image data matching the predetermined date.

可选地,所述装置还包括:Optionally, the device also includes:

第一视频生成模块,用于当检测到对所述第二图像数据的查看操作时,根据所述第二图像数据,利用预先设定的图像播放规则生成视频播放数据;The first video generation module is used to generate video playback data using preset image playback rules according to the second image data when a viewing operation on the second image data is detected;

第一播放模块,用于播放所述视频播放数据;The first playback module is used to play the video playback data;

或者,or,

第二视频生成模块,用于当检测到对所述第三图像数据的查看操作时,根据所述第三图像数据,利用预先设定的图像播放规则生成视频播放数据;The second video generation module is used to generate video playback data according to the third image data using preset image playback rules when a viewing operation on the third image data is detected;

第二播放模块,用于播放所述视频播放数据。The second playing module is used to play the video playing data.

可选地,所述装置还包括:Optionally, the device also includes:

图像处理模块,用于当检测到对所述目标图像数据的管理操作时,根据所述管理操作对所述目标图像数据进行处理,其中,所述管理操作包括删除操作、编辑操作和美化操作中的一种或多种;An image processing module, configured to process the target image data according to the management operation when a management operation on the target image data is detected, wherein the management operation includes a deletion operation, an editing operation, and a beautification operation one or more of

存储模块,用于将处理后的目标图像数据存储到所述相册应用对应的存储区域中。A storage module, configured to store the processed target image data in a storage area corresponding to the photo album application.

第三方面,本申请实施例提供一种移动终端,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现上述实施例提供的图像数据的获取方法的步骤In a third aspect, an embodiment of the present application provides a mobile terminal, including a processor, a memory, and a computer program stored on the memory and operable on the processor. When the computer program is executed by the processor, Steps for realizing the method for acquiring image data provided by the above-mentioned embodiments

第四方面,本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现上述实施例提供的图像数据的获取方法的步骤。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the methods for acquiring image data provided by the above-mentioned embodiments are implemented. step.

由以上本申请实施例提供的技术方案可见,本申请实施例在检测到用户对日历应用中的预定日期的选择操作时,获取与该预定日期相匹配的目标图像数据,然后,显示获取的目标图像数据,这样,在用户打开日历应用的时候,通过日历应用提供的年份或月份等日期直接获取与该日期的时间戳对应的图像数据,并显示给用户,便于用户后续对目标图像数据的查看、修改等操作,从而使得图像数据的获取或查找过程不需要通过从所有图像数据中逐一查找的方式实现,从而提高了图像查找效率,而且也提高了日历应用对用户的亲和力和粘性,提升用户体验。It can be seen from the above technical solutions provided by the embodiments of the present application that when the user’s selection operation on the predetermined date in the calendar application is detected, the embodiment of the present application acquires the target image data that matches the predetermined date, and then displays the acquired target Image data, so that when the user opens the calendar application, the image data corresponding to the time stamp of the date is directly obtained through the date provided by the calendar application such as the year or month, and displayed to the user, so that the user can view the target image data later , modification and other operations, so that the acquisition or search process of image data does not need to be realized by searching all image data one by one, thereby improving the efficiency of image search, and also improving the affinity and stickiness of the calendar application to users, and improving user experience. experience.

附图说明Description of drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments described in this application. Those skilled in the art can also obtain other drawings based on these drawings without any creative effort.

图1为本申请一种图像数据的获取方法实施例;Fig. 1 is an embodiment of a method for acquiring image data of the present application;

图2A为本申请一种图像数据的显示方式示意图;FIG. 2A is a schematic diagram of a display mode of image data in the present application;

图2B为本申请一种图像数据的显示方式示意图;FIG. 2B is a schematic diagram of a display mode of image data in the present application;

图3为本申请另一种图像数据的获取方法实施例;Fig. 3 is another embodiment of the method for acquiring image data of the present application;

图4为本申请一种用户在日历应用的显示界面中选择日期的示意图;FIG. 4 is a schematic diagram of a user selecting a date in a display interface of a calendar application in the present application;

图5为本申请又一种图像数据的显示方式示意图;FIG. 5 is a schematic diagram of another display mode of image data in the present application;

图6为本申请又一种图像数据的获取方法实施例;FIG. 6 is another embodiment of an image data acquisition method of the present application;

图7为本申请另一种用户在日历应用的显示界面中选择日期的示意图;FIG. 7 is another schematic diagram of a user selecting a date in a display interface of a calendar application in the present application;

图8为本申请一种图像数据的获取装置实施例;FIG. 8 is an embodiment of an image data acquisition device of the present application;

图9为本申请一种移动终端实施例。FIG. 9 is an embodiment of a mobile terminal of the present application.

具体实施方式Detailed ways

本申请实施例提供一种图像数据的获取方法、装置及移动终端。Embodiments of the present application provide a method, device, and mobile terminal for acquiring image data.

为了使本技术领域的人员更好地理解本申请中的技术方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to enable those skilled in the art to better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described The embodiments are only some of the embodiments of the present application, but not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the scope of protection of this application.

实施例一Embodiment one

如图1所示,本申请实施例提供一种图像数据的获取方法,该方法的执行主体可以为终端设备,该终端设备可以如个人计算机等设备,也可以如手机、平板电脑等移动终端设备,该终端设备可以为用户使用的终端设备。该方法可以用于通过日历应用获取并查看相关图像数据等处理中。该方法具体可以包括以下步骤:As shown in Figure 1, the embodiment of the present application provides a method for acquiring image data. The execution body of the method may be a terminal device, and the terminal device may be a personal computer or other mobile terminal device such as a mobile phone or a tablet computer. , the terminal device may be a terminal device used by a user. This method can be used in processes such as obtaining and viewing related image data through a calendar application. The method specifically may include the following steps:

在步骤S102中,当检测到对日历应用中的预定日期的选择操作时,获取与上述预定日期相匹配的目标图像数据。In step S102, when a selection operation on a predetermined date in the calendar application is detected, target image data matching the predetermined date is acquired.

其中,日历应用可以是为用户提供日期查询、节假日提醒、重要日期的记录和提醒等服务的应用程序,如手机的操作系统中通常安装的日历的应用程序等。预定日期可以是日历应用中能够提供的任意日期,如1970年1月1日或2017年9月18日等,或者,预定日期还可以是仅包括年份和月份的日期,如2017年7月等,再或者,预定日期还可以是仅包括年份的日期,如2016年等,又或者,预定日期还可以包括两个不同日期构成的时间段,如2017年6月15日-2017年7月5日等。选择操作可以通过多种方式实现,具体可以根据实际情况确定,例如点击或按压等。目标图像数据可以是用户通过相机拍摄的图片数据,也可以是用户通过网络下载的图像的数据,还可以是用户通过终端设备提供的图像生成工具生成的图像(例如,用户通过截图或截屏工具截取的相关图像)的数据等。Wherein, the calendar application may be an application program that provides users with services such as date query, holiday reminder, important date recording and reminder, such as a calendar application usually installed in the operating system of a mobile phone. The scheduled date can be any date that can be provided in the calendar application, such as January 1, 1970 or September 18, 2017, etc., or the scheduled date can also be a date that only includes the year and month, such as July 2017, etc. , or, the scheduled date can also be a date that only includes the year, such as 2016, etc., or, the scheduled date can also include a time period composed of two different dates, such as June 15, 2017-July 5, 2017 day and so on. The selection operation can be realized in various ways, which can be determined according to the actual situation, such as clicking or pressing. The target image data can be the picture data taken by the user through the camera, or the data of the image downloaded by the user through the network, or the image generated by the user through the image generation tool provided by the terminal device (for example, the user captures the image through a screenshot or a screen capture tool) related images) data, etc.

在实施中,由于日历给人们的生活带来了诸多便利,因此,日历也就成为人们生活中不可或缺的工具。相应的,日历应用也成为终端设备中必备的应用程序。日历应用中不仅可以为用户提供日期查询,还可以包括相关的其它功能,例如,通过日历记录某日期所经历的事件或某日期需要处理的事务等。尽管日历应用是终端设备中必备的应用程序,但是,通常的日历应用中提供的功能比较单一,仅仅包含一些固有的属性和功能,如上述提到的日期查询、节假日提醒等,因此,终端设备中日历应用的启动概率往往较小,从而造成日历应用相对于用户的亲和力较小,用户体验较差。为此本申请实施例提供一种日历的使用方法,通过日历应用可以从终端设备中查找任意日期或任意两个不同日期之间的日期存储的图像数据。In implementation, since the calendar brings many conveniences to people's life, the calendar becomes an indispensable tool in people's life. Correspondingly, the calendar application has also become a necessary application program in the terminal device. The calendar application can not only provide users with date query, but also include other related functions, for example, record events experienced on a certain date or transactions to be processed on a certain date through the calendar. Although the calendar application is a necessary application program in the terminal device, the functions provided in the usual calendar application are relatively single, and only include some inherent attributes and functions, such as the above-mentioned date query, holiday reminder, etc. Therefore, the terminal The launch probability of the calendar application in the device is often low, so that the affinity of the calendar application to the user is low, and the user experience is poor. To this end, the embodiment of the present application provides a method for using a calendar, through which the image data stored on any date or any date between any two different dates can be searched from the terminal device.

当用户需要查找某个日期或某一段时期(即多个日期)终端设备中存储的图像时,可以通过终端设备中提供的文件管理应用依次查找该用户存储到终端设备中的文件或数据的记录,从中查找到某个日期或某一段时期存储的图像,或者,还可以通过终端设备中提供的相册应用查找某个日期或某一段时期存储的图像,然而,文件管理应用和相册应用中的文件或数据的记录往往较多,用户从中查找某个日期或某一段时期存储的图像会消耗大量的时间,而且,查找到的图像可能存在遗漏。为了解决上述问题,本申请实施例通过日历应用来获取图像数据,具体处理过程可以包括:由于日历应用与终端设备中存储的图像数据通常没有直接的隶属关系,日历应用中往往不需要使用终端设备中的图像,因此,为了能够使得日历应用顺利获取到相应的图像数据,可以编写相应的程序接口,通过编写的程序接口可以建立日历应用与图像数据之间的数据交互通道,其中,程序接口可以通过多种编程语言进行编写,具体可以根据实际情况选择,具体如,如果终端设备的操作系统为Android操作系统,则程序接口可以通过JAVA编程语言编写,或者通过能够编译成JAVA编程语言的其它编程语言编写等,本申请实施例对此不做限定。When a user needs to search for images stored in a terminal device on a certain date or a certain period of time (that is, multiple dates), the file management application provided in the terminal device can be used to search in turn for the records of files or data stored in the terminal device by the user , to find images stored on a certain date or a certain period of time, or you can also find images stored on a certain date or a certain period of time through the photo album application provided in the terminal device. However, the files in the file management application and the photo album application Or there are often many records of data, and it will consume a lot of time for users to search for images stored on a certain date or in a certain period of time, and there may be omissions in the images found. In order to solve the above problems, the embodiment of the present application obtains image data through a calendar application, and the specific processing process may include: since the calendar application usually does not have a direct affiliation with the image data stored in the terminal device, the calendar application often does not need to use the terminal device Therefore, in order to enable the calendar application to obtain the corresponding image data smoothly, the corresponding program interface can be written, and the data interaction channel between the calendar application and the image data can be established through the written program interface. Among them, the program interface can be It is written in multiple programming languages, which can be selected according to the actual situation. For example, if the operating system of the terminal device is the Android operating system, the program interface can be written in the JAVA programming language, or other programming languages that can be compiled into the JAVA programming language Language writing, etc., are not limited in this embodiment of the present application.

当用户需要查找某个日期或某一段时期终端设备中存储的图像时,用户可以点击终端设备中安装的日历应用的快捷启动图标,终端设备可以启动日历应用,并获取并加载日历应用的相关数据,同时,可以获取当前的日期。加载完成后,终端设备可以显示包括当前日期在内的一个或多个日期的页面。此时,用户可以通过向上或向下滑动页面来查看其它未显示的日期,也可以通过向左或向右滑动页面来查看其它月份或年份的日期等。当用户在日历应用中查找到上述需要查找的日期或某一段时期对应的日期后,可以点击该日期或某一段时期对应的日期,此时,终端设备可以检测到对日历应用中的预定日期(即上述需要查找的日期或某一段时期对应的日期)的选择操作,日历应用可以生成图像获取指令,该图像获取指令中可以包括用户点击的日期的信息。日历应用可以将图像获取指令通过上述程序接口提供给终端设备,终端设备可以从图像获取指令中提取上述预定日期,并在终端设备中当前存储的图像数据中查找与提取的预定日期相匹配的图像数据作为目标图像数据,例如,预定日期为2017年4月15日,则终端设备可以从当前存储的图像数据中查找存储日期或拍摄日期为2017年4月15日的图像数据作为与上述预定日期相匹配的目标图像数据;或者,预定日期为2017年4月15日-217年5月8日,则终端设备可以从当前存储的图像数据中查找存储日期或拍摄日期在2017年4月15日-217年5月8日时间段内的图像数据作为与上述预定日期相匹配的目标图像数据等。When a user needs to search for images stored in a terminal device on a certain date or a certain period of time, the user can click the quick start icon of the calendar application installed in the terminal device, and the terminal device can start the calendar application, and obtain and load the relevant data of the calendar application , at the same time, you can get the current date. After the loading is completed, the terminal device can display pages of one or more dates including the current date. At this point, the user can view other undisplayed dates by sliding the page up or down, or view dates of other months or years by sliding the page left or right. When the user finds the above-mentioned date to be searched or the date corresponding to a certain period of time in the calendar application, he can click on the date or the date corresponding to a certain period of time. At this time, the terminal device can detect the predetermined date in the calendar application ( That is, for the above-mentioned selection operation of the date to be searched or the date corresponding to a certain period of time), the calendar application may generate an image acquisition instruction, and the image acquisition instruction may include the information of the date clicked by the user. The calendar application can provide the image acquisition instruction to the terminal device through the above-mentioned program interface, and the terminal device can extract the above-mentioned scheduled date from the image acquisition instruction, and search for an image matching the extracted scheduled date in the image data currently stored in the terminal device data as the target image data, for example, if the scheduled date is April 15, 2017, the terminal device can find the image data with the storage date or shooting date of April 15, 2017 from the currently stored image data as the image data with the above scheduled date Matching target image data; or, if the scheduled date is April 15, 2017-May 8, 217, the terminal device can find the storage date or shooting date on April 15, 2017 from the currently stored image data - Image data within the time period of May 8, 217 as target image data matching the aforementioned predetermined date, etc.

在步骤S104中,显示上述目标图像数据。In step S104, the above-mentioned target image data is displayed.

在实施中,终端设备通过上述步骤S102的处理得到与预定日期相匹配的目标图像数据后,可以将该目标图像数据显示在终端设备显示界面的指定位置,如图2A所示,在2017年9月1日处显示了存储的图像、在2017年9月2日处显示了存储的图像和在2017年9月3日处显示了存储的图像。例如,终端设备可以在日历应用中用户选择的预定日期的位置显示目标图像数据,或者,终端设备也可以重新开启新的页面,并将目标图像数据显示在新的页面中等。In practice, after the terminal device obtains the target image data that matches the predetermined date through the processing of the above step S102, it can display the target image data at a designated position on the display interface of the terminal device, as shown in Figure 2A, in September 2017 The stored image is shown on September 1, the stored image on September 2, 2017, and the stored image on September 3, 2017. For example, the terminal device may display the target image data at the location of the predetermined date selected by the user in the calendar application, or the terminal device may reopen a new page and display the target image data in the new page.

此外,目标图像数据的具体显示方式可以包括多种,例如,可以以时间轴的方式,根据目标图像数据存储日期或拍摄时间的先后顺序,在时间轴上依次显示相应的目标图像数据,如图2B所示,在时间轴上显示了多张图像数据以及其相应存储日期(或拍摄日期),即显示了2017年9月1日存储的图像、2017年9月2日存储的图像和2017年9月3日存储的图像等,或者,也可以将目标图像数据调整为预设尺寸的缩略图,然后,终端设备可以根据显示界面的尺寸将显示界面划分为多个图像显示区域,可以在每个图像显示区域放置一个目标图像数据的缩略图,以显示相应的目标图像数据。在实际应用中,除了可以采用上述显示方式,还可以通过多种不同的方式显示,具体可以根据实际情况设定,本申请实施例对此不做限定。In addition, the specific display methods of the target image data may include various methods. For example, the corresponding target image data may be sequentially displayed on the time axis according to the storage date or shooting time of the target image data in the form of a time axis, as shown in Fig. As shown in 2B, multiple image data and their corresponding storage dates (or shooting dates) are displayed on the time axis, that is, the images stored on September 1, 2017, the images stored on September 2, 2017, and the images stored in 2017 are displayed. The images stored on September 3, etc., or the target image data can also be adjusted to a thumbnail with a preset size. Then, the terminal device can divide the display interface into multiple image display areas according to the size of the display interface. place a thumbnail of the target image data in each image display area to display the corresponding target image data. In practical applications, in addition to the above-mentioned display methods, various display methods can also be used, which can be set according to actual conditions, and are not limited in this embodiment of the present application.

另外,用户还可以对显示的目标图像数据做进一步处理,例如,当用户轻触目标图像数据对应的图像时,终端设备可以获取该图像的相关属性信息,可以显示获取的相关属性信息,其中,该相关属性信息可以包括该图像存储或拍摄的日期和时间、拍摄地点、图像的尺寸和图像所占用的存储空间大小中的任意一项或多项。此外,用户还可以对目标图像数据进行分享、美化和修改等操作。In addition, the user can also further process the displayed target image data. For example, when the user touches the image corresponding to the target image data, the terminal device can obtain the relevant attribute information of the image, and can display the obtained relevant attribute information, wherein, The relevant attribute information may include any one or more of the date and time when the image is stored or shot, the shooting location, the size of the image, and the size of the storage space occupied by the image. In addition, users can also perform operations such as sharing, beautifying and modifying target image data.

本申请实施例提供一种图像数据的获取方法,在检测到用户对日历应用中的预定日期的选择操作时,获取与该预定日期相匹配的目标图像数据,然后,显示获取的目标图像数据,这样,在用户打开日历应用的时候,通过日历应用提供的年份或月份等日期直接获取与该日期的时间戳对应的图像数据,并显示给用户,便于用户后续对目标图像数据的查看、修改等操作,从而使得图像数据的获取或查找过程不需要通过从所有图像数据中逐一查找的方式实现,从而提高了图像查找效率,而且也提高了日历应用对用户的亲和力和粘性,提升用户体验。An embodiment of the present application provides an image data acquisition method. When a user's selection operation on a predetermined date in a calendar application is detected, target image data matching the predetermined date is obtained, and then the acquired target image data is displayed. In this way, when the user opens the calendar application, the image data corresponding to the time stamp of the date is directly obtained through the date provided by the calendar application such as the year or month, and displayed to the user, so that the user can view and modify the target image data later. Operation, so that the acquisition or search process of image data does not need to be realized by searching all image data one by one, thereby improving the efficiency of image search, and also improving the affinity and stickiness of the calendar application to users, and improving user experience.

实施例二Embodiment two

如图3所示,本申请实施例提供一种图像数据的获取方法,该方法的执行主体可以为终端设备,该终端设备可以如个人计算机等设备,也可以如手机、平板电脑等移动终端设备,该终端设备可以为用户使用的终端设备。该方法可以用于通过日历应用获取并查看相关图像数据等处理中。该方法具体可以包括以下步骤:As shown in Figure 3, the embodiment of the present application provides a method for acquiring image data. The execution subject of the method may be a terminal device, and the terminal device may be a personal computer or other mobile terminal device such as a mobile phone or a tablet computer. , the terminal device may be a terminal device used by a user. This method can be used in processes such as obtaining and viewing related image data through a calendar application. The method specifically may include the following steps:

在步骤S302中,当检测到日历应用启动时,显示是否允许获取相册应用中的图像数据的权限的选择框,该选择框中包括允许选项和拒绝选项。In step S302, when it is detected that the calendar application is started, a selection box is displayed whether to allow permission to obtain image data in the photo album application, and the selection box includes an allow option and a deny option.

其中,相册应用可以是为用户提供图像查询、拍摄的图像存储、拍摄的视频记录和存储等服务的应用程序,如手机的操作系统中通常安装的相册或相薄的应用程序等。图像数据可以是用户通过相机拍摄的图片数据,也可以是用户通过网络下载并放置在相册应用对应的相册中的图像的数据等。Wherein, the photo album application may be an application program that provides services such as image query, captured image storage, and captured video recording and storage for the user, such as a photo album or photobook application usually installed in the operating system of a mobile phone. The image data may be image data taken by the user through a camera, or image data downloaded by the user through the network and placed in an album corresponding to the album application.

在实施中,随着终端技术的发展,尤其是移动终端(如手机或平板电脑等)成为人们生活的必需品。而随着人们对终端设备功能需求的不断提升,终端设备设备的功能不断增加和完善,如摄像功能,终端设备的摄像功能为人们生活增添了乐趣、提供了便利,相应的,相册应用作为管理终端设备拍摄的图片或视频的应用程序,已成为终端设备中必备的管理应用。通过相册应用可以为用户提供记录和存储拍摄的图片和管理图片等,但是,相册应用中存储的图像往往较多,当用户需要查找某个日期或某一段时期终端设备中存储或拍摄的图像时,需要从终端设备中存储的所有图像中逐一查找,从而造成图像查找效率较低,用户体验较差。为此本申请实施例提供一种图像数据的获取方法,即结合相册应用和日历应用各自的优势,可以从终端设备中查找任意日期或任意两个不同日期之间的日期存储的图像数据。In practice, with the development of terminal technologies, especially mobile terminals (such as mobile phones or tablet computers, etc.) have become a necessity in people's lives. With the continuous improvement of people's demand for terminal equipment functions, the functions of terminal equipment continue to increase and improve, such as the camera function. The camera function of terminal equipment adds fun and convenience to people's life. The application program for the picture or video taken by the terminal device has become a necessary management application in the terminal device. The photo album application can provide users with the ability to record and store captured pictures and manage pictures, etc. However, there are often many images stored in the photo album application. , all images stored in the terminal device need to be searched one by one, resulting in low image search efficiency and poor user experience. For this reason, this embodiment of the present application provides an image data acquisition method, that is, combining the respective advantages of the album application and the calendar application, the image data stored on any date or any date between any two different dates can be searched from the terminal device.

当用户需要查找某个日期终端设备中存储的图像时,可以通过终端设备中的相册应用查找该用户存储到终端设备中的文件或数据的记录,从中查找到某个日期存储的图像,具体处理过程可以包括:由于日历应用与相册应用通常没有相互关联关系,日历应用中往往不需要使用相册应用中的图像,因此,为了能够使得日历应用与相册应用之间可以相互通信,可以编写相应的程序接口,通过编写的程序接口可以建立日历应用与相册应用之间的通信通道,其中,程序接口可以通过多种编程语言进行编写,具体如JAVA编程语言、C语言或C++编程语言等,本申请实施例对此不做限定。When a user needs to search for images stored in a terminal device on a certain date, the user can use the photo album application in the terminal device to search for the records of files or data stored in the terminal device by the user, and find the images stored on a certain date, and the specific processing The process may include: since the calendar application and the photo album application are usually not related to each other, the calendar application often does not need to use the images in the photo album application. Therefore, in order to enable the calendar application and the photo album application to communicate with each other, a corresponding program can be written Interface, the communication channel between the calendar application and the photo album application can be established through the written program interface, wherein the program interface can be written in a variety of programming languages, such as JAVA programming language, C language or C++ programming language, etc., the implementation of this application Examples are not limited to this.

当用户需要查找某个日期终端设备中存储的图像时,用户可以点击终端设备中安装的日历应用的快捷启动图标,终端设备可以启动日历应用。当终端设备检测到日历应用启动时,可以向用户提示是否启用上述程序接口来获取相册应用中的图像数据,具体提示方式可以多种多样,以下提供一种可选的实现方式,具体可以包括:弹出选择框,该选择框可以用于提示用户选择是否允许获取相册应用中的图像数据的权限,并且,该选择框中还包括允许选项和拒绝选项,其中的允许选项和拒绝选项可以通过按键的方式展现。When the user needs to search for an image stored in the terminal device on a certain date, the user can click the shortcut start icon of the calendar application installed in the terminal device, and the terminal device can start the calendar application. When the terminal device detects that the calendar application is started, it can prompt the user whether to enable the above program interface to obtain the image data in the photo album application. The specific prompt methods can be various. The following provides an optional implementation method, which can specifically include: A selection box pops up, which can be used to prompt the user to choose whether to allow the permission to obtain the image data in the photo album application, and the selection box also includes allow options and deny options, where the allow options and deny options can be selected by pressing the button way to show.

在步骤S304中,当检测到对上述选择框中允许选项的选择操作时,确定上述日历应用具有获取相册应用中的图像数据的权限。In step S304, when a selection operation on the allowable option in the selection box is detected, it is determined that the calendar application has permission to acquire image data in the photo album application.

其中,选择操作可以通过多种方式实现,具体可以根据实际情况确定,例如点击或按压等。Wherein, the selection operation can be realized in various ways, which can be determined according to actual conditions, such as clicking or pressing.

在实施中,终端设备可以实时监测用户对允许选项或拒绝选项的选择操作,如果检测到用户点击选择框中允许选项,则可以确定日历应用可以通过上述程序接口获取相册应用中的图像数据,即日历应用具有获取相册应用中的图像数据的权限,此时,可以执行下述步骤S306的处理。如果检测到用户点击选择框中拒绝选项,则可以确定日历应用不能通过上述程序接口获取相册应用中的图像数据,即日历应用不具有获取相册应用中的图像数据的权限,此时,用户只能够使用日历应用中日期查询、节假日提醒、重要日期的记录和提醒等常用功能。In the implementation, the terminal device can monitor the user's selection operation of the allow option or the reject option in real time, and if it is detected that the user clicks the allow option in the selection box, it can be determined that the calendar application can obtain the image data in the photo album application through the above-mentioned program interface, namely The calendar application has the authority to acquire the image data in the photo album application, and at this time, the processing of step S306 described below may be performed. If it is detected that the user clicks the reject option in the selection box, it can be determined that the calendar application cannot obtain the image data in the photo album application through the above program interface, that is, the calendar application does not have the permission to obtain the image data in the photo album application. At this time, the user can only Use common functions such as date query, holiday reminders, important date records and reminders in the calendar application.

当日历应用具有获取相册应用中的图像数据的权限时,可以检测用户是否对日历应用中的某日期(即预定日期)进行了选择操作,如果是,则可以执行下述步骤S306,如果否,则继续监测用户是否对日历应用中的某日期进行了选择操作。其中,预定日期可以包括多种情况,本实施例中以预定日期为单一日期为例进行详细说明,具体可以参见下述步骤S306~步骤S314。When the calendar application has the authority to obtain the image data in the photo album application, it can be detected whether the user has selected a certain date (i.e. the scheduled date) in the calendar application, if yes, the following step S306 can be performed, if not, Then continue to monitor whether the user selects a certain date in the calendar application. Wherein, the predetermined date may include various situations. In this embodiment, a single date is used as an example for detailed description. For details, please refer to the following steps S306 to S314.

在步骤S306中,当检测到对日历应用中的预定日期的选择操作时,从相册应用中的图像数据中,获取在该预定日期以及该预定日期之后的日期存储的第一图像数据。In step S306, when a selection operation on a predetermined date in the calendar application is detected, first image data stored on the predetermined date and a date after the predetermined date are acquired from image data in the photo album application.

在实施中,在日历应用启动,并获取到获取相册应用中的图像数据的权限后,终端设备可以显示包括当前日期在内的一个或多个日期的页面。此时,用户可以在日历应用中查找到上述需要查找的日期,然后,点击该日期,如图4所示,用户点击了日历应用中的2017年9月3日,此时,终端设备可以检测到对日历应用中的预定日期(即上述需要查找的日期)的选择操作。此时,日历应用可以生成图像获取指令,该图像获取指令中可以包括预定日期。日历应用可以将图像获取指令通过上述程序接口发送给相册应用,相册应用可以从图像获取指令中提取预定日期,并在相册应用中查找拍摄日期和/或存储日期为预定日期以及该预定日期之后的日期的第一图像数据,例如,预定日期为2017年9月3日,则相册应用可以从当前存储的图像数据中查找存储日期和/或拍摄日期为2017年9月3日的图像数据作为第一图像数据。In implementation, after the calendar application is started and the permission to obtain the image data in the photo album application is obtained, the terminal device can display pages of one or more dates including the current date. At this time, the user can find the above-mentioned date to be searched in the calendar application, and then click on the date, as shown in Figure 4, the user clicks on September 3, 2017 in the calendar application, at this time, the terminal device can detect To the selection operation of the predetermined date in the calendar application (that is, the above-mentioned date to be searched). At this time, the calendar application may generate an image acquisition instruction, and the image acquisition instruction may include a predetermined date. The calendar application can send the image acquisition instruction to the photo album application through the above program interface, and the photo album application can extract the scheduled date from the image acquisition instruction, and find the shooting date and/or storage date in the photo album application as the scheduled date and the date after the scheduled date date of the first image data, for example, the predetermined date is September 3, 2017, then the photo album application can find the image data whose storage date and/or shooting date is September 3, 2017 from the currently stored image data as the first image data. - image data.

需要说明的是,上述获取的第一图像数据是在该预定日期以及该预定日期之后的日期存储的图像数据,在实际应用中第一图像数据还可以是在该预定日期存储的图像数据,具体处理可以参见上述实施例一中的相关内容,在此不再赘述。It should be noted that the first image data obtained above is the image data stored on the predetermined date and the date after the predetermined date. In practical applications, the first image data can also be the image data stored on the predetermined date. Specifically For processing, reference may be made to relevant content in the first embodiment above, and details are not repeated here.

在步骤S308中,将获取的第一图像数据作为与上述预定日期相匹配的目标图像数据。In step S308, the acquired first image data is used as target image data matching the predetermined date.

在步骤S310中,根据目标图像数据的存储日期,以带有时间戳的线性显示方式,依次显示目标图像数据;或者,根据目标图像数据的存储日期,在预定的显示区域内依次显示目标图像数据。In step S310, according to the storage date of the target image data, the target image data is sequentially displayed in a linear display manner with a time stamp; or, according to the storage date of the target image data, the target image data is sequentially displayed in a predetermined display area .

其中,带有时间戳的线性显示方式可以是带有存储或拍摄日期的图像根据存储或拍摄日期的先后顺序依次线性排列显示的方式,其中的线性排列可以是横向排列,也可以是纵向排列,还可以以其它方向排列等。Among them, the linear display method with time stamps can be a method in which images with storage or shooting dates are arranged and displayed linearly according to the order of storage or shooting dates, and the linear arrangement can be horizontal or vertical. Arrangements in other directions and the like are also possible.

在实施中,为了让用户能够更加直观的了解预定日期的目标图像数据,以及预定日期之后的日期的目标图像数据,可以根据目标图像数据的存储日期或拍摄日期的先后顺序,对相应的目标图像数据进行依次线性排列显示,如图2所示,这样,不仅可以方便用户了解目标图像数据的存储日期或拍摄日期,还可以方便用户及时管理某日期内的目标图像数据。In implementation, in order to allow users to more intuitively understand the target image data of the scheduled date and the target image data of the date after the scheduled date, the corresponding target image The data is displayed linearly in sequence, as shown in Figure 2. In this way, it is not only convenient for the user to know the storage date or shooting date of the target image data, but also convenient for the user to manage the target image data within a certain date in time.

另外,如果目标图像数据数量较多,通过带有时间戳的线性显示方式显示目标图像数据时,需要占用终端设备中较多的页面位置,因此,如果用户仅仅是为了查看在该预定日期以及该预定日期之后的日期存储的目标图像数据,还可以将终端设备的显示界面均匀划分成多个方形或矩形格子,可以在每个方形或矩形格子中放置一个目标图像数据对应的图像,具体地,根据目标图像数据的存储日期或拍摄日期,在由多个方形或矩形格子构成的显示区域内依次显示目标图像数据,如图5所示,终端设备在由多个方形或矩形格子构成的显示区域内显示了2017年9月7日存储或拍摄的多张图像。这样,可以更加方便用户了解在预定日期以及该预定日期之后的日期存储的目标图像数据。In addition, if there is a large amount of target image data, when the target image data is displayed in a linear display manner with a time stamp, it needs to occupy more page positions in the terminal device. Therefore, if the user only wants to view the For the target image data stored on a date after the predetermined date, the display interface of the terminal device can be evenly divided into a plurality of square or rectangular grids, and an image corresponding to the target image data can be placed in each square or rectangular grid. Specifically, According to the storage date or shooting date of the target image data, the target image data is sequentially displayed in the display area composed of multiple square or rectangular grids. Multiple images stored or captured on September 7, 2017 are shown. In this way, it is more convenient for the user to know the target image data stored on the predetermined date and the date after the predetermined date.

对于已显示的目标图像数据,用户还可以对其进行管理,如删除目标图像数据、修改目标图像数据或美化目标图像数据等,具体可以参见下述步骤S312和步骤S314。For the displayed target image data, the user can also manage it, such as deleting the target image data, modifying the target image data or beautifying the target image data, etc. For details, please refer to the following steps S312 and S314.

在步骤S312中,当检测到对目标图像数据的管理操作时,根据该管理操作对目标图像数据进行处理,其中,该管理操作包括删除操作、编辑操作和美化操作中的一种或多种。In step S312, when a management operation on the target image data is detected, the target image data is processed according to the management operation, wherein the management operation includes one or more of deletion, editing and beautification.

在实施中,终端设备通过上述处理过程实现了通过日历应用获取相册应用中的相应目标图像数据,并显示获取的目标图像数据的处理,在终端设备显示了目标图像数据后,用户可以通过滑动屏幕浏览目标图像数据,这样,用户可以从中查找到用户真正需要的图像数据。此外,用户可以对目标图像数据进行管理,例如,用户可以长按或点击某一个目标图像数据对应的图像,终端设备可以弹出菜单项,该菜单项中可以包括如删除、编辑和美化等选项,如果用户选择删除选项,则终端设备可以删除该目标图像数据;如果用户选择编辑选项,则终端设备可以获取预先设置的编辑图像所需要的编辑工具,可以将目标图像数据输入到该编辑工具中,此时,用户可以通过该编辑工具对该目标图像数据进行编辑,编辑完成后,可以保存编辑后的目标图像数据;如果用户选择美化选项,则终端设备可以获取预先设置的美化图像所需要的图像美化工具,可以将目标图像数据输入到该图像美化工具中,此时,用户可以通过该图像美化工具对该目标图像数据进行处理,处理完成后,可以保存美化后的目标图像数据。In the implementation, the terminal device realizes the process of obtaining the corresponding target image data in the photo album application through the calendar application through the above processing process, and displays the acquired target image data. After the terminal device displays the target image data, the user can slide the screen Browse the target image data, so that the user can find the image data that the user really needs. In addition, the user can manage the target image data. For example, the user can long press or click on an image corresponding to a certain target image data, and the terminal device can pop up a menu item, which can include options such as deletion, editing, and beautification. If the user selects the delete option, the terminal device can delete the target image data; if the user selects the edit option, the terminal device can obtain the preset editing tool required for editing the image, and can input the target image data into the editing tool, At this time, the user can edit the target image data through the editing tool, and after the editing is completed, the edited target image data can be saved; if the user selects the beautification option, the terminal device can obtain the image required for the pre-set beautification image The beautification tool can input the target image data into the image beautification tool. At this time, the user can process the target image data through the image beautification tool, and after the processing is completed, the beautified target image data can be saved.

需要说明的是,管理操作除了可以包括删除操作、编辑操作和美化操作外,还可以包括其他任何可以对图像进行处理的操作。It should be noted that, in addition to deleting operations, editing operations and beautifying operations, the management operations may also include any other operations that can process images.

在步骤S314中,将处理后的目标图像数据存储到上述相册应用对应的存储区域中。In step S314, the processed target image data is stored in the storage area corresponding to the above-mentioned photo album application.

在实施中,由于通过上述步骤S312的处理,已将目标图像数据进行了如删除、编辑或美化等操作,为了保证终端设备中存储的图像数据或相册应用中的图像数据的一致性,对于处理后的目标图像数据可以执行回写数据库的操作,即将处理后的目标图像数据存储到上述相册应用对应的存储区域中,这样,可以使得用户删除、编辑或美化的目标图像数据及时对相册应用中的相应图像数据进行更新,保证数据的一致性。In practice, since the target image data has been deleted, edited, or beautified through the processing of the above step S312, in order to ensure the consistency of the image data stored in the terminal device or the image data in the album application, the processing The processed target image data can be written back to the database, that is, the processed target image data will be stored in the storage area corresponding to the above-mentioned photo album application. In this way, the target image data deleted, edited or beautified by the user can be updated in the photo album application in time. The corresponding image data is updated to ensure data consistency.

本申请实施例提供一种图像数据的获取方法,在检测到用户对日历应用中的预定日期的选择操作时,获取与该预定日期相匹配的目标图像数据,然后,显示获取的目标图像数据,这样,在用户打开日历应用的时候,通过日历应用提供的年份或月份等日期直接获取与该日期的时间戳对应的图像数据,并显示给用户,便于用户后续对目标图像数据的查看、修改等操作,从而使得图像数据的获取或查找过程不需要通过从所有图像数据中逐一查找的方式实现,从而提高了图像查找效率,而且也提高了日历应用对用户的亲和力和粘性,提升用户体验。An embodiment of the present application provides an image data acquisition method. When a user's selection operation on a predetermined date in a calendar application is detected, target image data matching the predetermined date is obtained, and then the acquired target image data is displayed. In this way, when the user opens the calendar application, the image data corresponding to the time stamp of the date is directly obtained through the date provided by the calendar application such as the year or month, and displayed to the user, so that the user can view and modify the target image data later. Operation, so that the acquisition or search process of image data does not need to be realized by searching all image data one by one, thereby improving the efficiency of image search, and also improving the affinity and stickiness of the calendar application to users, and improving user experience.

此外,通过将日历应用与相册应用相结合,可以赋予日历应用除时间之外的属性,且获取的图像数据以时间线连接、管理、编辑,并且通过日历应用中的日期,可以快速找到该日期对应的图像数据,并且可以对某时间段的图像进行处理和视频制作,不仅提高了图像查找效率,还增加了日历应用的趣味性,提升用户体验。In addition, by combining the calendar application with the photo album application, the calendar application can be given attributes other than time, and the acquired image data can be connected, managed, and edited with a timeline, and the date can be quickly found through the date in the calendar application The corresponding image data can be processed and video produced for a certain period of time, which not only improves the efficiency of image search, but also increases the interest of the calendar application and improves the user experience.

实施例三Embodiment Three

如图6所示,本申请实施例提供一种图像数据的获取方法,该方法的执行主体可以为终端设备,该终端设备可以如个人计算机等设备,也可以如手机、平板电脑等移动终端设备,该终端设备可以为用户使用的终端设备。该方法可以用于通过日历应用获取并查看相关图像数据等处理中。该方法具体可以包括以下步骤:As shown in Figure 6, the embodiment of the present application provides a method for acquiring image data. The execution body of the method may be a terminal device, and the terminal device may be a personal computer or other mobile terminal device such as a mobile phone or a tablet computer. , the terminal device may be a terminal device used by a user. This method can be used in processes such as obtaining and viewing related image data through a calendar application. The method specifically may include the following steps:

在步骤S602中,当检测到日历应用启动时,显示是否允许获取相册应用中的图像数据的权限的选择框,该选择框中包括允许选项和拒绝选项。In step S602, when it is detected that the calendar application is started, a selection box is displayed whether to allow permission to obtain image data in the photo album application, and the selection box includes an allow option and a deny option.

上述步骤S602的步骤内容与上述实施例二中步骤S302的步骤内容相同,步骤S602的具体处理过程可以参见步骤S302,以及上述实施例一中步骤S102的相关内容,在此不再赘述。The content of the above step S602 is the same as that of the step S302 in the above embodiment 2. For the specific processing process of the step S602, please refer to the step S302 and the related content of the step S102 in the above embodiment 1, which will not be repeated here.

在步骤S604中,当检测到对上述选择框中允许选项的选择操作时,确定上述日历应用具有获取相册应用中的图像数据的权限。In step S604, when a selection operation on the allowable option in the selection box is detected, it is determined that the calendar application has permission to acquire image data in the photo album application.

上述步骤S604的步骤内容与上述实施例二中步骤S304的步骤内容相同,步骤S604的具体处理过程可以参见步骤S304,以及上述实施例一中步骤S102的相关内容的相关内容,在此不再赘述。The step content of the above step S604 is the same as the step content of the step S304 in the above embodiment 2. For the specific processing process of the step S604, please refer to the relevant content of the step S304 and the relevant content of the step S102 in the above embodiment 1, and will not repeat them here. .

基于上述实施例二中的相关内容,预定日期可以包括多种情况,上述本实施例二中以预定日期为单一日期为例进行详细说明,本实施例中以预定日期中包括多个日期为例进行详细说明,具体可以参见下述步骤S606~步骤S620。Based on the relevant content in the above-mentioned second embodiment, the scheduled date can include various situations. In the above-mentioned second embodiment, the scheduled date is taken as an example to describe in detail. In this embodiment, the scheduled date includes multiple dates as an example. For details, refer to the following steps S606 to S620 for details.

在步骤S606中,当检测到对日历应用中的预定日期的选择操作时,获取该预定日期中的最早日期和最晚日期。In step S606, when a selection operation on a scheduled date in the calendar application is detected, the earliest date and the latest date in the scheduled date are acquired.

其中,最早日期可以为多个日期中时间最早的日期,最晚日期可以为多个日期中时间最晚的日期。Wherein, the earliest date may be the earliest date among the multiple dates, and the latest date may be the latest date among the multiple dates.

在实施中,如果终端设备检测到用户在预定的时间间隔内对日历应用中的两个以上的多个日期进行了选择操作,则可以对多个日期根据日期的先后顺序进行排序,排序完成后,可以提取排列在最前端的日期和排列在最后端的日期,可以基于上述两个信息确定预定日期中的最早日期和最晚日期,例如,用户依次点击了日历应用中的2017年8月8日、2017年8月30日、2017年8月18日和2017年9月8日,则终端设备可以将上述日期进行排序,即得到2017年8月8日-2017年8月18日-2017年8月30日-2017年9月8日,因此,排列在最前端的日期为2017年8月8日,排列在最后端的日期为2017年9月8日,相应的,最早日期为2017年8月8日,最晚日期为2017年9月8日。In implementation, if the terminal device detects that the user has selected two or more dates in the calendar application within a predetermined time interval, the multiple dates can be sorted according to the order of the dates. After the sorting is completed , you can extract the date at the top and the date at the bottom, and you can determine the earliest date and the latest date among the scheduled dates based on the above two information, for example, the user clicked on August 8, 2017 in the calendar application , August 30, 2017, August 18, 2017, and September 8, 2017, the terminal device can sort the above dates, that is, August 8, 2017-August 18, 2017-2017 August 30-September 8, 2017. Therefore, the date at the front is August 8, 2017, and the date at the bottom is September 8, 2017. Correspondingly, the earliest date is August 2017 September 8, the latest date is September 8, 2017.

需要说明的是,如果用户在预定的时间间隔内对日历应用中的两个日期进行了选择操作,则终端设备可以直接从相册应用中的图像数据中,获取两个日期之间的日期存储的第三图像数据,可以将获取的第三图像数据作为与所述预定日期相匹配的目标图像数据,具体处理过程可以参见下述步骤S608和步骤S610。此外,在实际应用中,终端设备也可以比较上述两个日期的先后顺序,从而确定最早日期和最晚日期,例如,如图7所示,用户点击了日历应用中的2017年8月28日和2017年9月8日,则最早日期为2017年8月28日,最晚日期为2017年9月8日。It should be noted that if the user selects two dates in the calendar application within a predetermined time interval, the terminal device can directly obtain the date stored between the two dates from the image data in the photo album application. For the third image data, the acquired third image data may be used as the target image data matching the predetermined date, and the specific processing process may refer to the following step S608 and step S610. In addition, in practical applications, the terminal device can also compare the order of the above two dates to determine the earliest date and the latest date. For example, as shown in Figure 7, the user clicks on August 28, 2017 in the calendar application and September 8, 2017, the earliest date is August 28, 2017, and the latest date is September 8, 2017.

在步骤S608中,从相册应用中的图像数据中,获取从最早日期到最晚日期之间的日期存储的第二图像数据。In step S608, from the image data in the photo album application, the second image data stored from the earliest date to the latest date is obtained.

在实施中,通过上述步骤S606的处理,可以确定用户选择的预定日期中的最早日期和最晚日期,然后,日历应用可以生成图像获取指令,该图像获取指令中可以包括最早日期和最晚日期。日历应用可以将图像获取指令通过上述程序接口发送给相册应用,相册应用可以从图像获取指令中提取最早日期和最晚日期,并在相册应用中查找从最早日期到最晚日期之间的日期存储或拍摄的第二图像数据,例如,基于上述步骤S606的示例,如图7所示,最早日期为2017年8月28日,最晚日期为2017年9月8日,则相册应用可以从当前存储的图像数据中查找从2017年8月28日到2017年9月8日之间的日期存储的图像数据作为第二图像数据。In implementation, through the processing of the above step S606, the earliest date and the latest date among the scheduled dates selected by the user can be determined, and then, the calendar application can generate an image acquisition instruction, and the image acquisition instruction can include the earliest date and the latest date . The calendar application can send the image acquisition instruction to the photo album application through the above program interface, and the photo album application can extract the earliest date and the latest date from the image acquisition instruction, and find the date storage between the earliest date and the latest date in the photo album application Or the second image data taken, for example, based on the example of the above step S606, as shown in Figure 7, the earliest date is August 28, 2017, and the latest date is September 8, 2017, then the photo album application can start from the current The stored image data is searched for image data stored on a date between August 28, 2017 and September 8, 2017 as the second image data.

在步骤S610中,将获取的第二图像数据作为与预定日期相匹配的目标图像数据。In step S610, the acquired second image data is used as the target image data matching the predetermined date.

在步骤S612中,根据目标图像数据的存储日期,以带有时间戳的线性显示方式,依次显示目标图像数据;或者,根据目标图像数据的存储日期,在预定的显示区域内依次显示目标图像数据。In step S612, according to the storage date of the target image data, the target image data is sequentially displayed in a linear display manner with a time stamp; or, according to the storage date of the target image data, the target image data is sequentially displayed in a predetermined display area .

上述步骤S612的步骤内容与上述实施例二中步骤S310的步骤内容相同,步骤S612的具体处理过程可以参见步骤S310的相关内容的相关内容,在此不再赘述。The content of the above step S612 is the same as the content of the step S310 in the above second embodiment. For the specific processing process of the step S612, please refer to the related content of the relevant content of the step S310, and will not be repeated here.

此外,增强图像的处理以及用户回忆的趣味性,可以以时间节点为基准截取从最早日期到最晚日期之间的日期的图像资源,整理成视频播放数据,相应的处理可以参见下述步骤S614和步骤S616。In addition, to enhance the processing of images and the fun of user memories, the image resources of dates from the earliest date to the latest date can be intercepted based on the time node, and organized into video playback data. The corresponding processing can refer to the following step S614 and step S616.

在步骤S614中,当检测到对上述第二图像数据的查看操作时,根据第二图像数据,利用预先设定的图像播放规则生成视频播放数据。In step S614, when a viewing operation on the above-mentioned second image data is detected, video playback data is generated by using a preset image playback rule according to the second image data.

其中,查看操作可以通过多种方式实现,例如点击或按压等。图像播放规则可以根据实际情况设定,具体可以包括如相邻两个图像的衔接关系、每一张图像的展现方式和每一张图像的显示时长等。Wherein, the viewing operation may be implemented in various ways, such as clicking or pressing. The image playback rules can be set according to the actual situation, and can specifically include, for example, the cohesive relationship between two adjacent images, the presentation method of each image, and the display duration of each image, etc.

在实施中,可以预先定义视频处理的多个板块,如标题、文字、音乐、动画、显示时长、滤镜、对焦、位置等。可以通过预先定义的多个板块生成一个或多个可预编辑模板,可以将该可预编辑模板发送给用户,用户可以对可预编辑模板中的上述板块进行自定义编辑,最终生成图像播放规则或视频生成模板。在终端设备通过上述步骤S612的处理显示目标图像数据后,如果终端设备检测到用户点击第二图像数据(如从2017年8月8日到2017年9月8日之间的日期存储的任一图像的数据),则终端设备可以确定用户需要浏览第二图像数据,此时,终端设备可以获取图像播放规则或视频生成模板,可以将第二图像数据利用图像播放规则或视频生成模板生成相应的视频播放数据。其中,视频播放数据的视频格式可以根据实际情况设定,具体如.MP4格式或.WMV格式等。In implementation, multiple sections of video processing can be pre-defined, such as title, text, music, animation, display duration, filter, focus, position, etc. One or more pre-editable templates can be generated through multiple predefined sections, and the pre-editable template can be sent to the user, and the user can customize and edit the above-mentioned sections in the pre-editable template, and finally generate image playback rules or video generation templates. After the terminal device displays the target image data through the processing of the above step S612, if the terminal device detects that the user clicks on the second image data (such as any one stored on the date between August 8, 2017 and September 8, 2017 image data), the terminal device can determine that the user needs to browse the second image data, at this time, the terminal device can obtain the image playback rule or video generation template, and can use the image playback rule or video generation template to generate the corresponding second image data Video playback data. Wherein, the video format of the video playing data can be set according to the actual situation, such as .MP4 format or .WMV format, etc. specifically.

在步骤S616中,播放上述视频播放数据。In step S616, the above video playing data is played.

此外,当播放完毕上述视频播放数据后,终端设备可以弹出提示框,以提示用户是否保存该视频播放数据,如果用户点击该提示框中的保存按键时,终端设备可以将该视频播放数据存储待相册应用对应的存储区域中,如果用户点击该提示框中的取消按键时,终端设备可以返回目标图像数据的显示界面。基于上述内容,用户通过将获取的目标图像数据编辑成相应的视频播放数据,增强了日历应用的趣味性和用户粘性。In addition, after the above-mentioned video playback data is played, the terminal device can pop up a prompt box to prompt the user whether to save the video playback data, and if the user clicks the save button in the prompt box, the terminal device can store the video playback data for later In the storage area corresponding to the photo album application, if the user clicks the cancel button in the prompt box, the terminal device may return to the display interface of the target image data. Based on the above content, the user can enhance the fun and user stickiness of the calendar application by editing the acquired target image data into corresponding video playback data.

需要说明的是,针对上述预定日期中包括两个日期的情况,上述步骤S614和步骤S616的处理可以分别变为:当检测到对上述第三图像数据的查看操作时,根据第三图像数据,利用预先设定的图像播放规则生成视频播放数据;播放该视频播放数据,其具体处理过程可以参考上述步骤S614和步骤S616,在此不再赘述。It should be noted that, for the case where two dates are included in the above-mentioned predetermined date, the processing of the above-mentioned step S614 and step S616 can be respectively changed to: when a viewing operation on the above-mentioned third image data is detected, according to the third image data, The video playback data is generated by using the preset image playback rules; the specific process of playing the video playback data can refer to the above step S614 and step S616, which will not be repeated here.

在步骤S618中,当检测到对上述目标图像数据的管理操作时,根据该管理操作对目标图像数据进行处理,其中,该管理操作包括删除操作、编辑操作和美化操作中的一种或多种。In step S618, when a management operation on the target image data is detected, the target image data is processed according to the management operation, wherein the management operation includes one or more of deletion, editing and beautification .

上述步骤S618的步骤内容与上述实施例二中步骤S312的步骤内容相同,步骤S618的具体处理过程可以参见步骤S312的相关内容的相关内容,在此不再赘述。The step content of the above step S618 is the same as the step content of the step S312 in the second embodiment above. For the specific processing process of the step S618, please refer to the relevant content of the relevant content of the step S312, which will not be repeated here.

在步骤S620中,将处理后的目标图像数据存储到相册应用对应的存储区域中。In step S620, the processed target image data is stored in a storage area corresponding to the photo album application.

上述步骤S620的步骤内容与上述实施例二中步骤S314的步骤内容相同,步骤S620的具体处理过程可以参见步骤S314的相关内容的相关内容,在此不再赘述。The content of the above step S620 is the same as the content of the step S314 in the second embodiment above. For the specific processing process of the step S620, please refer to the relevant content of the relevant content of the step S314, which will not be repeated here.

本申请实施例提供一种图像数据的获取方法,在检测到用户对日历应用中的预定日期的选择操作时,获取与该预定日期相匹配的目标图像数据,然后,显示获取的目标图像数据,这样,在用户打开日历应用的时候,通过日历应用提供的年份或月份等日期直接获取与该日期的时间戳对应的图像数据,并显示给用户,便于用户后续对目标图像数据的查看、修改等操作,从而使得图像数据的获取或查找过程不需要通过从所有图像数据中逐一查找的方式实现,从而提高了图像查找效率,而且也提高了日历应用对用户的亲和力和粘性,提升用户体验。An embodiment of the present application provides an image data acquisition method. When a user's selection operation on a predetermined date in a calendar application is detected, target image data matching the predetermined date is obtained, and then the acquired target image data is displayed. In this way, when the user opens the calendar application, the image data corresponding to the time stamp of the date is directly obtained through the date provided by the calendar application such as the year or month, and displayed to the user, so that the user can view and modify the target image data later. Operation, so that the acquisition or search process of image data does not need to be realized by searching all image data one by one, thereby improving the efficiency of image search, and also improving the affinity and stickiness of the calendar application to users, and improving user experience.

此外,通过将日历应用与相册应用相结合,可以赋予日历应用除时间之外的属性,且获取的图像数据以时间线连接、管理、编辑,并且通过日历应用中的日期,可以快速找到该日期对应的图像数据,并且可以对某时间段的图像进行处理和视频制作,不仅提高了图像查找效率,还增加了日历应用的趣味性,提升用户体验。In addition, by combining the calendar application with the photo album application, the calendar application can be given attributes other than time, and the acquired image data can be connected, managed, and edited with a timeline, and the date can be quickly found through the date in the calendar application The corresponding image data can be processed and video produced for a certain period of time, which not only improves the efficiency of image search, but also increases the interest of the calendar application and improves the user experience.

实施例四Embodiment four

以上为本申请实施例提供的图像数据的获取方法,基于同样的思路,本申请实施例还提供一种图像数据的获取装置,如图8所示。The above is the image data acquisition method provided by the embodiment of the present application. Based on the same idea, the embodiment of the present application also provides an image data acquisition device, as shown in FIG. 8 .

所述图像数据的获取装置包括:图像数据获取模块801和图像数据显示模块802,其中:The acquisition device of the image data includes: an image data acquisition module 801 and an image data display module 802, wherein:

图像数据获取模块801,用于当检测到对日历应用中的预定日期的选择操作时,获取与所述预定日期相匹配的目标图像数据;An image data acquiring module 801, configured to acquire target image data matching the scheduled date when a selection operation on the scheduled date in the calendar application is detected;

图像数据显示模块802,用于显示所述目标图像数据。The image data display module 802 is configured to display the target image data.

本申请实施例中,所述图像数据显示模块802,用于根据所述目标图像数据的存储日期,以带有时间戳的线性显示方式,依次显示所述目标图像数据;或者,根据所述目标图像数据的存储日期,在预定的显示区域内依次显示所述目标图像数据。In the embodiment of the present application, the image data display module 802 is configured to sequentially display the target image data in a linear display manner with a time stamp according to the storage date of the target image data; or, according to the target image data The storage date of the image data, and sequentially display the target image data in a predetermined display area.

本申请实施例中,所述装置还包括:In the embodiment of the present application, the device further includes:

选择框显示模块,用于当检测到所述日历应用启动时,显示是否允许获取相册应用中的图像数据的权限的选择框,所述选择框中包括允许选项和拒绝选项;The selection box display module is used to display a selection box whether to allow the permission to obtain the image data in the photo album application when it is detected that the calendar application is started, and the selection box includes a permission option and a rejection option;

权限确定模块,用于当检测到对所述选择框中允许选项的选择操作时,确定所述日历应用具有获取相册应用中的图像数据的权限。The authority determination module is configured to determine that the calendar application has the authority to obtain the image data in the photo album application when a selection operation on the allowed option in the selection box is detected.

本申请实施例中,所示预定日期为单一日期,In the embodiment of this application, the predetermined date shown is a single date,

所述图像数据获取模块801,包括:The image data acquisition module 801 includes:

第一图像获取单元,用于从所述相册应用中的图像数据中,获取在所述预定日期以及所述预定日期之后的日期存储的第一图像数据;A first image acquisition unit, configured to acquire first image data stored on the predetermined date and a date after the predetermined date from the image data in the photo album application;

目标图像确定单元,用于将获取的第一图像数据作为与所述预定日期相匹配的目标图像数据。A target image determining unit, configured to use the acquired first image data as target image data matching the predetermined date.

本申请实施例中,所述预定日期中包括两个以上的日期,则所述图像数据获取模块801,包括:In the embodiment of the present application, if the predetermined date includes more than two dates, the image data acquisition module 801 includes:

日期获取单元,用于获取所述预定日期中的最早日期和最晚日期;a date obtaining unit, configured to obtain the earliest date and the latest date among the predetermined dates;

第二图像获取单元,用于从所述相册应用中的图像数据中,获取从所述最早日期到所述最晚日期之间的日期存储的第二图像数据;A second image acquiring unit, configured to acquire, from the image data in the photo album application, second image data stored on dates between the earliest date and the latest date;

第一目标图像确定单元,用于将获取的第二图像数据作为与所述预定日期相匹配的目标图像数据;或者,The first target image determining unit is configured to use the acquired second image data as the target image data matching the predetermined date; or,

所述预定日期中包括两个日期,则所述图像数据获取模块,包括:If two dates are included in the predetermined date, then the image data acquisition module includes:

第三图像获取单元,用于从所述相册应用中的图像数据中,获取两个日期之间的日期存储的第三图像数据;A third image acquisition unit, configured to acquire third image data stored on a date between two dates from the image data in the photo album application;

第二目标图像确定单元,用于将获取的第三图像数据作为与所述预定日期相匹配的目标图像数据。The second target image determining unit is configured to use the acquired third image data as the target image data matching the predetermined date.

本申请实施例中,所述装置还包括:In the embodiment of the present application, the device further includes:

第一视频生成模块,用于当检测到对所述第二图像数据的查看操作时,根据所述第二图像数据,利用预先设定的图像播放规则生成视频播放数据;The first video generation module is used to generate video playback data using preset image playback rules according to the second image data when a viewing operation on the second image data is detected;

第一播放模块,用于播放所述视频播放数据;The first playback module is used to play the video playback data;

或者,or,

第二视频生成模块,用于当检测到对所述第三图像数据的查看操作时,根据所述第三图像数据,利用预先设定的图像播放规则生成视频播放数据;The second video generation module is used to generate video playback data according to the third image data using preset image playback rules when a viewing operation on the third image data is detected;

第二播放模块,用于播放所述视频播放数据。The second playing module is used to play the video playing data.

本申请实施例中,所述装置还包括:In the embodiment of the present application, the device further includes:

图像处理模块,用于当检测到对所述目标图像数据的管理操作时,根据所述管理操作对所述目标图像数据进行处理,其中,所述管理操作包括删除操作、编辑操作和美化操作中的一种或多种;An image processing module, configured to process the target image data according to the management operation when a management operation on the target image data is detected, wherein the management operation includes a deletion operation, an editing operation, and a beautification operation one or more of

存储模块,用于将处理后的目标图像数据存储到所述相册应用对应的存储区域中。A storage module, configured to store the processed target image data in a storage area corresponding to the photo album application.

本申请实施例提供的图像数据的获取装置能够实现图1至图7的方法实施例中终端设备实现的各个过程,为避免重复,这里不再赘述。The image data acquisition apparatus provided in the embodiment of the present application can implement various processes implemented by the terminal device in the method embodiments in FIG. 1 to FIG. 7 , and details are not repeated here to avoid repetition.

本申请实施例提供一种图像数据的获取装置,在检测到用户对日历应用中的预定日期的选择操作时,获取与该预定日期相匹配的目标图像数据,然后,显示获取的目标图像数据,这样,在用户打开日历应用的时候,通过日历应用提供的年份或月份等日期直接获取与该日期的时间戳对应的图像数据,并显示给用户,便于用户后续对目标图像数据的查看、修改等操作,从而使得图像数据的获取或查找过程不需要通过从所有图像数据中逐一查找的方式实现,从而提高了图像查找效率,而且也提高了日历应用对用户的亲和力和粘性,提升用户体验。An embodiment of the present application provides an image data acquisition device, which acquires target image data matching the scheduled date when a user's selection operation on a scheduled date in a calendar application is detected, and then displays the acquired target image data, In this way, when the user opens the calendar application, the image data corresponding to the time stamp of the date is directly obtained through the date provided by the calendar application such as the year or month, and displayed to the user, so that the user can view and modify the target image data later. Operation, so that the acquisition or search process of image data does not need to be realized by searching all image data one by one, thereby improving the efficiency of image search, and also improving the affinity and stickiness of the calendar application to users, and improving user experience.

此外,通过将日历应用与相册应用相结合,可以赋予日历应用除时间之外的属性,且获取的图像数据以时间线连接、管理、编辑,并且通过日历应用中的日期,可以快速找到该日期对应的图像数据,并且可以对某时间段的图像进行处理和视频制作,不仅提高了图像查找效率,还增加了日历应用的趣味性,提升用户体验。In addition, by combining the calendar application with the photo album application, the calendar application can be given attributes other than time, and the acquired image data can be connected, managed, and edited with a timeline, and the date can be quickly found through the date in the calendar application The corresponding image data can be processed and video produced for a certain period of time, which not only improves the efficiency of image search, but also increases the interest of the calendar application and improves the user experience.

实施例五Embodiment five

图9为实现本发明各个实施例的一种移动终端的硬件结构示意图,FIG. 9 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention,

该移动终端900包括但不限于:射频单元901、网络模块902、音频输出单元903、输入单元904、传感器905、显示单元906、用户输入单元907、接口单元908、存储器909、处理器910、以及电源911等部件。本领域技术人员可以理解,图9中示出的移动终端结构并不构成对移动终端的限定,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,移动终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。The mobile terminal 900 includes, but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, a processor 910, and Power supply 911 and other components. Those skilled in the art can understand that the structure of the mobile terminal shown in Figure 9 does not constitute a limitation on the mobile terminal, and the mobile terminal may include more or less components than shown in the figure, or combine some components, or different components layout. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted terminal, a wearable device, and a pedometer.

其中,处理器910,用于当检测到对日历应用中的预定日期的选择操作时,获取与所述预定日期相匹配的目标图像数据;Wherein, the processor 910 is configured to acquire target image data matching the predetermined date when a selection operation on the predetermined date in the calendar application is detected;

图像数据显示模块,用于显示所述目标图像数据。The image data display module is used to display the target image data.

显示单元906,用于根据所述目标图像数据的存储日期,以带有时间戳的线性显示方式,依次显示所述目标图像数据;或者,根据所述目标图像数据的存储日期,在预定的显示区域内依次显示所述目标图像数据。The display unit 906 is configured to sequentially display the target image data in a linear display manner with a time stamp according to the storage date of the target image data; or, according to the storage date of the target image data, in a predetermined display The target image data is sequentially displayed in the area.

此外,显示单元906,还用于当检测到所述日历应用启动时,显示是否允许获取相册应用中的图像数据的权限的选择框,所述选择框中包括允许选项和拒绝选项;In addition, the display unit 906 is further configured to, when it is detected that the calendar application is started, display a selection box of whether to allow permission to obtain image data in the photo album application, and the selection box includes an allow option and a deny option;

处理器910,还用于当检测到对所述选择框中允许选项的选择操作时,确定所述日历应用具有获取相册应用中的图像数据的权限。The processor 910 is further configured to determine that the calendar application has permission to acquire image data in the photo album application when a selection operation on the allowed option in the selection box is detected.

另外,所示预定日期为单一日期,Also, scheduled dates shown are single dates,

处理器910,还用于从所述相册应用中的图像数据中,获取在所述预定日期以及所述预定日期之后的日期存储的第一图像数据;将获取的第一图像数据作为与所述预定日期相匹配的目标图像数据。The processor 910 is further configured to obtain, from the image data in the photo album application, first image data stored on the predetermined date and a date after the predetermined date; and use the obtained first image data as the Target image data that matches the scheduled date.

此外,所述预定日期中包括两个以上的日期,则处理器910,还用于获取所述预定日期中的最早日期和最晚日期;从所述相册应用中的图像数据中,获取从所述最早日期到所述最晚日期之间的日期存储的第二图像数据;将获取的第二图像数据作为与所述预定日期相匹配的目标图像数据;或者,In addition, if the predetermined date includes more than two dates, the processor 910 is further configured to obtain the earliest date and the latest date in the predetermined date; from the image data in the photo album application, obtain the The second image data stored on the date between the earliest date and the latest date; using the acquired second image data as the target image data matching the predetermined date; or,

所述预定日期中包括两个日期,则处理器910,还用于从所述相册应用中的图像数据中,获取两个日期之间的日期存储的第三图像数据;将获取的第三图像数据作为与所述预定日期相匹配的目标图像数据。If the predetermined date includes two dates, the processor 910 is further configured to acquire third image data stored on a date between the two dates from the image data in the photo album application; the acquired third image data as target image data matching the predetermined date.

另外,处理器910,还用于当检测到对所述第二图像数据的查看操作时,根据所述第二图像数据,利用预先设定的图像播放规则生成视频播放数据;播放所述视频播放数据;In addition, the processor 910 is further configured to, when a viewing operation on the second image data is detected, generate video playback data according to the second image data using preset image playback rules; and play the video playback data. data;

或者,or,

处理器910,还用于当检测到对所述第三图像数据的查看操作时,根据所述第三图像数据,利用预先设定的图像播放规则生成视频播放数据;播放所述视频播放数据。The processor 910 is further configured to, when a viewing operation on the third image data is detected, generate video playback data according to the third image data by using a preset image playback rule; and play the video playback data.

此外,处理器910,还用于当检测到对所述目标图像数据的管理操作时,根据所述管理操作对所述目标图像数据进行处理,其中,所述管理操作包括删除操作、编辑操作和美化操作中的一种或多种;In addition, the processor 910 is further configured to, when a management operation on the target image data is detected, process the target image data according to the management operation, wherein the management operation includes a deletion operation, an editing operation and One or more of the beautification operations;

存储器909,用于将处理后的目标图像数据存储到所述相册应用对应的存储区域中。The memory 909 is configured to store the processed target image data in a storage area corresponding to the photo album application.

本申请实施例提供一种移动终端,在检测到用户对日历应用中的预定日期的选择操作时,获取与该预定日期相匹配的目标图像数据,然后,显示获取的目标图像数据,这样,在用户打开日历应用的时候,通过日历应用提供的年份或月份等日期直接获取与该日期的时间戳对应的图像数据,并显示给用户,便于用户后续对目标图像数据的查看、修改等操作,从而使得图像数据的获取或查找过程不需要通过从所有图像数据中逐一查找的方式实现,从而提高了图像查找效率,而且也提高了日历应用对用户的亲和力和粘性,提升用户体验。An embodiment of the present application provides a mobile terminal that, when detecting a user's selection operation on a predetermined date in a calendar application, acquires target image data that matches the predetermined date, and then displays the acquired target image data. In this way, When the user opens the calendar application, the image data corresponding to the time stamp of the date is directly obtained through the date provided by the calendar application, such as the year or month, and displayed to the user, which is convenient for the user to view and modify the target image data in the subsequent operations, thereby The acquisition or search process of image data does not need to be realized by searching all image data one by one, thereby improving the image search efficiency, and also improving the affinity and stickiness of the calendar application to users, and improving user experience.

此外,通过将日历应用与相册应用相结合,可以赋予日历应用除时间之外的属性,且获取的图像数据以时间线连接、管理、编辑,并且通过日历应用中的日期,可以快速找到该日期对应的图像数据,并且可以对某时间段的图像进行处理和视频制作,不仅提高了图像查找效率,还增加了日历应用的趣味性,提升用户体验。In addition, by combining the calendar application with the photo album application, the calendar application can be given attributes other than time, and the acquired image data can be connected, managed, and edited with a timeline, and the date can be quickly found through the date in the calendar application The corresponding image data can be processed and video produced for a certain period of time, which not only improves the efficiency of image search, but also increases the interest of the calendar application and improves the user experience.

应理解的是,本申请实施例中,射频单元901可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器910处理;另外,将上行的数据发送给基站。通常,射频单元901包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元901还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present application, the radio frequency unit 901 can be used for receiving and sending signals during sending and receiving information or during a call. Specifically, the downlink data from the base station is received and processed by the processor 910; Uplink data is sent to the base station. Generally, the radio frequency unit 901 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 901 can also communicate with the network and other devices through a wireless communication system.

移动终端通过网络模块902为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The mobile terminal provides users with wireless broadband Internet access through the network module 902, such as helping users send and receive emails, browse web pages, and access streaming media.

音频输出单元903可以将射频单元901或网络模块902接收的或者在存储器909中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元903还可以提供与移动终端900执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元903包括扬声器、蜂鸣器以及受话器等。The audio output unit 903 may convert audio data received by the radio frequency unit 901 or the network module 902 or stored in the memory 909 into an audio signal and output as sound. Also, the audio output unit 903 can also provide audio output related to a specific function performed by the mobile terminal 900 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 903 includes a speaker, a buzzer, a receiver, and the like.

输入单元904用于接收音频或视频信号。输入单元904可以包括图形处理器(Graphics Processing Unit,GPU)9041和麦克风9042,图形处理器9041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元906上。经图形处理器9041处理后的图像帧可以存储在存储器909(或其它存储介质)中或者经由射频单元901或网络模块902进行发送。麦克风9042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元901发送到移动通信基站的格式输出。The input unit 904 is used to receive audio or video signals. The input unit 904 may include a graphics processing unit (Graphics Processing Unit, GPU) 9041 and a microphone 9042, and the graphics processing unit 9041 is used for still pictures or video images obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The data is processed. The processed image frames may be displayed on the display unit 906 . The image frames processed by the graphics processor 9041 may be stored in the memory 909 (or other storage medium) or sent via the radio frequency unit 901 or the network module 902 . The microphone 9042 can receive sound, and can process such sound as audio data. The processed audio data may be converted into a format transmittable to a mobile communication base station via the radio frequency unit 901 for output in the case of a phone call mode.

移动终端900还包括至少一种传感器905,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板9061的亮度,接近传感器可在移动终端900移动到耳边时,关闭显示面板9061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器905还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The mobile terminal 900 also includes at least one sensor 905, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 9061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 9061 and the / or backlighting. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is still, and can be used to identify the posture of mobile terminals (such as horizontal and vertical screen switching, related games, etc.) , magnetometer posture calibration), vibration recognition-related functions (such as pedometer, knocking), etc.; the sensor 905 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.

显示单元906用于显示由用户输入的信息或提供给用户的信息。显示单元906可包括显示面板9061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板9061。The display unit 906 is used to display information input by the user or information provided to the user. The display unit 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like.

用户输入单元907可用于接收输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元907包括触控面板9071以及其他输入设备9072。触控面板9071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板9071上或在触控面板9071附近的操作)。触控面板9071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器910,接收处理器910发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板9071。除了触控面板9071,用户输入单元907还可以包括其他输入设备9072。具体地,其他输入设备9072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 907 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile terminal. Specifically, the user input unit 907 includes a touch panel 9071 and other input devices 9072 . The touch panel 9071, also referred to as a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable object or accessory such as a finger, a stylus, etc. on the touch panel 9071 or near the touch panel 9071 operate). The touch panel 9071 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the For the processor 910, receive the command sent by the processor 910 and execute it. In addition, the touch panel 9071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 9071 , the user input unit 907 may also include other input devices 9072 . Specifically, other input devices 9072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.

进一步的,触控面板9071可覆盖在显示面板9061上,当触控面板9071检测到在其上或附近的触摸操作后,传送给处理器910以确定触摸事件的类型,随后处理器910根据触摸事件的类型在显示面板9061上提供相应的视觉输出。虽然在图9中,触控面板9071与显示面板9061是作为两个独立的部件来实现移动终端的输入和输出功能,但是在某些实施例中,可以将触控面板9071与显示面板9061集成而实现移动终端的输入和输出功能,具体此处不做限定。Furthermore, the touch panel 9071 can be covered on the display panel 9061. When the touch panel 9071 detects a touch operation on or near it, it will be sent to the processor 910 to determine the type of the touch event. The type of event provides a corresponding visual output on the display panel 9061. Although in FIG. 9, the touch panel 9071 and the display panel 9061 are used as two independent components to realize the input and output functions of the mobile terminal, in some embodiments, the touch panel 9071 and the display panel 9061 can be integrated. The implementation of the input and output functions of the mobile terminal is not specifically limited here.

接口单元908为外部装置与移动终端900连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元908可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端900内的一个或多个元件或者可以用于在移动终端900和外部装置之间传输数据。The interface unit 908 is an interface for connecting an external device to the mobile terminal 900 . For example, an external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface unit 908 can be used to receive input from an external device (for example, data information, power, etc.) transfer data between devices.

存储器909可用于存储软件程序以及各种数据。存储器909可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器909可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 909 can be used to store software programs as well as various data. The memory 909 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created by the use of mobile phones (such as audio data, phonebook, etc.), etc. In addition, the memory 909 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.

处理器910是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器909内的软件程序和/或模块,以及调用存储在存储器909内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。处理器910可包括一个或多个处理单元;优选的,处理器910可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器910中。The processor 910 is the control center of the mobile terminal, which uses various interfaces and lines to connect various parts of the entire mobile terminal, by running or executing software programs and/or modules stored in the memory 909, and calling data stored in the memory 909 , execute various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole. The processor 910 may include one or more processing units; preferably, the processor 910 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc., and the modem The processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 910 .

移动终端900还可以包括给各个部件供电的电源911(比如电池),优选的,电源911可以通过电源管理系统与处理器910逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile terminal 900 can also include a power supply 911 (such as a battery) for supplying power to various components. Preferably, the power supply 911 can be logically connected to the processor 910 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. and other functions.

优选的,本发明实施例还提供一种移动终端,包括处理器910,存储器909,存储在存储器909上并可在所述处理器910上运行的计算机程序,该计算机程序被处理器910执行时实现上述图像数据的获取方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, the embodiment of the present invention also provides a mobile terminal, including a processor 910, a memory 909, and a computer program stored in the memory 909 and operable on the processor 910, when the computer program is executed by the processor 910 Each process of the above embodiment of the method for acquiring image data can be realized, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.

实施例六Embodiment six

本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述图像数据的获取方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random AccessMemory,简称RAM)、磁碟或者光盘等。The embodiment of the present invention also provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above-mentioned image data acquisition method embodiment is realized, and the same To avoid repetition, the technical effects will not be repeated here. Wherein, the computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk or an optical disk, and the like.

本申请实施例提供一种计算机可读存储介质,在检测到用户对日历应用中的预定日期的选择操作时,获取与该预定日期相匹配的目标图像数据,然后,显示获取的目标图像数据,这样,在用户打开日历应用的时候,通过日历应用提供的年份或月份等日期直接获取与该日期的时间戳对应的图像数据,并显示给用户,便于用户后续对目标图像数据的查看、修改等操作,从而使得图像数据的获取或查找过程不需要通过从所有图像数据中逐一查找的方式实现,从而提高了图像查找效率,而且也提高了日历应用对用户的亲和力和粘性,提升用户体验。An embodiment of the present application provides a computer-readable storage medium. When a user's selection operation on a predetermined date in a calendar application is detected, target image data matching the predetermined date is acquired, and then the acquired target image data is displayed. In this way, when the user opens the calendar application, the image data corresponding to the time stamp of the date is directly obtained through the date provided by the calendar application such as the year or month, and displayed to the user, so that the user can view and modify the target image data later. Operation, so that the acquisition or search process of image data does not need to be realized by searching all image data one by one, thereby improving the efficiency of image search, and also improving the affinity and stickiness of the calendar application to users, and improving user experience.

此外,通过将日历应用与相册应用相结合,可以赋予日历应用除时间之外的属性,且获取的图像数据以时间线连接、管理、编辑,并且通过日历应用中的日期,可以快速找到该日期对应的图像数据,并且可以对某时间段的图像进行处理和视频制作,不仅提高了图像查找效率,还增加了日历应用的趣味性,提升用户体验。In addition, by combining the calendar application with the photo album application, the calendar application can be given attributes other than time, and the acquired image data can be connected, managed, and edited with a timeline, and the date can be quickly found through the date in the calendar application The corresponding image data can be processed and video produced for a certain period of time, which not only improves the efficiency of image search, but also increases the interest of the calendar application and improves the user experience.

本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.

在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.

内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。Memory may include non-permanent storage in computer readable media, in the form of random access memory (RAM) and/or nonvolatile memory such as read only memory (ROM) or flash RAM. Memory is an example of computer readable media.

计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media, including both permanent and non-permanent, removable and non-removable media, can be implemented by any method or technology for storage of information. Information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cartridge, tape magnetic disk storage or other magnetic storage device or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media excludes transitory computer-readable media, such as modulated data signals and carrier waves.

还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes Other elements not expressly listed, or elements inherent in the process, method, commodity, or apparatus are also included. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.

本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems or computer program products. Accordingly, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The above descriptions are only examples of the present application, and are not intended to limit the present application. For those skilled in the art, various modifications and changes may occur in this application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the scope of the claims of the present application.

Claims (16)

1. A method of acquiring image data, the method comprising:
when a selection operation for a predetermined date in a calendar application is detected, acquiring target image data matching the predetermined date;
and displaying the target image data.
2. The method of claim 1, wherein the displaying the target image data comprises:
sequentially displaying the target image data in a linear display mode with a time stamp according to the storage date of the target image data; or,
and sequentially displaying the target image data in a preset display area according to the storage date of the target image data.
3. The method according to claim 1 or 2, wherein before the target image data matching a predetermined date in a calendar application is acquired when a selection operation of the predetermined date is detected, the method further comprises:
when the calendar application is detected to be started, displaying a selection frame for allowing the permission of acquiring the image data in the album application, wherein the selection frame comprises an allowing option and a rejecting option;
when the selection operation of the option allowed in the selection frame is detected, the calendar application is determined to have the authority of acquiring the image data in the album application.
4. The method of claim 3, wherein the predetermined date is a single date,
the acquiring of the target image data matching the predetermined date includes:
acquiring first image data stored on the predetermined date and a date after the predetermined date from image data in the album application;
and using the acquired first image data as target image data matched with the preset date.
5. The method according to claim 3, wherein the predetermined date includes two or more dates, and the acquiring target image data matching the predetermined date includes:
acquiring the earliest date and the latest date in the preset dates;
acquiring second image data stored from a date between the earliest date and the latest date from the image data in the album application;
taking the acquired second image data as target image data matched with the predetermined date; or,
if the predetermined date includes two dates, the acquiring target image data matching the predetermined date includes:
acquiring third image data stored on a date between two dates from the image data in the album application;
and using the acquired third image data as target image data matched with the preset date.
6. The method of claim 5, further comprising:
when the viewing operation of the second image data is detected, generating video playing data by using a preset image playing rule according to the second image data, and playing the video playing data; or,
and when the viewing operation of the third image data is detected, generating video playing data by using a preset image playing rule according to the third image data, and playing the video playing data.
7. The method of claim 3, further comprising:
when a management operation on the target image data is detected, processing the target image data according to the management operation, wherein the management operation comprises one or more of a deleting operation, an editing operation and a beautifying operation;
and storing the processed target image data into a storage area corresponding to the album application.
8. An apparatus for acquiring image data, the apparatus comprising:
an image data acquisition module configured to acquire target image data matching a predetermined date in a calendar application when a selection operation of the predetermined date is detected;
and the image data display module is used for displaying the target image data.
9. The apparatus according to claim 8, wherein the image data display module is configured to sequentially display the target image data in a time-stamped linear display manner according to a storage date of the target image data; or sequentially displaying the target image data in a preset display area according to the storage date of the target image data.
10. The apparatus of claim 8 or 9, further comprising:
the selection frame display module is used for displaying a selection frame for allowing the permission of acquiring the image data in the album application or not when the calendar application is detected to be started, wherein the selection frame comprises an allowance option and a rejection option;
and the permission determining module is used for determining that the calendar application has the permission to acquire the image data in the album application when the selection operation of the permission option in the selection frame is detected.
11. The device of claim 10, wherein the predetermined date is a single date,
the image data acquisition module comprises:
a first image acquisition unit configured to acquire, from image data in the album application, first image data stored on the predetermined date and a date after the predetermined date;
a target image determination unit configured to take the acquired first image data as target image data matching the predetermined date.
12. The apparatus according to claim 10, wherein the predetermined dates include two or more dates, and the image data acquiring module includes:
a date acquisition unit configured to acquire an earliest date and a latest date in the predetermined dates;
a second image acquisition unit configured to acquire, from the image data in the album application, second image data stored from a date between the earliest date and the latest date;
a first target image determining unit configured to take the acquired second image data as target image data matching the predetermined date; or,
if the predetermined dates include two dates, the image data acquisition module includes:
a third image acquisition unit configured to acquire third image data stored on a date between two dates from among the image data in the album application;
a second target image determination unit configured to take the acquired third image data as target image data matching the predetermined date.
13. The apparatus of claim 12, further comprising:
the first video generation module is used for generating video playing data according to the second image data by using a preset image playing rule when the viewing operation of the second image data is detected;
the first playing module is used for playing the video playing data;
or,
the second video generation module is used for generating video playing data according to the third image data by using a preset image playing rule when the viewing operation of the third image data is detected;
and the second playing module is used for playing the video playing data.
14. The apparatus of claim 10, further comprising:
the image processing module is used for processing the target image data according to the management operation when the management operation on the target image data is detected, wherein the management operation comprises one or more of deletion operation, editing operation and beautifying operation;
and the storage module is used for storing the processed target image data into a storage area corresponding to the album application.
15. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on said memory and executable on said processor, said computer program, when executed by said processor, implementing the steps of the acquisition method of image data according to any one of claims 1 to 7.
16. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the acquisition method of image data according to any one of claims 1 to 7.
CN201710998665.XA 2017-10-20 2017-10-20 A kind of acquisition methods of view data, device and mobile terminal Pending CN107766517A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710998665.XA CN107766517A (en) 2017-10-20 2017-10-20 A kind of acquisition methods of view data, device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710998665.XA CN107766517A (en) 2017-10-20 2017-10-20 A kind of acquisition methods of view data, device and mobile terminal

Publications (1)

Publication Number Publication Date
CN107766517A true CN107766517A (en) 2018-03-06

Family

ID=61269226

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710998665.XA Pending CN107766517A (en) 2017-10-20 2017-10-20 A kind of acquisition methods of view data, device and mobile terminal

Country Status (1)

Country Link
CN (1) CN107766517A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109801347A (en) * 2019-01-25 2019-05-24 北京字节跳动网络技术有限公司 A kind of generation method, device, equipment and the medium of editable image template
CN110310592A (en) * 2019-06-28 2019-10-08 杭州勇电照明有限公司 A kind of Intelligent LED lamp control system
CN111246300A (en) * 2020-01-02 2020-06-05 北京达佳互联信息技术有限公司 Method, device and equipment for generating clip template and storage medium
CN113342526A (en) * 2021-06-09 2021-09-03 河南工业职业技术学院 Dynamic management and control method, system, terminal and medium for cloud computing mobile network resources

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101516058A (en) * 2008-02-22 2009-08-26 富士通株式会社 Image management apparatus
CN104077421A (en) * 2014-07-21 2014-10-01 联想(北京)有限公司 Information processing method and information processing device
CN104407873A (en) * 2014-12-05 2015-03-11 深圳市中兴移动通信有限公司 Method and device based on calendar management application
US20170032443A1 (en) * 2015-07-31 2017-02-02 Fujifilm Corporation Image processing apparatus, image processing method, and recording medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101516058A (en) * 2008-02-22 2009-08-26 富士通株式会社 Image management apparatus
CN104077421A (en) * 2014-07-21 2014-10-01 联想(北京)有限公司 Information processing method and information processing device
CN104407873A (en) * 2014-12-05 2015-03-11 深圳市中兴移动通信有限公司 Method and device based on calendar management application
US20170032443A1 (en) * 2015-07-31 2017-02-02 Fujifilm Corporation Image processing apparatus, image processing method, and recording medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109801347A (en) * 2019-01-25 2019-05-24 北京字节跳动网络技术有限公司 A kind of generation method, device, equipment and the medium of editable image template
CN109801347B (en) * 2019-01-25 2022-10-25 北京字节跳动网络技术有限公司 Method, device, equipment and medium for generating editable image template
CN110310592A (en) * 2019-06-28 2019-10-08 杭州勇电照明有限公司 A kind of Intelligent LED lamp control system
CN111246300A (en) * 2020-01-02 2020-06-05 北京达佳互联信息技术有限公司 Method, device and equipment for generating clip template and storage medium
CN111246300B (en) * 2020-01-02 2022-04-22 北京达佳互联信息技术有限公司 Method, device and equipment for generating clip template and storage medium
CN113342526A (en) * 2021-06-09 2021-09-03 河南工业职业技术学院 Dynamic management and control method, system, terminal and medium for cloud computing mobile network resources

Similar Documents

Publication Publication Date Title
US11520476B2 (en) Electronic apparatus displaying representative information and control method thereof
CN109145142B (en) Management method and terminal for shared information of pictures
WO2019120068A1 (en) Thumbnail display control method and mobile terminal
CN107707828B (en) A video processing method and mobile terminal
CN111880712B (en) Page display method and device, electronic equipment and storage medium
CN110286980A (en) A schedule creation method and mobile terminal
KR102629139B1 (en) Apparatus and method for capturing multimedia content
CN112416485A (en) Information guiding method, device, terminal and storage medium
CN112230914A (en) Method and device for producing small program, terminal and storage medium
CN106921791A (en) The storage and inspection method of a kind of multimedia file, device and mobile terminal
CN107766517A (en) A kind of acquisition methods of view data, device and mobile terminal
KR102019975B1 (en) Device and contents searching method using the same
CN108733772A (en) A kind of file delet method and terminal device
CN114845152B (en) Display method and device of play control, electronic equipment and storage medium
CN108696642B (en) Method for arranging icons and mobile terminal
CN110955788A (en) Information display method and electronic equipment
CN110489031A (en) Content display method and terminal device
CN111597359A (en) Information stream sharing method, device, equipment and storage medium
CN108710521A (en) A kind of note generation method and terminal device
WO2021104268A1 (en) Content sharing method, and electronic apparatus
CN113722040B (en) Work processing method, device, computer equipment and medium
CN114153963B (en) Document recommendation method, device, computer equipment and medium
CN111522483B (en) Multimedia data sharing method and device, electronic equipment and storage medium
WO2021169922A1 (en) Report content generation method and electronic device
CN109101158A (en) Import the method, apparatus and storage medium of list of songs

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180306

RJ01 Rejection of invention patent application after publication