技术领域technical field
本发明涉及智能设备技术领域,尤其涉及一种基于位置的照片搜索方法及装置、用户设备。The present invention relates to the technical field of smart devices, in particular to a location-based photo search method and device, and user equipment.
背景技术Background technique
随着智能手机、平板电脑等用户设备的性能不断演进,智能手机、平板电脑等用户设备的像素也在不断地提高,这使得智能手机、平板电脑等用户设备的拍照功能正逐渐地取代了传统相机的拍照功能。因此,越来越多的用户更倾向于使用智能手机、平板电脑等用户设备进行拍摄,从而使得照片占用智能手机、平板电脑等用户设备的内存空间比重也越来越大。在实践中发现,在用户设备的内存空间存储的照片越来越多的情况下,用户需要搜索某一些照片就显得十分困难,从而降低了照片的搜索效率。With the continuous evolution of the performance of user equipment such as smartphones and tablet computers, the pixels of user equipment such as smartphones and tablet computers are also continuously improving, which makes the camera functions of user equipment such as smartphones and tablet computers gradually replace traditional The camera's camera function. Therefore, more and more users are more inclined to use user devices such as smart phones and tablet computers to take pictures, so that the proportion of memory space occupied by user devices such as smart phones and tablet computers is also increasing. In practice, it is found that when more and more photos are stored in the memory space of the user device, it becomes very difficult for the user to search for certain photos, thereby reducing the efficiency of photo search.
发明内容Contents of the invention
本发明实施例公开了一种基于位置的照片搜索方法及装置、用户设备,能够帮助用户快速搜索照片,提高照片的搜索效率。The embodiment of the present invention discloses a location-based photo search method, device, and user equipment, which can help users quickly search for photos and improve photo search efficiency.
本发明实施例第一方面公开一种基于位置的照片搜索方法,包括:The first aspect of the embodiment of the present invention discloses a location-based photo search method, including:
获取目标位置;get target position;
以所述目标位置为依据,从用户设备的内存空间存储的照片中搜索出目标照片;其中,所述目标照片自身携带的拍摄位置与所述目标位置之间的距离小于等于预设距离。Based on the target location, the target photo is searched from the photos stored in the memory space of the user equipment; wherein, the distance between the shooting location carried by the target photo itself and the target location is less than or equal to a preset distance.
作为一种可选的实施方式,在本发明实施例第一方面中,所述获取目标位置,包括:As an optional implementation manner, in the first aspect of the embodiments of the present invention, the acquiring the target position includes:
检测用户在所述用户设备的相册界面提供的位置输入栏中输入的位置,作为目标位置;Detecting the location entered by the user in the location input field provided by the photo album interface of the user device as the target location;
所述方法还包括:The method also includes:
根据所述目标照片,生成所述目标照片的缩略图;generating a thumbnail of the target photo according to the target photo;
将所述目标照片的缩略图推送至所述相册界面的首页进行显示。Pushing the thumbnail of the target photo to the home page of the photo album interface for display.
作为一种可选的实施方式,在本发明实施例第一方面中,所述获取目标位置,包括:As an optional implementation manner, in the first aspect of the embodiments of the present invention, the acquiring the target position includes:
周期性的检测所述用户设备的位置是否发生变化,如果发生变化,计算发送变化之后的所述用户设备的位置与发送变化之前的所述用户设备的位置之间的距离;Periodically detect whether the position of the user equipment changes, and if it changes, calculate the distance between the position of the user equipment after the transmission change and the position of the user equipment before the transmission change;
判断所述距离是否超过指定距离,如果是,将发送变化之后的所述用户设备的位置作为目标位置;judging whether the distance exceeds a specified distance, and if so, using the location of the user equipment after sending the change as the target location;
所述方法还包括:The method also includes:
根据所述目标照片,生成所述目标照片的缩略图;generating a thumbnail of the target photo according to the target photo;
将所述目标照片的缩略图显示给用户。A thumbnail of the target photo is displayed to the user.
作为一种可选的实施方式,在本发明实施例第一方面中,所述获取目标位置,包括:As an optional implementation manner, in the first aspect of the embodiments of the present invention, the acquiring the target position includes:
检测用户在用户设备运行的电子地图中选择的位置,作为目标位置;Detect the location selected by the user in the electronic map running on the user equipment as the target location;
所述方法还包括:The method also includes:
以所述目标照片自身携带的拍摄位置为依据,从所述用户设备运行的电子地图中确定出所述目标照片自身携带的拍摄位置的映射位置;Based on the shooting location carried by the target photo itself, determine the mapping position of the shooting location carried by the target photo itself from the electronic map run by the user equipment;
根据所述目标照片,生成所述目标照片的缩略图;generating a thumbnail of the target photo according to the target photo;
将所述目标照片的缩略图推送至所述目标照片自身携带的拍摄位置的映射位置进行显示。Pushing the thumbnail of the target photo to the mapping position of the shooting location carried by the target photo itself for display.
作为一种可选的实施方式,在本发明实施例第一方面中,所述方法还包括:As an optional implementation manner, in the first aspect of the embodiment of the present invention, the method further includes:
检测用户对所述目标照片的缩略图的触及参数;其中,所述触及参数包括触及指纹、触及时长以及触及压力;Detecting the user's touch parameters on the thumbnail of the target photo; wherein the touch parameters include touch fingerprints, touch duration and touch pressure;
根据所述目标照片自身携带的拍摄位置,从预设的照片拍摄位置与拍摄指纹的对应关系中,获取所述目标照片自身携带的拍摄位置对应的目标拍摄指纹;其中,所述目标拍摄指纹是用户触及所述用户设备的拍摄按钮拍摄所述目标照片时所述拍摄按钮所采集到的拍摄指纹;According to the shooting position carried by the target photo itself, from the preset corresponding relationship between the photo shooting position and the shooting fingerprint, the target shooting fingerprint corresponding to the shooting position carried by the target photo itself is obtained; wherein, the target shooting fingerprint is The shooting fingerprint collected by the shooting button when the user touches the shooting button of the user equipment to take the target photo;
判断所述触及指纹是否与所述目标拍摄指纹相匹配,如果相匹配,判断所述触及时长是否超过预设时长,如果超过所述预设时长,判断所述触及压力是否超过预设压力,如果超过所述预设压力,显示所述目标照片。Judging whether the touching fingerprint matches the target photographed fingerprint, if they match, judging whether the touching duration exceeds a preset duration, if exceeding the preset duration, judging whether the touching pressure exceeds a preset pressure, if When the preset pressure is exceeded, the target photo is displayed.
本发明实施例第二方面公开一种基于位置的照片搜索装置,包括:The second aspect of the embodiment of the present invention discloses a location-based photo search device, including:
位置获取单元,用于获取目标位置;a position acquiring unit, configured to acquire a target position;
照片搜索单元,用于以所述目标位置为依据,从用户设备的内存空间存储的照片中搜索出目标照片;其中,所述目标照片自身携带的拍摄位置与所述目标位置之间的距离小于等于预设距离。The photo search unit is configured to search for a target photo from photos stored in the memory space of the user equipment based on the target location; wherein, the distance between the shooting location carried by the target photo itself and the target location is less than equal to the preset distance.
作为一种可选的实施方式,在本发明实施例第二方面中,所述位置获取单元具体用于检测用户在所述用户设备的相册界面提供的位置输入栏中输入的位置,作为目标位置;As an optional implementation manner, in the second aspect of the embodiments of the present invention, the location acquisition unit is specifically configured to detect the location entered by the user in the location input field provided by the photo album interface of the user device as the target location ;
所述照片搜索装置还包括:The photo search device also includes:
第一生成单元,用于根据所述目标照片,生成所述目标照片的缩略图;a first generating unit, configured to generate a thumbnail of the target photo according to the target photo;
第一显示单元,用于将所述目标照片的缩略图推送至所述相册界面的首页进行显示。The first display unit is configured to push the thumbnail of the target photo to the home page of the album interface for display.
作为一种可选的实施方式,在本发明实施例第二方面中,所述位置获取单元包括:As an optional implementation manner, in the second aspect of the embodiment of the present invention, the location acquisition unit includes:
检测子单元,用于周期性的检测所述用户设备的位置是否发生变化,如果发生变化,计算发送变化之后的所述用户设备的位置与发送变化之前的所述用户设备的位置之间的距离;The detection subunit is used to periodically detect whether the position of the user equipment changes, and if it changes, calculate the distance between the position of the user equipment after the transmission change and the position of the user equipment before the transmission change ;
判断子单元,用于判断所述距离是否超过指定距离,若超过,将发送变化之后的所述用户设备的位置作为目标位置;A judging subunit, configured to judge whether the distance exceeds a specified distance, and if so, use the position of the user equipment after the transmission change as the target position;
所述照片搜索装置还包括:The photo search device also includes:
第二生成单元,用于根据所述目标照片,生成所述目标照片的缩略图;a second generating unit, configured to generate a thumbnail of the target photo according to the target photo;
第二显示单元,用于将所述目标照片的缩略图显示给用户。The second display unit is configured to display the thumbnail of the target photo to the user.
作为一种可选的实施方式,在本发明实施例第二方面中,所述位置获取单元具体用于检测用户在用户设备运行的电子地图中选择的位置,作为目标位置;As an optional implementation manner, in the second aspect of the embodiments of the present invention, the position acquisition unit is specifically configured to detect a position selected by the user in the electronic map running on the user equipment as the target position;
所述照片搜索装置还包括:The photo search device also includes:
确定单元,用于以所述目标照片自身携带的拍摄位置为依据,从所述用户设备运行的电子地图中确定出所述目标照片自身携带的拍摄位置的映射位置;A determining unit, configured to determine the mapping position of the shooting location carried by the target photo itself from the electronic map run by the user equipment based on the shooting location carried by the target photo itself;
第三生成单元,用于根据所述目标照片,生成所述目标照片的缩略图;a third generating unit, configured to generate a thumbnail of the target photo according to the target photo;
第三显示单元,用于将所述目标照片的缩略图推送至所述目标照片自身携带的拍摄位置的映射位置进行显示。The third display unit is configured to push the thumbnail of the target photo to a mapping position of the shooting location carried by the target photo itself for display.
作为一种可选的实施方式,在本发明实施例第二方面中,所述照片搜索装置还包括:As an optional implementation manner, in the second aspect of the embodiment of the present invention, the photo search device further includes:
触及参数检测单元,用于检测用户对所述目标照片的缩略图的触及参数;其中,所述触及参数包括触及指纹、触及时长以及触及压力;A touch parameter detection unit, configured to detect the user's touch parameters on the thumbnail of the target photo; wherein the touch parameters include touch fingerprints, touch duration and touch pressure;
指纹获取单元,用于根据所述目标照片自身携带的拍摄位置,从预设的照片拍摄位置与拍摄指纹的对应关系中,获取所述目标照片自身携带的拍摄位置对应的目标拍摄指纹;其中,所述目标拍摄指纹是用户触及所述用户设备的拍摄按钮拍摄所述目标照片时所述拍摄按钮所采集到的拍摄指纹;The fingerprint acquisition unit is used to obtain the target fingerprint corresponding to the shooting position carried by the target photo itself from the preset corresponding relationship between the photo shooting position and the shooting fingerprint according to the shooting position carried by the target photo itself; wherein, The photographed fingerprint of the target is the photographed fingerprint collected by the photographing button when the user touches the photographing button of the user equipment to photograph the target photo;
照片显示单元,用于判断所述触及指纹是否与所述目标拍摄指纹相匹配,如果相匹配,判断所述触及时长是否超过预设时长,如果超过所述预设时长,判断所述触及压力是否超过预设压力,如果超过所述预设压力,显示所述目标照片。The photo display unit is used for judging whether the touching fingerprint matches the target photographing fingerprint, if they match, judging whether the touching duration exceeds a preset duration, and if exceeding the preset duration, judging whether the touching pressure The preset pressure is exceeded, and if the preset pressure is exceeded, the target photo is displayed.
本发明实施例第三方面公开一种用户设备,包括本发明实施例第二方面公开的所述基于位置的照片搜索装置。The third aspect of the embodiments of the present invention discloses a user equipment, including the location-based photo search apparatus disclosed in the second aspect of the embodiments of the present invention.
与现有技术相比,本发明实施例具备以下有益效果:Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
本发明实施例中,可以获取目标位置,并以目标位置为依据,从用户设备的内存空间存储的照片中搜索出目标照片,其中,目标照片自身携带的拍摄位置与目标位置之间的距离小于等于预设距离。显然,实施本发明实施例,即使在用户设备的内存空间存储大量照片的情况下,也可以根据位置来帮助用户快速搜索照片,从而可以提高照片的搜索效率。In the embodiment of the present invention, the target location can be obtained, and based on the target location, the target photo can be searched from the photos stored in the memory space of the user device, wherein the distance between the shooting location carried by the target photo itself and the target location is less than equal to the preset distance. Apparently, the implementation of the embodiment of the present invention can help the user to quickly search for photos according to the location even when a large number of photos are stored in the memory space of the user equipment, thereby improving the photo search efficiency.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without making creative efforts.
图1是本发明实施例公开的一种基于位置的照片搜索方法的流程示意图;FIG. 1 is a schematic flow diagram of a location-based photo search method disclosed in an embodiment of the present invention;
图2是本发明实施例公开的另一种基于位置的照片搜索方法的流程示意图;FIG. 2 is a schematic flowchart of another location-based photo search method disclosed in an embodiment of the present invention;
图3是本发明实施例公开的另一种基于位置的照片搜索方法的流程示意图;Fig. 3 is a schematic flowchart of another location-based photo search method disclosed in an embodiment of the present invention;
图4是本发明实施例公开的另一种基于位置的照片搜索方法的流程示意图;FIG. 4 is a schematic flowchart of another location-based photo search method disclosed in an embodiment of the present invention;
图5是本发明实施例公开的一种基于位置的照片搜索装置的结构示意图;Fig. 5 is a schematic structural diagram of a location-based photo search device disclosed in an embodiment of the present invention;
图6是本发明实施例公开的另一种基于位置的照片搜索装置的结构示意图;Fig. 6 is a schematic structural diagram of another location-based photo search device disclosed in an embodiment of the present invention;
图7是本发明实施例公开的另一种基于位置的照片搜索装置的结构示意图;Fig. 7 is a schematic structural diagram of another location-based photo search device disclosed in an embodiment of the present invention;
图8是本发明实施例公开的另一种基于位置的照片搜索装置的结构示意图;Fig. 8 is a schematic structural diagram of another location-based photo search device disclosed in an embodiment of the present invention;
图9是本发明实施例公开的一种用户设备的结构示意图。Fig. 9 is a schematic structural diagram of a user equipment disclosed in an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
本发明实施例公开了一种基于位置的照片搜索方法及装置、用户设备,能够帮助用户快速搜索照片,提高照片的搜索效率。以下进行结合附图进行详细描述。The embodiment of the present invention discloses a location-based photo search method, device, and user equipment, which can help users quickly search for photos and improve photo search efficiency. A detailed description will be given below in conjunction with the accompanying drawings.
实施例一Embodiment one
请参阅图1,图1是本发明实施例公开的一种基于位置的照片搜索方法的流程示意图。如图1所示,该基于位置的照片搜索方法可以包括以下步骤:Please refer to FIG. 1 . FIG. 1 is a schematic flowchart of a location-based photo search method disclosed in an embodiment of the present invention. As shown in Figure 1, the location-based photo search method may include the following steps:
101、用户设备获取目标位置。101. The user equipment acquires a target location.
本发明实施例中,用户设备可以包括智能手机、平板电脑等用户设备,本发明实施例不作限定。In this embodiment of the present invention, the user equipment may include user equipment such as a smart phone and a tablet computer, which is not limited in this embodiment of the present invention.
102、用户设备以该目标位置为依据,从用户设备的内存空间存储的照片中搜索出目标照片;其中,该目标照片自身携带的拍摄位置与该目标位置之间的距离小于等于预设距离。102. Based on the target location, the user equipment searches for the target photo from the photos stored in the memory space of the user equipment; wherein, the distance between the shooting location carried by the target photo itself and the target location is less than or equal to a preset distance.
本发明实施例中,用户设备的内存空间可以存在两个文件夹,分别为用于存储用户设备拍摄到的照片的文件夹以及用于存储其他设备或社交应用发送的照片的文件夹。当用户设备拍摄到照片时,可以将拍摄位置添加到拍摄到的照片中,以使拍摄到的照片可以携带拍摄位置;进一步地,用户设备可以将自身携带有拍摄位置的照片存储至用于存储用户设备拍摄到的照片的文件夹中。当用户设备接收到其他设备或社交应用发送的携带有拍摄位置的照片时,可以将其他设备或社交应用发送的携带有拍摄位置的照片存储至用于存储其他设备或社交应用发送的照片的文件夹中。当用户设备获取到目标位置之后,可以从用户设备的内存空间存在的用于存储用户设备拍摄到的照片的文件夹以及用于存储其他设备或社交应用发送的照片的文件夹中搜索出目标照片。In the embodiment of the present invention, there may be two folders in the memory space of the user device, which are respectively a folder for storing photos taken by the user device and a folder for storing photos sent by other devices or social applications. When the user equipment takes a photo, the shooting location can be added to the photo taken, so that the taken photo can carry the shooting location; further, the user equipment can store the photo with the shooting location on itself for storage In the folder of photos captured by the user device. When the user device receives photos with shooting locations sent by other devices or social applications, it can store the photos with shooting locations sent by other devices or social applications to the file used to store photos sent by other devices or social applications in the middle. After the user device obtains the target location, the target photo can be searched from the folder used to store the photos taken by the user device and the folder used to store photos sent by other devices or social applications in the memory space of the user device .
在图1所描述的方法中,可以获取目标位置,并以目标位置为依据,从用户设备的内存空间存储的照片中搜索出目标照片,其中,目标照片自身携带的拍摄位置与目标位置之间的距离小于等于预设距离。显然,实施图1所描述的方法,即使在用户设备的内存空间存储大量照片的情况下,也可以根据位置来帮助用户快速搜索照片,从而可以提高照片的搜索效率。In the method described in FIG. 1 , the target location can be obtained, and based on the target location, the target photo can be searched from the photos stored in the memory space of the user device, wherein the distance between the shooting location carried by the target photo itself and the target location The distance is less than or equal to the preset distance. Apparently, implementing the method described in FIG. 1 can help the user to quickly search for photos according to the location even if the memory space of the user device stores a large number of photos, thereby improving the photo search efficiency.
实施例二Embodiment two
请参阅图2,图2是本发明实施例公开的另一种基于位置的照片搜索方法的流程示意图。如图2所示,该基于位置的照片搜索方法可以包括以下步骤:Please refer to FIG. 2 . FIG. 2 is a schematic flowchart of another location-based photo search method disclosed in an embodiment of the present invention. As shown in Figure 2, the location-based photo search method may include the following steps:
201、用户设备检测用户在用户设备的相册界面提供的位置输入栏中输入的位置,作为目标位置。201. The user equipment detects the location input by the user in the location input field provided by the photo album interface of the user equipment as the target location.
本发明实施例中,用户在可以对用户设备的相册界面中的空白区域进行长按,并且在对用户设备的相册界面中的空白区域进行长按时甩动用户设备,从而可以可靠地触发用户设备在该相册界面的空白区域显示位置输入栏,进一步地,用户可以在该位置输入栏中输入位置,其中,用户在该位置输入栏输入的位置可以采用位置地标名称、位置经纬度坐标等位置信息来表示,使得用户设备可以检测到用户在用户设备的相册界面提供的位置输入栏中输入的位置,并将该位置作为目标位置。In the embodiment of the present invention, the user can press and hold the blank area in the photo album interface of the user equipment, and shake the user equipment when long pressing the blank area in the album interface of the user equipment, so that the user equipment can be reliably triggered. A position input field is displayed in the blank area of the album interface. Further, the user can input a position in the position input field, wherein the position input by the user in the position input field can be determined by using position information such as position landmark name, position longitude and latitude coordinates, etc. Indicates that the user equipment can detect the location input by the user in the location input field provided by the photo album interface of the user equipment, and use this location as the target location.
202、用户设备以该目标位置为依据,从用户设备的内存空间存储的照片中搜索出目标照片;其中,该目标照片自身携带的拍摄位置与该目标位置之间的距离小于等于预设距离。202. Based on the target location, the user device searches for a target photo from photos stored in the memory space of the user device; wherein, the distance between the shooting location carried by the target photo itself and the target location is less than or equal to a preset distance.
本发明实施例中,用户设备的内存空间可以存在两个文件夹,分别为用于存储用户设备拍摄到的照片的文件夹以及用于存储其他设备或社交应用发送的照片的文件夹。当用户设备拍摄到照片时,可以将拍摄位置添加到拍摄到的照片中,以使拍摄到的照片可以携带拍摄位置;进一步地,用户设备可以将自身携带有拍摄位置的照片存储至用于存储用户设备拍摄到的照片的文件夹中。当用户设备接收到其他设备或社交应用发送的携带有拍摄位置的照片时,可以将其他设备或社交应用发送的携带有拍摄位置的照片存储至用于存储其他设备或社交应用发送的照片的文件夹中。当用户设备获取到目标位置之后,可以从用户设备的内存空间存在的用于存储用户设备拍摄到的照片的文件夹以及用于存储其他设备或社交应用发送的照片的文件夹中搜索出目标照片。In the embodiment of the present invention, there may be two folders in the memory space of the user device, which are respectively a folder for storing photos taken by the user device and a folder for storing photos sent by other devices or social applications. When the user equipment takes a photo, the shooting location can be added to the photo taken, so that the taken photo can carry the shooting location; further, the user equipment can store the photo with the shooting location on itself for storage In the folder of photos captured by the user device. When the user device receives photos with shooting locations sent by other devices or social applications, it can store the photos with shooting locations sent by other devices or social applications to the file used to store photos sent by other devices or social applications in the middle. After the user device obtains the target location, the target photo can be searched from the folder used to store the photos taken by the user device and the folder used to store photos sent by other devices or social applications in the memory space of the user device .
本发明实施例中,上述预设距离可以根据需求进行设置,其单位可以为米,也可以是千米,本发明实施例不作限定。In the embodiment of the present invention, the above-mentioned preset distance can be set according to requirements, and the unit can be meter or kilometer, which is not limited in the embodiment of the present invention.
203、用户设备根据目标照片,生成目标照片的缩略图。203. The user equipment generates a thumbnail of the target photo according to the target photo.
作为一种可选的实施方式,用户设备可以对目标照片进行缩小,以生成目标照片的缩略图。As an optional implementation manner, the user equipment may shrink the target photo to generate a thumbnail of the target photo.
作为另一种可选的实施方式,上述步骤203可以包括以下步骤:As another optional implementation manner, the above step 203 may include the following steps:
1)、用户设备获取预设的待生成缩略图的目标尺寸;1), the user equipment acquires the preset target size of the thumbnail to be generated;
2)、用户设备根据重要性分析算法,计算目标照片的重要性分布;2), the user equipment calculates the importance distribution of the target photo according to the importance analysis algorithm;
3)、用户设备目标照片均匀划分成M×N个网格,其中M是大于等于1的整数,N是大于等于1的整数,以及,根据目标照片的重要性分布,计算每个网格的重要性;3) The target photo of the user device is evenly divided into M×N grids, where M is an integer greater than or equal to 1, and N is an integer greater than or equal to 1, and, according to the importance distribution of the target photo, calculate the importance;
4)、用户设备根据不同网格的重要性,使用裁剪、缩放、扭曲三种策略对网格进行变形,获得变形后的网格;4) According to the importance of different grids, the user equipment uses three strategies of cutting, zooming and distorting to deform the grid to obtain the deformed grid;
5)、用户设备使目标照片各网格内的图像内容适应变形后的网格,获得第一缩略图;5), the user equipment adapts the image content in each grid of the target photo to the deformed grid, and obtains the first thumbnail;
6)、用户设备根据重要区域完整性检测策略,判定第一缩略图对重要区域的显示是否符合重要区域完整性判定条件;6), the user equipment determines whether the display of the important area by the first thumbnail conforms to the important area integrity determination condition according to the important area integrity detection strategy;
7)、若第一缩略图符合重要区域完整性条件,则直接将第一缩略图作为第二缩略图;否则,利用裁切修正算法调整裁切策略的作用效果,重新获得第一缩略图;7) If the first thumbnail meets the integrity condition of the important area, directly use the first thumbnail as the second thumbnail; otherwise, use the clipping correction algorithm to adjust the effect of the clipping strategy to regain the first thumbnail;
8)、用户设备根据重要区域充分性检测策略,判定第二缩略图对重要区域的显示是否符合重要区域充分性判定条件;8), the user equipment determines whether the display of the important area by the second thumbnail meets the adequacy determination condition of the important area according to the important area adequacy detection strategy;
9)、若第二缩略图符合重要区域充分性条件,则直接将第二缩略图作为目标照片的缩略图;否则,利用缩放修正算法调整缩放策略的作用效果,重新获得第二缩略图;9), if the second thumbnail meets the sufficiency condition of the important area, directly use the second thumbnail as the thumbnail of the target photo; otherwise, use the scaling correction algorithm to adjust the effect of the scaling strategy, and regain the second thumbnail;
10)、用户设备输出目标照片的缩略图。10). The user equipment outputs the thumbnail image of the target photo.
其中,步骤2)中根据重要性分析算法,计算目标照片的重要性分布,包括:Wherein, in step 2), calculate the importance distribution of the target photo according to the importance analysis algorithm, including:
用户设备根据显著性图计算算法,计算目标照片的显著性图;以及,根据人脸检测算法,检测目标照片的人脸区域,然后根据人脸检测结果生成人脸区域图;以及,同时根据人脸区域图和显著性图,生成目标照片的重要性分布;其中,根据人脸检测结果生成人脸区域图的方式为:将人脸所在区域的像素赋予较高的灰度值,该灰度值的取值范围为150~255,将其他区域的像素赋予较低的灰度值,该灰度值的取值范围为1~100。The user equipment calculates the saliency map of the target photo according to the saliency map calculation algorithm; and, according to the face detection algorithm, detects the face area of the target photo, and then generates a face area map according to the face detection result; The face area map and the saliency map generate the importance distribution of the target photo; wherein, the method of generating the face area map according to the face detection result is: assigning a higher gray value to the pixels in the area where the face is located, the gray value The range of the value is 150-255, and the pixels in other areas are assigned a lower gray value, and the range of the gray value is 1-100.
其中,步骤4)进一步包括:使用扭曲策略保持重要区域的形状,而扭曲重要区域之间的不重要区域,使用裁切策略和缩放策略使变形后的网格同时满足裁切要求、扭曲要求、缩放要求。Among them, step 4) further includes: using a warping strategy to maintain the shape of important regions, and distorting unimportant regions between important regions, using a clipping strategy and a scaling strategy to make the deformed grid simultaneously meet the clipping requirements, distortion requirements, scaling requirements.
其中,所述裁切要求为:网格的重要性越高,变形后的网格的位置与裁切窗口中心的距离越近;Wherein, the clipping requirement is: the higher the importance of the grid, the closer the distance between the position of the deformed grid and the center of the clipping window;
其中,单个网格与裁切窗口中心距离的计算方式为:变形后网格的质心距离裁切窗口中心的距离的平方和,包括:根据网格的四个顶点,计算当前变形后网格的质心坐标;根据变形后网格的质心坐标,计算质心与裁切窗口中心的距离;计算所述距离的平方。Among them, the calculation method of the distance between a single grid and the center of the clipping window is: the square sum of the distance between the center of mass of the deformed grid and the center of the clipping window, including: according to the four vertices of the grid, calculate the current deformed grid Centroid coordinates; calculate the distance between the centroid and the center of the clipping window according to the centroid coordinates of the deformed grid; calculate the square of the distance.
其中,缩放要求为:网格的重要性越高,变形后的网格与原始网格相比尺度差异越小。Among them, the scaling requirement is: the higher the importance of the grid, the smaller the scale difference between the deformed grid and the original grid.
其中,单个网格与原始网格尺度差异的计算方式为:变形后网格的平均对角线长度与原始网格对角线长度之差的平方和,包括:根据网格的四个顶点,计算当前变形后网格的尺度参数,该参数取值为正值,在0到1的范围内,说明该网格变形后发生了尺度缩小;大于1,说明该网格变形后发生尺度扩大;等于1说明该网格尺度未发生变化;根据变形后网格的尺度参数,计算变形后网格的平均对角线长度与原始网格对角线长度之差;计算所述长度差的平方。Among them, the calculation method of the scale difference between a single grid and the original grid is: the sum of the squares of the difference between the average diagonal length of the deformed grid and the diagonal length of the original grid, including: according to the four vertices of the grid, Calculate the scale parameter of the grid after the current deformation. The value of this parameter is a positive value. In the range of 0 to 1, it means that the scale of the grid has been reduced after deformation; if it is greater than 1, it means that the scale of the grid has been expanded after deformation; Equal to 1, indicating that the grid scale has not changed; according to the scale parameter of the deformed grid, calculate the difference between the average diagonal length of the deformed grid and the diagonal length of the original grid; calculate the square of the length difference.
其中,步骤5)进一步包括:Wherein, step 5) further includes:
根据变形后网格的四个顶点坐标与原始网格的四个顶点坐标,计算从原始网格到变形后网格的最佳平面投影关系,即一个二维的线性映射;According to the four vertex coordinates of the deformed grid and the four vertex coordinates of the original grid, calculate the best plane projection relationship from the original grid to the deformed grid, that is, a two-dimensional linear mapping;
根据最佳平面投影关系,将原始网格内的各像素投影到变形后的网格中,使原始图像内容适应新的网格;According to the best plane projection relationship, each pixel in the original grid is projected into the deformed grid, so that the original image content can be adapted to the new grid;
根据图像变形后像素的位置和裁切窗口的位置,丢弃处于裁切窗口之外的像素,保留裁切窗口之内像素作为第一缩略图。According to the position of the pixel after image deformation and the position of the cropping window, the pixels outside the cropping window are discarded, and the pixels inside the cropping window are reserved as the first thumbnail.
其中,重要区域完整性判定条件为:缩略图中所有像素的重要性之和与目标照片中所有像素的重要性之和的比例大于预设阈值,其中,预设阈值的取值大于0.2。Wherein, the important area integrity determination condition is: the ratio of the sum of importance of all pixels in the thumbnail image to the sum of importance of all pixels in the target photo is greater than a preset threshold, wherein the value of the preset threshold is greater than 0.2.
其中,步骤7)中利用裁切修正算法调整裁切策略的作用效果,重新获得第一缩略图,包括:对不满足重要区域完整性判定条件的缩略图,调整裁切策略的作用效果,即调整裁切要求,使重要网格距离裁切窗口中心的距离更近,减少变形后处于裁切窗口之外的像素数量。Wherein, in step 7), the cropping correction algorithm is used to adjust the effect of the cropping strategy to regain the first thumbnail, including: adjusting the effect of the cropping strategy for thumbnails that do not meet the integrity judgment conditions of important regions, that is Adjust the cropping requirements so that the important grid is closer to the center of the cropping window, reducing the number of pixels that fall outside the cropping window after deformation.
其中,重要区域充分性判定条件为:缩略图中重要像素所占的面积与缩略图面积比例大于预设阈值,其中,预设阈值的取值大于0.2。Wherein, the condition for judging the adequacy of the important area is: the ratio of the area occupied by the important pixels in the thumbnail image to the area of the thumbnail image is greater than a preset threshold, wherein the value of the preset threshold is greater than 0.2.
其中,利用缩放修正算法调整缩放策略的作用效果,重新获得第二缩略图,包括:对不满足重要物体充分性判定条件的缩略图,调整缩放策略的作用效果,即调整缩放要求,使重要网格的尺度与原始网格的尺度差异更小,增大变形后重要区域占据的面积。Among them, using the zoom correction algorithm to adjust the effect of the zoom strategy to regain the second thumbnail, including: adjusting the effect of the zoom strategy for the thumbnails that do not meet the adequacy determination conditions of important objects, that is, adjusting the zoom requirements so that the important network The difference between the scale of the grid and the scale of the original grid is smaller, and the area occupied by the important area after deformation is increased.
本发明实施例中,实施上述步骤1)~步骤10),可以将不同尺寸、规格和内容的照片处理成预设尺寸的缩略图,并且使该缩略图准确、完整、充分地显示照片中的重要内容,提升用户浏览效率和浏览体验。In the embodiment of the present invention, by implementing the above steps 1) to 10), photos of different sizes, specifications and contents can be processed into thumbnails of preset sizes, and the thumbnails can accurately, completely and fully display the images in the photos. Important content to improve user browsing efficiency and browsing experience.
204、用户设备将目标照片的缩略图推送至相册界面的首页进行显示。204. The user device pushes the thumbnail of the target photo to the home page of the photo album interface for display.
205、用户设备检测用户对目标照片的缩略图的触及参数;其中,触及参数包括触及指纹、触及时长以及触及压力。205. The user equipment detects the user's touch parameters on the thumbnail of the target photo; wherein the touch parameters include touch fingerprints, touch duration, and touch pressure.
206、用户设备根据目标照片自身携带的拍摄位置,从预设的照片拍摄位置与拍摄指纹的对应关系中,获取目标照片自身携带的拍摄位置对应的目标拍摄指纹;其中,目标拍摄指纹是用户触及用户设备的拍摄按钮拍摄目标照片时拍摄按钮所采集到的拍摄指纹。206. According to the shooting location carried by the target photo itself, the user device obtains the target shooting fingerprint corresponding to the shooting location carried by the target photo itself from the preset corresponding relationship between the photo shooting location and the shooting fingerprint; The photographing fingerprint collected by the photographing button when the photographing button of the user device captures the target photo.
本发明实施例中,用户设备的拍摄按钮不仅用于触发拍摄目标照片,而且还可以用于在触发拍摄目标照片时采集拍摄指纹,从而可以快速的为目标照片绑定拍摄位置对应的拍摄指纹,从而为后续需要进一步显示目标照片时提供安全验证依据。In the embodiment of the present invention, the shooting button of the user equipment is not only used to trigger the shooting of the target photo, but also can be used to collect the shooting fingerprint when triggering the shooting of the target photo, so that the shooting fingerprint corresponding to the shooting position can be quickly bound to the target photo, In this way, a security verification basis is provided for subsequent further display of the target photo.
207、用户设备判断触及指纹是否与目标拍摄指纹相匹配,如果相匹配,判断触及时长是否超过预设时长,如果超过预设时长,判断触及压力是否超过预设压力,如果超过预设压力,显示目标照片。207. The user device judges whether the touch fingerprint matches the target fingerprint. If it matches, judges whether the touch duration exceeds the preset duration. If it exceeds the preset duration, judges whether the touch pressure exceeds the preset pressure. If it exceeds the preset pressure, display target photo.
本发明实施例中,用户设备在判断触及指纹与目标拍摄指纹不匹配,或者,判断触及时长没有超过预设时长,又或者,判断触及压力未超过预设压力时,无需显示目标照片,从而可以实现目标照片的安全浏览。In the embodiment of the present invention, when the user equipment judges that the touch fingerprint does not match the target fingerprint, or judges that the touch duration does not exceed the preset duration, or judges that the touch pressure does not exceed the preset pressure, the user device does not need to display the target photo, so that Achieve safe browsing of target photos.
其中,实施图2所描述的方法,即使在用户设备的内存空间存储大量照片的情况下,也可以根据位置来帮助用户快速搜索照片,从而可以提高照片的搜索效率。此外,实施图2所描述的方法,可以通过相册界面来快速搜索接近用户输入的位置的目标照片,从而可以增加相册系统附加值。Wherein, implementing the method described in FIG. 2 can help the user to quickly search for photos according to the location even when a large number of photos are stored in the memory space of the user device, thereby improving the search efficiency of photos. In addition, implementing the method described in FIG. 2 can quickly search for target photos close to the location input by the user through the album interface, thereby increasing the added value of the album system.
实施例三Embodiment three
请参阅图3,图3是本发明实施例公开的另一种基于位置的照片搜索方法的流程示意图。如图3所示,该基于位置的照片搜索方法可以包括以下步骤:Please refer to FIG. 3 . FIG. 3 is a schematic flowchart of another location-based photo search method disclosed in an embodiment of the present invention. As shown in Figure 3, the location-based photo search method may include the following steps:
301、用户设备周期性的检测用户设备的位置是否发生变化,如果发生变化,计算发送变化之后的用户设备的位置与发送变化之前的用户设备的位置之间的距离。301. The user equipment periodically detects whether the location of the user equipment changes, and if there is a change, calculates the distance between the location of the user equipment after sending the change and the location of the user equipment before the sending change.
302、用户设备判断该距离是否超过指定距离,如果是,执行步骤303;反之,如果否,结束本流程。302. The user equipment judges whether the distance exceeds a specified distance, and if yes, execute step 303; otherwise, if no, end this process.
303、用户设备将发送变化之后的用户设备的位置作为目标位置。303. The user equipment sends the changed location of the user equipment as the target location.
304、用户设备以该目标位置为依据,从用户设备的内存空间存储的照片中搜索出目标照片;其中,该目标照片自身携带的拍摄位置与该目标位置之间的距离小于等于预设距离。304. Based on the target location, the user equipment searches for the target photo from the photos stored in the memory space of the user equipment; wherein, the distance between the shooting location carried by the target photo itself and the target location is less than or equal to a preset distance.
305、用户设备根据目标照片,生成目标照片的缩略图。305. The user equipment generates a thumbnail of the target photo according to the target photo.
本发明实施例中,上述步骤305的实现方式与上述步骤203的实现方式可以相同,本发明实施例不作赘述。In the embodiment of the present invention, the implementation manner of the foregoing step 305 may be the same as that of the foregoing step 203, and details are not described in this embodiment of the present disclosure.
306、用户设备将目标照片的缩略图显示给用户。306. The user equipment displays the thumbnail of the target photo to the user.
307、用户设备检测用户对目标照片的缩略图的触及参数;其中,触及参数包括触及指纹、触及时长以及触及压力。307. The user equipment detects touch parameters of the thumbnail of the target photo by the user, where the touch parameters include touch fingerprints, touch duration, and touch pressure.
308、用户设备根据目标照片自身携带的拍摄位置,从预设的照片拍摄位置与拍摄指纹的对应关系中,获取目标照片自身携带的拍摄位置对应的目标拍摄指纹;其中,目标拍摄指纹是用户触及用户设备的拍摄按钮拍摄目标照片时拍摄按钮所采集到的拍摄指纹。308. According to the shooting location carried by the target photo itself, the user device obtains the target shooting fingerprint corresponding to the shooting location carried by the target photo itself from the preset corresponding relationship between the photo shooting location and the shooting fingerprint; The photographing fingerprint collected by the photographing button when the photographing button of the user device captures the target photo.
本发明实施例中,用户设备的拍摄按钮不仅用于触发拍摄目标照片,而且还可以用于在触发拍摄目标照片时采集拍摄指纹,从而可以快速的为目标照片绑定拍摄位置对应的拍摄指纹,从而为后续需要进一步显示目标照片时提供安全验证依据。In the embodiment of the present invention, the shooting button of the user equipment is not only used to trigger the shooting of the target photo, but also can be used to collect the shooting fingerprint when triggering the shooting of the target photo, so that the shooting fingerprint corresponding to the shooting position can be quickly bound to the target photo, In this way, a security verification basis is provided for subsequent further display of the target photo.
309、用户设备判断触及指纹是否与目标拍摄指纹相匹配,如果相匹配,判断触及时长是否超过预设时长,如果超过预设时长,判断触及压力是否超过预设压力,如果超过预设压力,显示目标照片。309. The user device judges whether the touch fingerprint matches the target fingerprint, and if it matches, judges whether the touch duration exceeds the preset duration, and if it exceeds the preset duration, judges whether the touch pressure exceeds the preset pressure, and if it exceeds the preset pressure, displays target photo.
本发明实施例中,用户设备在判断触及指纹与目标拍摄指纹不匹配,或者,判断触及时长没有超过预设时长,又或者,判断触及压力未超过预设压力时,无需显示目标照片,从而可以实现目标照片的安全浏览。In the embodiment of the present invention, when the user equipment judges that the touch fingerprint does not match the target fingerprint, or judges that the touch duration does not exceed the preset duration, or judges that the touch pressure does not exceed the preset pressure, the user device does not need to display the target photo, so that Achieve safe browsing of target photos.
其中,实施图3所描述的方法,即使在用户设备的内存空间存储大量照片的情况下,也可以根据位置来帮助用户快速搜索照片,从而可以提高照片的搜索效率。此外,实施图3所描述的方法,可以在用户终端的位置发生变化时快速搜索接近发生变化后的用户设备的位置的目标照片,供用户回忆,提高用户体验。Wherein, implementing the method described in FIG. 3 can help the user to quickly search for photos according to the location even when a large number of photos are stored in the memory space of the user device, thereby improving the search efficiency of photos. In addition, by implementing the method described in FIG. 3 , when the location of the user terminal changes, target photos close to the changed location of the user equipment can be quickly searched for the user to recall and improve user experience.
实施例四Embodiment four
请参阅图4,图4是本发明实施例公开的另一种基于位置的照片搜索方法的流程示意图。如图4所示,该基于位置的照片搜索方法可以包括以下步骤:Please refer to FIG. 4 . FIG. 4 is a schematic flowchart of another location-based photo search method disclosed in an embodiment of the present invention. As shown in Figure 4, the location-based photo search method may include the following steps:
401、用户设备检测用户在用户设备运行的电子地图中选择的位置,作为目标位置。401. The user equipment detects a location selected by the user in an electronic map running on the user equipment as a target location.
402、用户设备以该目标位置为依据,从用户设备的内存空间存储的照片中搜索出目标照片;其中,该目标照片自身携带的拍摄位置与该目标位置之间的距离小于等于预设距离。402. Based on the target location, the user equipment searches for a target photo from photos stored in the memory space of the user equipment; wherein, the distance between the shooting location carried by the target photo itself and the target location is less than or equal to a preset distance.
403、用户设备以目标照片自身携带的拍摄位置为依据,从用户设备运行的电子地图中确定出目标照片自身携带的拍摄位置的映射位置。403. Based on the shooting location carried by the target photo itself, the user equipment determines the mapping position of the shooting location carried by the target photo itself from the electronic map run by the user equipment.
404、用户设备根据目标照片,生成目标照片的缩略图。404. The user equipment generates a thumbnail of the target photo according to the target photo.
本发明实施例中,上述步骤404的实现方式与上述步骤203的实现方式可以相同,本发明实施例不作赘述。In the embodiment of the present invention, the implementation manner of the foregoing step 404 may be the same as that of the foregoing step 203, and details are not described in this embodiment of the present disclosure.
405、用户设备将目标照片的缩略图推送至目标照片自身携带的拍摄位置的映射位置进行显示。405. The user equipment pushes the thumbnail of the target photo to the mapping position of the shooting position carried in the target photo itself for display.
406、用户设备检测用户对目标照片的缩略图的触及参数;其中,触及参数包括触及指纹、触及时长以及触及压力。406. The user equipment detects touch parameters of the thumbnail image of the target photo by the user, where the touch parameters include touch fingerprints, touch duration, and touch pressure.
407、用户设备根据目标照片自身携带的拍摄位置,从预设的照片拍摄位置与拍摄指纹的对应关系中,获取目标照片自身携带的拍摄位置对应的目标拍摄指纹;其中,目标拍摄指纹是用户触及用户设备的拍摄按钮拍摄目标照片时拍摄按钮所采集到的拍摄指纹。407. According to the shooting location carried by the target photo itself, the user device obtains the target shooting fingerprint corresponding to the shooting location carried by the target photo itself from the preset corresponding relationship between the photo shooting location and the shooting fingerprint; The photographing fingerprint collected by the photographing button when the photographing button of the user device captures the target photo.
本发明实施例中,用户设备的拍摄按钮不仅用于触发拍摄目标照片,而且还可以用于在触发拍摄目标照片时采集拍摄指纹,从而可以快速的为目标照片绑定拍摄位置对应的拍摄指纹,从而为后续需要进一步显示目标照片时提供安全验证依据。In the embodiment of the present invention, the shooting button of the user equipment is not only used to trigger the shooting of the target photo, but also can be used to collect the shooting fingerprint when triggering the shooting of the target photo, so that the shooting fingerprint corresponding to the shooting position can be quickly bound to the target photo, In this way, a security verification basis is provided for subsequent further display of the target photo.
408、用户设备判断触及指纹是否与目标拍摄指纹相匹配,如果相匹配,判断触及时长是否超过预设时长,如果超过预设时长,判断触及压力是否超过预设压力,如果超过预设压力,显示目标照片。408. The user device judges whether the touch fingerprint matches the target fingerprint. If they match, judge whether the touch duration exceeds the preset duration. If it exceeds the preset duration, judge whether the touch pressure exceeds the preset pressure. If it exceeds the preset pressure, display target photo.
本发明实施例中,用户设备在判断触及指纹与目标拍摄指纹不匹配,或者,判断触及时长没有超过预设时长,又或者,判断触及压力未超过预设压力时,无需显示目标照片,从而可以实现目标照片的安全浏览。In the embodiment of the present invention, when the user equipment judges that the touch fingerprint does not match the target fingerprint, or judges that the touch duration does not exceed the preset duration, or judges that the touch pressure does not exceed the preset pressure, the user device does not need to display the target photo, so that Achieve safe browsing of target photos.
其中,实施图4所描述的方法,即使在用户设备的内存空间存储大量照片的情况下,也可以根据位置来帮助用户快速搜索照片,从而可以提高照片的搜索效率。Wherein, implementing the method described in FIG. 4 can help the user to quickly search for photos according to the location even when a large number of photos are stored in the memory space of the user device, thereby improving the search efficiency of photos.
实施例五Embodiment five
请参阅图5,图5是本发明实施例公开的一种基于位置的照片搜索装置的结构示意图。如图5所示,该基于位置的照片搜索装置可以包括:Please refer to FIG. 5 . FIG. 5 is a schematic structural diagram of a location-based photo search device disclosed in an embodiment of the present invention. As shown in Figure 5, the location-based photo search device may include:
位置获取单元501,用于获取目标位置;a position acquiring unit 501, configured to acquire a target position;
照片搜索单元502,用于以目标位置为依据,从用户设备的内存空间存储的照片中搜索出目标照片;其中,目标照片自身携带的拍摄位置与目标位置之间的距离小于等于预设距离。The photo search unit 502 is configured to search for a target photo from photos stored in the memory space of the user device based on the target location; wherein, the distance between the shooting location carried by the target photo itself and the target location is less than or equal to a preset distance.
其中,实施图5所描述的装置,即使在用户设备的内存空间存储大量照片的情况下,也可以根据位置来帮助用户快速搜索照片,从而可以提高照片的搜索效率。Among them, the implementation of the device described in FIG. 5 can help the user to quickly search for photos according to the location even when a large number of photos are stored in the memory space of the user equipment, thereby improving the photo search efficiency.
实施例六Embodiment six
请参阅图6,图6是本发明实施例公开的另一种基于位置的照片搜索装置的结构示意图。如图6所示,该基于位置的照片搜索装置可以包括:Please refer to FIG. 6 . FIG. 6 is a schematic structural diagram of another location-based photo search device disclosed in an embodiment of the present invention. As shown in Figure 6, the location-based photo search device may include:
位置获取单元601,具体用于检测用户在用户设备的相册界面提供的位置输入栏中输入的位置,作为目标位置;The position acquisition unit 601 is specifically configured to detect the position input by the user in the position input field provided by the photo album interface of the user equipment as the target position;
照片搜索单元602,用于以目标位置为依据,从用户设备的内存空间存储的照片中搜索出目标照片;其中,目标照片自身携带的拍摄位置与目标位置之间的距离小于等于预设距离。The photo search unit 602 is configured to search for a target photo from photos stored in the memory space of the user device based on the target location; wherein, the distance between the shooting location carried by the target photo itself and the target location is less than or equal to a preset distance.
进一步地,图6所示的照片搜索装置还包括:Further, the photo search device shown in Figure 6 also includes:
第一生成单元603,用于根据目标照片,生成目标照片的缩略图;The first generating unit 603 is configured to generate a thumbnail of the target photo according to the target photo;
第一显示单元604,用于将目标照片的缩略图推送至相册界面的首页进行显示。The first display unit 604 is configured to push the thumbnail of the target photo to the home page of the album interface for display.
其中,第一生成单元603根据目标照片,生成目标照片的缩略图的具体实现方式与上述步骤203相同,本发明实施例不作限定。Wherein, the first generation unit 603 generates the thumbnail of the target photo according to the target photo, and the specific implementation manner is the same as the above step 203, which is not limited in this embodiment of the present invention.
触及参数检测单元605,用于检测用户对目标照片的缩略图的触及参数;其中,触及参数包括触及指纹、触及时长以及触及压力;The touch parameter detection unit 605 is used to detect the user's touch parameters on the thumbnail of the target photo; wherein the touch parameters include touch fingerprints, touch duration and touch pressure;
指纹获取单元606,用于根据目标照片自身携带的拍摄位置,从预设的照片拍摄位置与拍摄指纹的对应关系中,获取目标照片自身携带的拍摄位置对应的目标拍摄指纹;其中,目标拍摄指纹是用户触及用户设备的拍摄按钮拍摄目标照片时拍摄按钮所采集到的拍摄指纹;The fingerprint acquisition unit 606 is configured to acquire the target photographed fingerprint corresponding to the photographed position carried by the target photograph itself from the preset corresponding relationship between the photographed photographed position and photographed fingerprint according to the photographed position carried by the target photograph itself; wherein, the target photographed fingerprint It is the photographing fingerprint collected by the photographing button when the user touches the photographing button of the user device to take a target photo;
照片显示单元607,用于判断触及指纹是否与目标拍摄指纹相匹配,如果相匹配,判断触及时长是否超过预设时长,如果超过预设时长,判断触及压力是否超过预设压力,如果超过预设压力,显示目标照片。The photo display unit 607 is used to judge whether the touching fingerprint matches the target fingerprint, if it matches, judge whether the touching duration exceeds the preset duration, if it exceeds the preset duration, judge whether the touching pressure exceeds the preset pressure, if it exceeds the preset Pressure, display target photo.
其中,实施图6所描述的装置,即使在用户设备的内存空间存储大量照片的情况下,也可以根据位置来帮助用户快速搜索照片,从而可以提高照片的搜索效率。此外,实施图6所描述的装置,可以通过相册界面来快速搜索接近用户输入的位置的目标照片,从而可以增加相册系统附加值。Among them, the implementation of the device described in FIG. 6 can help the user to quickly search for photos according to the location even if the memory space of the user equipment stores a large number of photos, thereby improving the search efficiency of photos. In addition, implementing the device described in FIG. 6 can quickly search for target photos close to the location input by the user through the album interface, thereby increasing the added value of the album system.
实施例七Embodiment seven
请参阅图7,图7是本发明实施例公开的另一种基于位置的照片搜索装置的结构示意图。如图7所示,该基于位置的照片搜索装置可以包括:Please refer to FIG. 7 . FIG. 7 is a schematic structural diagram of another location-based photo search device disclosed in an embodiment of the present invention. As shown in Figure 7, the location-based photo search device may include:
位置获取单元701,用于获取目标位置;a position acquiring unit 701, configured to acquire a target position;
照片搜索单元702,用于以目标位置为依据,从用户设备的内存空间存储的照片中搜索出目标照片;其中,目标照片自身携带的拍摄位置与目标位置之间的距离小于等于预设距离。The photo search unit 702 is configured to search for a target photo from photos stored in the memory space of the user device based on the target location; wherein, the distance between the shooting location carried by the target photo itself and the target location is less than or equal to a preset distance.
其中,位置获取单元701包括:Wherein, the location acquisition unit 701 includes:
检测子单元7011,用于周期性的检测用户设备的位置是否发生变化,如果发生变化,计算发送变化之后的用户设备的位置与发送变化之前的用户设备的位置之间的距离;The detection subunit 7011 is configured to periodically detect whether the position of the user equipment changes, and if it changes, calculate the distance between the position of the user equipment after the transmission change and the position of the user equipment before the transmission change;
判断子单元7012,用于判断该距离是否超过指定距离,若是,将发送变化之后的用户设备的位置作为目标位置;A judging subunit 7012, configured to judge whether the distance exceeds a specified distance, and if so, use the location of the user equipment after the transmission change as the target location;
进一步地,图7所示的照片搜索装置还包括:Further, the photo search device shown in Figure 7 also includes:
第二生成单元703,用于根据目标照片,生成目标照片的缩略图;The second generating unit 703 is configured to generate a thumbnail of the target photo according to the target photo;
第二显示单元704,用于将目标照片的缩略图显示给用户。The second display unit 704 is configured to display the thumbnail of the target photo to the user.
其中,第二生成单元703根据目标照片,生成目标照片的缩略图的具体实现方式与上述步骤203相同,本发明实施例不作限定。Wherein, the second generation unit 703 generates the thumbnail of the target photo according to the target photo, and the specific implementation manner is the same as the above step 203, which is not limited in this embodiment of the present invention.
触及参数检测单元705,用于检测用户对目标照片的缩略图的触及参数;其中,触及参数包括触及指纹、触及时长以及触及压力;The touch parameter detection unit 705 is used to detect the user's touch parameters on the thumbnail of the target photo; wherein, the touch parameters include touch fingerprints, touch duration and touch pressure;
指纹获取单元706,用于根据目标照片自身携带的拍摄位置,从预设的照片拍摄位置与拍摄指纹的对应关系中,获取目标照片自身携带的拍摄位置对应的目标拍摄指纹;其中,目标拍摄指纹是用户触及用户设备的拍摄按钮拍摄目标照片时拍摄按钮所采集到的拍摄指纹;The fingerprint acquisition unit 706 is configured to acquire the target photographed fingerprint corresponding to the photographed position carried by the target photograph itself from the preset corresponding relationship between the photographed photographed position and photographed fingerprint according to the photographed position carried by the target photograph itself; wherein, the target photographed fingerprint It is the photographing fingerprint collected by the photographing button when the user touches the photographing button of the user device to take a target photo;
照片显示单元707,用于判断触及指纹是否与目标拍摄指纹相匹配,如果相匹配,判断触及时长是否超过预设时长,如果超过预设时长,判断触及压力是否超过预设压力,如果超过预设压力,显示目标照片。The photo display unit 707 is used to judge whether the touching fingerprint matches the target fingerprint, if it matches, judge whether the touching duration exceeds the preset duration, if it exceeds the preset duration, judge whether the touching pressure exceeds the preset pressure, if it exceeds the preset Pressure, display target photo.
其中,实施图7所描述的装置,即使在用户设备的内存空间存储大量照片的情况下,也可以根据位置来帮助用户快速搜索照片,从而可以提高照片的搜索效率。此外,实施图7所描述的装置,可以在用户终端的位置发生变化时快速搜索接近发生变化后的用户设备的位置的目标照片,供用户回忆,提高用户体验。Among them, the implementation of the device described in FIG. 7 can help the user quickly search for photos according to the location even if the memory space of the user equipment stores a large number of photos, thereby improving the search efficiency of photos. In addition, by implementing the device described in FIG. 7 , when the location of the user terminal changes, it is possible to quickly search for target photos close to the changed location of the user equipment, for the user to recall and improve user experience.
实施例八Embodiment eight
请参阅图8,图8是本发明实施例公开的另一种基于位置的照片搜索装置的结构示意图。如图8所示,该基于位置的照片搜索装置可以包括:Please refer to FIG. 8 . FIG. 8 is a schematic structural diagram of another location-based photo search device disclosed in an embodiment of the present invention. As shown in Figure 8, the location-based photo search device may include:
位置获取单元801,具体用于检测用户在用户设备运行的电子地图中选择的位置,作为目标位置;The position acquisition unit 801 is specifically configured to detect the position selected by the user in the electronic map running on the user equipment as the target position;
照片搜索单元802,用于以目标位置为依据,从用户设备的内存空间存储的照片中搜索出目标照片;其中,目标照片自身携带的拍摄位置与目标位置之间的距离小于等于预设距离。The photo search unit 802 is configured to search for a target photo from photos stored in the memory space of the user device based on the target location; wherein, the distance between the shooting location carried by the target photo itself and the target location is less than or equal to a preset distance.
进一步地,图8所示的照片搜索装置还包括:Further, the photo search device shown in Figure 8 also includes:
确定单元803,用于以目标照片自身携带的拍摄位置为依据,从用户设备运行的电子地图中确定出目标照片自身携带的拍摄位置的映射位置;The determining unit 803 is configured to determine the mapping position of the shooting location carried by the target photo itself from the electronic map run by the user equipment based on the shooting location carried by the target photo itself;
第三生成单元804,用于根据目标照片,生成目标照片的缩略图;A third generating unit 804, configured to generate a thumbnail of the target photo according to the target photo;
第三显示单元805,用于将目标照片的缩略图推送至目标照片自身携带的拍摄位置的映射位置进行显示。The third display unit 805 is configured to push the thumbnail of the target photo to the mapping position of the shooting location carried by the target photo itself for display.
其中,第三生成单元804根据目标照片,生成目标照片的缩略图的具体实现方式与上述步骤203相同,本发明实施例不作限定。Wherein, the third generating unit 804 generates the thumbnail of the target photo according to the target photo, and the specific implementation manner is the same as that of step 203 above, which is not limited in this embodiment of the present invention.
进一步地,图8所示的照片搜索装置还包括:Further, the photo search device shown in Figure 8 also includes:
触及参数检测单元806,用于检测用户对目标照片的缩略图的触及参数;其中,触及参数包括触及指纹、触及时长以及触及压力;The touch parameter detection unit 806 is used to detect the user's touch parameters on the thumbnail of the target photo; wherein the touch parameters include touch fingerprints, touch duration and touch pressure;
指纹获取单元807,用于根据目标照片自身携带的拍摄位置,从预设的照片拍摄位置与拍摄指纹的对应关系中,获取目标照片自身携带的拍摄位置对应的目标拍摄指纹;其中,目标拍摄指纹是用户触及用户设备的拍摄按钮拍摄目标照片时拍摄按钮所采集到的拍摄指纹;The fingerprint acquisition unit 807 is configured to obtain the target photographed fingerprint corresponding to the photographed position carried by the target photograph itself from the preset corresponding relationship between the photographed photographed position and photographed fingerprint according to the photographed position carried by the target photograph itself; wherein, the target photographed fingerprint It is the photographing fingerprint collected by the photographing button when the user touches the photographing button of the user device to take a target photo;
照片显示单元808,用于判断触及指纹是否与目标拍摄指纹相匹配,如果相匹配,判断触及时长是否超过预设时长,如果超过预设时长,判断触及压力是否超过预设压力,如果超过预设压力,显示目标照片。The photo display unit 808 is used to judge whether the touching fingerprint matches the target fingerprint, if they match, judge whether the touching duration exceeds the preset duration, if it exceeds the preset duration, judge whether the touching pressure exceeds the preset pressure, if it exceeds the preset Pressure, display target photo.
其中,实施图8所描述的装置,即使在用户设备的内存空间存储大量照片的情况下,也可以根据位置来帮助用户快速搜索照片,从而可以提高照片的搜索效率。Among them, the implementation of the device described in FIG. 8 can help the user to quickly search for photos according to the location even when a large number of photos are stored in the memory space of the user equipment, thereby improving the search efficiency of photos.
实施例九Embodiment nine
请参阅图9,图9是本发明实施例公开的一种用户设备的结构示意图。其中,图9所示的用户设备包括图5~图8任一所示的基于位置的照片搜索装置。其中,实施图9所示的用户设备,即使在用户设备的内存空间存储大量照片的情况下,也可以根据位置来帮助用户快速搜索照片,从而可以提高照片的搜索效率。Referring to FIG. 9, FIG. 9 is a schematic structural diagram of a user equipment disclosed in an embodiment of the present invention. Wherein, the user equipment shown in FIG. 9 includes the location-based photo search apparatus shown in any one of FIGS. 5 to 8 . Among them, the implementation of the user equipment shown in FIG. 9 can help the user to quickly search for photos according to the location even if the memory space of the user equipment stores a large number of photos, thereby improving the search efficiency of photos.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质包括只读存储器(Read-Only Memory,ROM)、随机存储器(Random Access Memory,RAM)、可编程只读存储器(Programmable Read-only Memory,PROM)、可擦除可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、一次可编程只读存储器(One-time Programmable Read-Only Memory,OTPROM)、电子抹除式可复写只读存储器(Electrically-Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(CompactDisc Read-Only Memory,CD-ROM)或其他光盘存储器、磁盘存储器、磁带存储器、或者能够用于携带或存储数据的计算机可读的任何其他介质。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium includes read-only Memory (Read-Only Memory, ROM), Random Access Memory (Random Access Memory, RAM), Programmable Read-Only Memory (Programmable Read-only Memory, PROM), Erasable Programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), One-time Programmable Read-Only Memory (OTPROM), Electronically Erasable Programmable Read-Only Memory (EEPROM), Compact Disc Read-Only Memory (CompactDisc Read -Only Memory, CD-ROM) or other optical disk storage, magnetic disk storage, tape storage, or any other computer-readable medium that can be used to carry or store data.
以上对本发明实施例公开的一种基于位置的照片搜索方法及装置、用户设备进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。A location-based photo search method, device, and user equipment disclosed in the embodiments of the present invention are described above in detail. In this paper, specific examples are used to illustrate the principle and implementation of the present invention. The descriptions of the above embodiments are only used To help understand the method of the present invention and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. In summary, this specification The content should not be construed as a limitation of the invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611024351.1ACN106570195A (en) | 2016-11-18 | 2016-11-18 | Photo searching method and device based on position and user equipment |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611024351.1ACN106570195A (en) | 2016-11-18 | 2016-11-18 | Photo searching method and device based on position and user equipment |
| Publication Number | Publication Date |
|---|---|
| CN106570195Atrue CN106570195A (en) | 2017-04-19 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201611024351.1APendingCN106570195A (en) | 2016-11-18 | 2016-11-18 | Photo searching method and device based on position and user equipment |
| Country | Link |
|---|---|
| CN (1) | CN106570195A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108108485A (en)* | 2018-01-09 | 2018-06-01 | 深圳传音通讯有限公司 | A kind of album creating method and terminal |
| CN111881322A (en)* | 2020-09-28 | 2020-11-03 | 成都睿沿科技有限公司 | Target searching method and device, electronic equipment and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20110025873A1 (en)* | 2009-07-29 | 2011-02-03 | Sony Corporation | Image search device, image search method, and image search program |
| CN103902730A (en)* | 2014-04-15 | 2014-07-02 | 中国科学院自动化研究所 | Thumbnail generation method and system |
| CN104102732A (en)* | 2014-07-24 | 2014-10-15 | 百度在线网络技术(北京)有限公司 | Method and device for displaying images |
| CN105320958A (en)* | 2015-05-29 | 2016-02-10 | 杨振贤 | Image identification method and system based on position information |
| CN105956185A (en)* | 2016-06-01 | 2016-09-21 | 广东小天才科技有限公司 | Application search method and system, application search client and user terminal |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20110025873A1 (en)* | 2009-07-29 | 2011-02-03 | Sony Corporation | Image search device, image search method, and image search program |
| CN103902730A (en)* | 2014-04-15 | 2014-07-02 | 中国科学院自动化研究所 | Thumbnail generation method and system |
| CN104102732A (en)* | 2014-07-24 | 2014-10-15 | 百度在线网络技术(北京)有限公司 | Method and device for displaying images |
| CN105320958A (en)* | 2015-05-29 | 2016-02-10 | 杨振贤 | Image identification method and system based on position information |
| CN105956185A (en)* | 2016-06-01 | 2016-09-21 | 广东小天才科技有限公司 | Application search method and system, application search client and user terminal |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108108485A (en)* | 2018-01-09 | 2018-06-01 | 深圳传音通讯有限公司 | A kind of album creating method and terminal |
| CN111881322A (en)* | 2020-09-28 | 2020-11-03 | 成都睿沿科技有限公司 | Target searching method and device, electronic equipment and storage medium |
| Publication | Publication Date | Title |
|---|---|---|
| RU2651240C1 (en) | Method and device for processing photos | |
| CN104461288B (en) | Method and terminal for taking pictures with cameras with different field of view | |
| CN104408428B (en) | Method and device for processing photos in same scene | |
| US10277806B2 (en) | Automatic image composition | |
| CN106560840B (en) | A kind of image information identifying processing method and device | |
| WO2016127478A1 (en) | Image processing method and device, and terminal | |
| CN105007421A (en) | Picture shooting method and mobile terminal | |
| WO2018103314A1 (en) | Photograph-capture method, apparatus, terminal, and storage medium | |
| US20160182816A1 (en) | Preventing photographs of unintended subjects | |
| CN106101540B (en) | Focus point determination method and device | |
| CN105894016B (en) | Image processing method and electronic device | |
| CN106507087A (en) | A terminal imaging method and system | |
| CN105354296B (en) | A kind of method of locating terminal and user terminal | |
| CN105956185A (en) | Application search method and system, application search client and user terminal | |
| WO2016197657A1 (en) | Photographing processing method and apparatus | |
| CN104754234A (en) | Photographing method and device | |
| CN105072348B (en) | A kind of method, apparatus and terminal of rapid focus face | |
| CN112818874B (en) | Image processing method, device, equipment and storage medium | |
| WO2015123888A1 (en) | Image zoom method and device | |
| US20170200062A1 (en) | Method of determination of stable zones within an image stream, and portable device for implementing the method | |
| CN106570195A (en) | Photo searching method and device based on position and user equipment | |
| CN105120153B (en) | A kind of image capturing method and device | |
| TW201513661A (en) | Photography device and adjusting system and adjusting method thereof | |
| CN104935815B (en) | Method, device and the camera and mobile terminal taken pictures | |
| CN110313001A (en) | Photo processing method, device and computer equipment |
| 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:20170419 | |
| RJ01 | Rejection of invention patent application after publication |