[go: up one dir, main page]

WO2017107361A1 - Method and device for determining landscape information of picture - Google Patents

Method and device for determining landscape information of picture Download PDF

Info

Publication number
WO2017107361A1
WO2017107361A1 PCT/CN2016/081262 CN2016081262W WO2017107361A1 WO 2017107361 A1 WO2017107361 A1 WO 2017107361A1 CN 2016081262 W CN2016081262 W CN 2016081262W WO 2017107361 A1 WO2017107361 A1 WO 2017107361A1
Authority
WO
WIPO (PCT)
Prior art keywords
picture
information
landscape
determining
database
Prior art date
Application number
PCT/CN2016/081262
Other languages
French (fr)
Chinese (zh)
Inventor
吴中圣
Original Assignee
北京金山安全软件有限公司
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 北京金山安全软件有限公司 filed Critical 北京金山安全软件有限公司
Publication of WO2017107361A1 publication Critical patent/WO2017107361A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/583Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content

Definitions

  • the present invention relates to the field of computer technology, and in particular, to a method and an apparatus for determining picture landscape information.
  • the user takes a picture and uploads it to the server.
  • the uploaded picture usually includes the EXIF information of the picture, and the server can obtain the shooting location information of the picture from the EXIF information of the picture, and the landscape information of the picture can be determined by the shooting position information.
  • the user's preference for uploading the picture can be determined, thereby pushing the user with information that matches his or her preference.
  • the landscape information captured by the image determined by this method is not accurate.
  • the location information of the captured image is A, and there are both an X office and a Y park at A, and it is not certain that the landscape information of the image is X.
  • the office building is still Y Park.
  • An object of the embodiments of the present invention is to provide a method and a device for determining picture landscape information, so as to improve the accuracy of determining landscape information for picture shooting.
  • an embodiment of the present invention discloses a method for determining picture landscape information, which is applied to a server, and the method includes:
  • the landscape information of the first target picture is determined as the landscape information of the first picture.
  • the obtaining the location information of the first picture according to the description information of the picture may include:
  • the searching for the location information in the database corresponds to the location information of the first picture.
  • the picture in which the shooting position information is in the first search area is used as the searched picture corresponding to the shooting position information of the first picture.
  • the searching for a picture corresponding to the shooting location information of the first picture in the database may include:
  • the determining, in the found picture, the first target picture that is the most similar to the first picture may include:
  • the database further includes the view attribute information of the picture, where the method may further include:
  • the landscape attribute information of the first target picture is determined as landscape attribute information of the first picture, and the first picture is stored in the database for the landscape attribute.
  • the database further includes user information for uploading the image, where the method may further include:
  • the embodiment of the invention further discloses a device for determining picture landscape information, which is applied to a server, and the device include:
  • Obtaining a module configured to obtain shooting location information of the first picture according to the description information of the picture;
  • a first search module configured to search, in a database, a picture corresponding to the shooting position information of the first picture, where the database stores a picture, a shooting location information of the picture, and the picture Landscape information;
  • a first determining module configured to determine, in the found picture, a first target picture that is the most similar to the first picture
  • a second determining module configured to determine landscape information of the first target picture as landscape information of the first picture.
  • the obtaining module is specifically configured to: read the exchangeable image file information of the first picture; and extract, from the exchangeable image file information of the first picture, a shooting position of the first picture information.
  • the first searching module may be configured to determine, according to the shooting location information of the first picture and the preset first threshold, a first search area corresponding to the shooting location information;
  • the picture in the first search area is used as a picture corresponding to the captured position information of the first picture.
  • the first searching module may include:
  • a first determining submodule configured to determine, according to the shooting location information of the first picture, a geographic location corresponding to the shooting location information on a map
  • a second determining submodule configured to determine, according to the geographic location and a preset second threshold, a second search area corresponding to the geographic location
  • An identification submodule configured to identify at least one landscape information included in the second search area on the map
  • a search sub-module configured to search, in the database, a picture corresponding to at least one landscape information included in the second search area according to landscape information of each picture in the database, and use the found picture as a picture corresponding to the shooting position information of the first picture.
  • the first determining module is specifically configured to determine, for the first picture and the found picture, each feature value in the picture, and construct the picture according to each feature value. a set of feature values; determining, according to the set of feature values of the first picture and the set of feature values of each of the found pictures, a similarity between the first picture and each of the found pictures, and determining The first target picture with the highest similarity of the first picture.
  • the database further includes the view attribute information of the picture, where the device may further include:
  • a third determining module configured to determine landscape attribute information of the first target picture as landscape attribute information of the first picture
  • a storage module configured to store the first picture in the database for the landscape attribute.
  • the database further includes user information for uploading the image
  • the device may further include:
  • a fourth determining module configured to determine, according to the shooting position information of the first picture and a preset third threshold, a third search area corresponding to the shooting position information
  • a second searching module configured to search, in the database, a second group of pictures in which the shooting location information is in the third search area;
  • a fifth determining module configured to determine, in the second picture group that is found, a second target picture that corresponds to the landscape attribute information of the first picture
  • a pushing module configured to push a second user that uploads the second target picture to a first user that uploads the first picture.
  • an embodiment of the present invention further discloses a device for determining picture landscape information, including: one or more processors; a memory; one or more modules, wherein the one or more modules are stored in the memory. And when executed by the one or more processors: performing the method for determining picture landscape information according to any of the above embodiments of the present invention.
  • an embodiment of the present invention further discloses an application program for performing a method for determining picture landscape information according to any of the above embodiments of the present invention at runtime.
  • an embodiment of the present invention further discloses a storage medium, wherein the storage medium stores one or more modules, when the one or more modules are executed by a determining device of a picture landscape information. And determining means for determining the picture landscape information according to any one of the above embodiments of the present invention.
  • the first picture of the highest similarity with the first picture is determined in the searched picture by searching the database for the picture corresponding to the shooting position information of the first picture. Determining the landscape information of the first target picture as the landscape information of the first picture improves the accuracy of determining the landscape information of the first picture.
  • FIG. 1 is a first schematic flowchart of a method for determining picture landscape information according to an embodiment of the present invention
  • FIG. 2 is a second schematic flowchart of a method for determining picture landscape information according to an embodiment of the present invention
  • FIG. 3 is a third schematic flowchart of a method for determining picture landscape information according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a first process of determining a picture landscape information according to an embodiment of the present invention
  • FIG. 5 is a second schematic flowchart of a device for determining picture landscape information according to an embodiment of the present disclosure
  • FIG. 6 is a third schematic flowchart of a device for determining picture landscape information according to an embodiment of the present invention.
  • an embodiment of the present invention provides a method and an apparatus for determining picture landscape information, which are applied to a server.
  • a method for determining picture landscape information provided by an embodiment of the present invention is first introduced.
  • FIG. 1 is a first schematic flowchart of a method for determining picture landscape information according to an embodiment of the present invention, which may include:
  • S101 Obtain shooting position information of the first picture according to the description information of the picture.
  • S102 Search for a picture corresponding to the shooting position information of the first picture in the database.
  • the database stores a picture, shooting location information of the picture, and landscape information of the picture.
  • S103 Determine, in the found picture, a first target picture that has the highest similarity with the first picture.
  • S104 Determine landscape information of the first target picture as landscape information of the first picture.
  • the exchangeable image file information of the first picture may be read; and extracting the exchangeable image file information of the first picture Shooting position information of the first picture.
  • the exchangeable image file information is EXIF information
  • the EXIF information of the picture includes the shooting position information of the picture.
  • the user when it uploads a picture, it usually carries description information about the picture, and the description information may include the name, model number, and shooting position information of the electronic device that takes the picture.
  • the shooting position information of the first picture can also be obtained from the description information.
  • determining a picture corresponding to the shooting location information of the first picture includes:
  • a first solution determining, according to the shooting position information of the first picture and a preset first threshold, a first search area corresponding to the shooting position information; and taking a picture of the shooting position information in the search area as The found picture corresponding to the shooting position information of the first picture.
  • a second solution determining, according to the shooting location information of the first picture, a geographic location corresponding to the shooting location information on the map; determining, according to the geographic location and a preset second threshold, the geographical location a second search area; identifying at least one landscape information included in the second search area on the map; searching for landscape information and the first in the database according to landscape information of each picture in the database Searching for a picture corresponding to at least one piece of landscape information included in the area, and using the found picture as a picture corresponding to the shooting position information of the first picture.
  • Applying the first scheme according to the shooting position information A of the first picture, determining the geographical position corresponding to A on the map (assumed to be A1), according to the geographic location A1 and the preset first threshold (assumed to be 1 km), The area within 1 km from A1 is determined as the first search area corresponding to A1.
  • the picture in which the shooting position information is in the first search area is used as the searched picture corresponding to the shooting position information of the first picture.
  • the found picture is picture 1, picture 2, and picture 3
  • a feature value set according to the first picture and a feature value set of each of the searched pictures Determining the first picture and each Comparing the similarities of the found pictures, and determining a first target picture with the highest similarity to the first picture.
  • determining the similarity of two pictures according to the feature value set of the picture may be confirmed according to the ratio of the number of intersections of the feature value sets of the two pictures to the number of the unions.
  • the first picture includes trees, rivers, flowers and trees, the characteristic value of the trees is 1, the characteristic value of the river is 2, and the characteristic value of the flowers is 3;
  • the picture 1 includes the characteristics of the office building, the parking lot, and the office building.
  • the value is 4, the characteristic value of the parking lot is 5;
  • the picture 2 includes trees, rivers, flowers, blue sky, the characteristic value of the tree is 1, the characteristic value of the river is 2, the characteristic value of the flower is 3, and the characteristic value of the blue sky It is 6;
  • the picture 3 includes the sculpture and the square, the characteristic value of the sculpture is 7, and the characteristic value of the square is 8.
  • the feature value set of the first picture is ⁇ 1, 2, 3 ⁇ ; the feature value set of picture 1 is ⁇ 4, 5 ⁇ ; The set of feature values is ⁇ 1, 2, 3, 6 ⁇ ; the set of feature values of picture 3 is ⁇ 7, 8 ⁇ .
  • the feature values in the feature value set of picture 1 and picture 3 are completely different from the feature values in the feature value set of the first picture, the number of intersections is 0, and the similarity is 0.
  • the three feature values in the feature value set of the graph 2 are the same as the feature values in the feature value set of the first picture, the number of intersections is 3, the number of unions is 4, and the similarity can be determined as 75. %. Therefore, it is determined that the picture 2 is the first target picture having the highest similarity to the first picture.
  • the landscape information X Park of Picture 2 is determined as the landscape information of the first picture.
  • the landscape information of a target picture is determined as the landscape information of the first picture, which improves the accuracy of determining the landscape information of the first picture.
  • FIG. 2 is a second schematic flowchart of a method for determining picture landscape information according to an embodiment of the present invention.
  • the embodiment shown in FIG. 2 is based on the embodiment shown in FIG. 1, and the database further stores the The landscape attribute information of the picture, after S104, add the following steps:
  • S105 Determine landscape attribute information of the first target picture as landscape attribute information of the first picture.
  • S106 Store the first picture for the landscape attribute in the database.
  • the database may also store landscape attribute information of the picture, such as natural scenery, human landscape, and the like.
  • the landscape information X park of the picture 2 is determined as the landscape information of the first picture.
  • the landscape attribute information of the picture 2 stored in the database is natural scenery, and the landscape attribute information of the first picture is natural scenery.
  • the pictures in the database can be classified according to the landscape attribute information of the pictures for easy searching.
  • the first picture can be stored in the category of natural scenery.
  • the database also stores landscape attribute information of the picture, and according to the figure
  • the landscape attribute information of the slice is used to classify and store the picture
  • the landscape attribute information of the first target picture is determined as the landscape attribute information of the first picture, and is saved to the category corresponding to the landscape attribute information, so as to facilitate the classification and searching of the picture.
  • FIG. 3 is a third schematic flowchart of a method for determining picture landscape information according to an embodiment of the present invention.
  • the embodiment shown in FIG. 3 is based on the embodiment shown in FIG. 2, and an uploading station is also stored in the database.
  • For the user information of the picture add the following steps after S106:
  • S107 Determine, according to the shooting position information of the first picture and a preset third threshold, a third search area corresponding to the shooting position information;
  • S108 Search, in the database, a second group of pictures in which the shooting location information is in the third search area;
  • S109 Determine, in the second picture group that is found, a second target picture corresponding to the landscape attribute information of the first picture;
  • S110 Push a second user that uploads the second target picture to a first user that uploads the first picture.
  • the determined landscape information of the first picture is X Park
  • the landscape attribute information of the first picture is natural scenery.
  • the method for determining the search area corresponding to the shooting position information according to the shooting position information of the picture and the preset threshold value, and searching for the picture of the shooting position information in the search area in the database has been performed in the embodiment shown in FIG. The description will not be repeated here.
  • the database further stores information of the user who uploaded the picture, and according to the uploaded picture 2, the picture 4 and the information of the user of the first picture stored in the database, the user who uploads the picture 2 and the uploaded picture The user of 4 pushes the user who uploaded the first picture.
  • the user who has taken the second target picture is pushed to the user who captured the first picture, wherein the second target picture is the same as the landscape attribute information of the first picture, and the first picture
  • the shooting of pictures with similar location information is beneficial to users to find other users with similar hobbies and similar experiences, providing users with a platform for making friends and improving the user experience.
  • the embodiment of the present invention further provides a device for determining picture landscape information.
  • FIG. 4 is a schematic structural diagram of a first method for determining a picture landscape information according to an embodiment of the present invention, which may include:
  • the obtaining module 201 is configured to obtain shooting location information of the first picture according to the description information of the picture;
  • the obtaining module 201 is specifically configured to read the exchangeable image file information of the first picture, and extract the shooting position of the first picture from the exchangeable image file information of the first picture. information.
  • the first search module 202 is configured to search, in the database, a picture corresponding to the shooting position information of the first picture, where the database stores the picture, the shooting location information of the picture, and the picture.
  • Landscape information
  • the first search module 202 is specifically configured to determine, according to the shooting location information of the first picture and the preset first threshold, a first search area corresponding to the shooting location information; The picture in which the shooting position information is in the first search area is used as the searched picture corresponding to the shooting position information of the first picture.
  • the first search module 202 may include: a first determining submodule, a second determining submodule, an identifying submodule, and a searching submodule (not shown), where
  • a first determining submodule configured to determine, according to the shooting location information of the first picture, a geographic location corresponding to the shooting location information on a map
  • a second determining submodule configured to determine, according to the geographic location and a preset second threshold, a second search area corresponding to the geographic location
  • An identification submodule configured to identify at least one landscape information included in the second search area on the map
  • a search sub-module configured to search, in the database, a picture corresponding to at least one landscape information included in the second search area according to landscape information of each picture in the database, and use the found picture as a picture corresponding to the shooting position information of the first picture.
  • the first determining module 203 is configured to determine, in the found picture, a first target picture that has the highest similarity with the first picture;
  • the first determining module 203 may be specifically configured to determine, for the first picture and the found picture, each feature value in the picture, and construct the picture according to each feature value. a set of feature values; determining, according to the set of feature values of the first picture and the set of feature values of each of the found pictures, a similarity between the first picture and each of the found pictures, and determining The first target picture with the highest similarity of the first picture.
  • the second determining module 204 is configured to determine landscape information of the first target picture as landscape information of the first picture.
  • FIG. 5 is a second schematic structural diagram of an apparatus for determining picture landscape information according to an embodiment of the present invention.
  • the embodiment shown in FIG. 5 is based on the embodiment shown in FIG. 4, and the database further stores the The landscape attribute information of the picture, the device may further include:
  • a third determining module 205 configured to determine landscape attribute information of the first target picture as landscape attribute information of the first picture
  • the storage module 206 is configured to store the first picture in the database for the landscape attribute.
  • the database also stores landscape attribute information of the picture, and classifies the picture according to the landscape attribute information of the picture, and determines the landscape attribute information of the first target picture as the landscape of the first picture.
  • the attribute information is saved under the category corresponding to the landscape attribute information, which facilitates the classification and searching of the picture.
  • FIG. 6 is a third schematic structural diagram of a device for determining picture landscape information according to an embodiment of the present invention.
  • the embodiment shown in FIG. 6 is based on the embodiment shown in FIG. 5, and an uploading station is also stored in the database.
  • the device may further include:
  • the fourth determining module 207 is configured to determine, according to the shooting position information of the first picture and the preset third threshold, a third search area corresponding to the shooting position information;
  • a second searching module 208 configured to search, in the database, a second group of pictures in which the shooting location information is in the third search area;
  • a fifth determining module 209 configured to determine, in the second picture group that is found, a second target picture that corresponds to the landscape attribute information of the first picture
  • the pushing module 210 is configured to push a second user that uploads the second target picture to the first user that uploads the first picture.
  • the user who has taken the second target picture is pushed to the user who captured the first picture, wherein the second target picture is the same as the landscape attribute information of the first picture, and is the same as the first picture.
  • the shooting of pictures with similar location information is beneficial to users to find other users with similar hobbies and similar experiences, providing users with a platform for making friends and improving the user experience.
  • an embodiment of the present invention further discloses a device for determining picture landscape information, including: one or more processors; a memory; one or more modules, wherein the one or more modules are stored in the In the memory, when executed by the one or more processors: a method of determining picture landscape information according to any of the above-described embodiments of the present invention.
  • an embodiment of the present invention further discloses an application program for performing a method for determining picture landscape information according to any of the above embodiments of the present invention at runtime.
  • an embodiment of the present invention further discloses a storage medium, wherein the storage medium stores one or more modules, and when the one or more modules are determined by a picture landscape information determining device When executed, the determining device for determining the picture landscape information: the method for determining the picture landscape information according to any of the above embodiments of the present invention.
  • a "computer-readable medium” can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or device, or in conjunction with the instruction execution system, apparatus, or device.
  • computer readable media include the following: electrical connections (electronic devices) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM).
  • the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may, for example, be The program is electronically obtained by optically scanning paper or other media, followed by editing, interpretation or, if necessary, processing in other suitable manner, and then storing it in computer memory.
  • portions of the invention may be implemented in hardware, software, firmware or a combination thereof.
  • multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
  • a suitable instruction execution system For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: having logic gates for implementing logic functions on data signals. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
  • each functional unit in each embodiment of the present invention may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated modules, if implemented in the form of software functional modules and sold or used as stand-alone products, may also be stored in a computer readable storage medium.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Processing Or Creating Images (AREA)

Abstract

A method and device for determining landscape information of a picture. The method comprises: obtaining photographing position information of a first picture according to description information of pictures (S101); searching a database for pictures with photographing position information corresponding to the photographing position information of the first picture (S102); determining, from the found pictures, a first target picture with the highest similarity to the first picture (S103); and determining landscape information of the first target picture to be landscape information of the first picture (S104). By searching a database for pictures with photographing position information corresponding to that of the first picture, determining, from the found pictures, a first target picture with the highest similarity to the first picture, and determining landscape information of the first target picture to be landscape information of the first picture, the solution improves the accuracy of determining the landscape information of the first picture.

Description

图片景观信息的确定方法及装置Method and device for determining picture landscape information
相关申请的交叉引用Cross-reference to related applications
本申请要求北京金山安全软件有限公司于2015年12月25日提交的、发明名称为“一种图片景观信息的确定方法及装置”的、中国专利申请号“201510997558.6”的优先权。The present application claims the priority of the Chinese patent application No. 201510997558.6, which is filed on December 25, 2015 by the Beijing Jinshan Security Software Co., Ltd., entitled "A Method and Apparatus for Determining Picture Landscape Information".
技术领域Technical field
本发明涉及计算机技术领域,特别涉及一种图片景观信息的确定方法及装置。The present invention relates to the field of computer technology, and in particular, to a method and an apparatus for determining picture landscape information.
背景技术Background technique
目前,用户拍摄图片上传到服务器,上传的图片中通常包括图片的EXIF信息,服务器从图片的EXIF信息中可以获取图片的拍摄位置信息,通过该拍摄位置信息可以确定该图片拍摄的景观信息。通过确定图片拍摄的景观信息,可以确定上传图片的用户的喜好,从而向该用户推送与其喜好相符的信息。At present, the user takes a picture and uploads it to the server. The uploaded picture usually includes the EXIF information of the picture, and the server can obtain the shooting location information of the picture from the EXIF information of the picture, and the landscape information of the picture can be determined by the shooting position information. By determining the landscape information captured by the picture, the user's preference for uploading the picture can be determined, thereby pushing the user with information that matches his or her preference.
但是应用这种方式确定的图片拍摄的景观信息并不准确,比如获取图片的拍摄位置信息为A,在A处既有X写字楼,又有Y公园,则不能确定该图片拍摄的景观信息是X写字楼还是Y公园。However, the landscape information captured by the image determined by this method is not accurate. For example, the location information of the captured image is A, and there are both an X office and a Y park at A, and it is not certain that the landscape information of the image is X. The office building is still Y Park.
发明内容Summary of the invention
本发明实施例的目的在于提供一种图片景观信息的确定方法及装置,以提高确定图片拍摄的景观信息的准确性。An object of the embodiments of the present invention is to provide a method and a device for determining picture landscape information, so as to improve the accuracy of determining landscape information for picture shooting.
为达到上述目的,本发明实施例公开了一种图片景观信息的确定方法,应用于服务器,所述方法包括:In order to achieve the above object, an embodiment of the present invention discloses a method for determining picture landscape information, which is applied to a server, and the method includes:
根据图片的描述信息,获得第一图片的拍摄位置信息;Obtaining shooting position information of the first picture according to the description information of the picture;
在数据库中查找拍摄位置信息与所述第一图片的拍摄位置信息对应的图片,其中,所述数据库中存储有图片、所述图片的拍摄位置信息及所述图片的景观信息;Searching, in the database, a picture corresponding to the shooting position information of the first picture, wherein the database stores a picture, shooting position information of the picture, and landscape information of the picture;
在查找到的图片中确定与所述第一图片相似度最高的第一目标图片;Determining, in the found picture, a first target picture having the highest similarity with the first picture;
将所述第一目标图片的景观信息确定为所述第一图片的景观信息。The landscape information of the first target picture is determined as the landscape information of the first picture.
可选的,所述根据图片的描述信息,获得第一图片的拍摄位置信息,可以包括:Optionally, the obtaining the location information of the first picture according to the description information of the picture may include:
读取所述第一图片的可交换图像文件信息;Reading the exchangeable image file information of the first picture;
从所述第一图片的可交换图像文件信息中,提取所述第一图片的拍摄位置信息。Extracting shooting position information of the first picture from the exchangeable image file information of the first picture.
可选的,所述在数据库中查找拍摄位置信息与所述第一图片的拍摄位置信息对应 的图片,可以包括:Optionally, the searching for the location information in the database corresponds to the location information of the first picture. Pictures that can include:
根据所述第一图片的拍摄位置信息及预设的第一阈值,确定所述拍摄位置信息对应的第一查找区域;Determining, according to the shooting location information of the first picture and the preset first threshold, a first search area corresponding to the shooting location information;
将拍摄位置信息在所述第一查找区域内的图片,作为查找到的与所述第一图片的拍摄位置信息对应的图片。The picture in which the shooting position information is in the first search area is used as the searched picture corresponding to the shooting position information of the first picture.
可选的,所述在数据库中查找拍摄位置信息与所述第一图片的拍摄位置信息对应的图片,可以包括:Optionally, the searching for a picture corresponding to the shooting location information of the first picture in the database may include:
根据所述第一图片的拍摄位置信息,确定所述拍摄位置信息在地图上对应的地理位置;Determining, according to the shooting location information of the first picture, a geographic location corresponding to the shooting location information on the map;
根据所述地理位置及预设的第二阈值,确定所述地理位置对应的第二查找区域;Determining, according to the geographic location and a preset second threshold, a second search area corresponding to the geographic location;
在所述地图上识别所述第二查找区域内包含的至少一个景观信息;Identifying at least one landscape information included in the second search area on the map;
根据所述数据库中每个图片的景观信息,在所述数据库中查找景观信息与所述第二查找区域内包含的至少一个景观信息对应的图片,将查找到的图片作为与所述第一图片的拍摄位置信息对应的图片。And searching, according to the landscape information of each picture in the database, a picture corresponding to the at least one landscape information included in the second search area in the database, and using the found picture as the first picture The location of the corresponding location information.
可选的,所述在查找到的图片中确定与所述第一图片相似度最高的第一目标图片,可以包括:Optionally, the determining, in the found picture, the first target picture that is the most similar to the first picture may include:
针对所述第一图片和所述查找到的图片,确定图片中的每个特征值,根据所述每个特征值构建所述图片的特征值集合;Determining, for the first picture and the searched picture, each feature value in the picture, and constructing a feature value set of the picture according to each feature value;
根据所述第一图片的特征值集合和每个所述查找到的图片的特征值集合,确定所述第一图片与每个所述查找到的图片的相似度,并确定与所述第一图片相似度最高的第一目标图片。Determining, according to the feature value set of the first picture and the feature value set of each of the searched pictures, a similarity between the first picture and each of the found pictures, and determining the first The first target image with the highest picture similarity.
可选的,所述数据库中还存储有所述图片的景观属性信息,所述方法还可以包括:Optionally, the database further includes the view attribute information of the picture, where the method may further include:
将所述第一目标图片的景观属性信息确定为所述第一图片的景观属性信息,并在所述数据库中针对所述景观属性存储所述第一图片。The landscape attribute information of the first target picture is determined as landscape attribute information of the first picture, and the first picture is stored in the database for the landscape attribute.
可选的,所述数据库中还存储有上传所述图片的用户信息,所述方法还可以包括:Optionally, the database further includes user information for uploading the image, where the method may further include:
根据所述第一图片的拍摄位置信息及预设的第三阈值,确定所述拍摄位置信息对应的第三查找区域;Determining, according to the shooting position information of the first picture and the preset third threshold, a third search area corresponding to the shooting position information;
在所述数据库中查找拍摄位置信息在所述第三查找区域内的第二图片组;Searching, in the database, a second group of pictures in which the shooting location information is in the third search area;
在查找到的第二图片组中,确定与所述第一图片的景观属性信息对应的第二目标图片;Determining, in the found second picture group, a second target picture corresponding to the landscape attribute information of the first picture;
将上传所述第二目标图片的第二用户推送给上传所述第一图片的第一用户。Pushing the second user who uploaded the second target picture to the first user who uploaded the first picture.
本发明实施例还公开了一种图片景观信息的确定装置,应用于服务器,所述装置 包括:The embodiment of the invention further discloses a device for determining picture landscape information, which is applied to a server, and the device include:
获得模块,用于根据图片的描述信息,获得第一图片的拍摄位置信息;Obtaining a module, configured to obtain shooting location information of the first picture according to the description information of the picture;
第一查找模块,用于在数据库中查找拍摄位置信息与所述第一图片的拍摄位置信息对应的图片,其中,所述数据库中存储有图片、所述图片的拍摄位置信息及所述图片的景观信息;a first search module, configured to search, in a database, a picture corresponding to the shooting position information of the first picture, where the database stores a picture, a shooting location information of the picture, and the picture Landscape information;
第一确定模块,用于在查找到的图片中确定与所述第一图片相似度最高的第一目标图片;a first determining module, configured to determine, in the found picture, a first target picture that is the most similar to the first picture;
第二确定模块,用于将所述第一目标图片的景观信息确定为所述第一图片的景观信息。a second determining module, configured to determine landscape information of the first target picture as landscape information of the first picture.
可选的,所述获得模块,具体可以用于读取所述第一图片的可交换图像文件信息;从所述第一图片的可交换图像文件信息中,提取所述第一图片的拍摄位置信息。Optionally, the obtaining module is specifically configured to: read the exchangeable image file information of the first picture; and extract, from the exchangeable image file information of the first picture, a shooting position of the first picture information.
可选的,所述第一查找模块,具体可以用于根据所述第一图片的拍摄位置信息及预设的第一阈值,确定所述拍摄位置信息对应的第一查找区域;将拍摄位置信息在所述第一查找区域内的图片,作为查找到的与所述第一图片的拍摄位置信息对应的图片。Optionally, the first searching module may be configured to determine, according to the shooting location information of the first picture and the preset first threshold, a first search area corresponding to the shooting location information; The picture in the first search area is used as a picture corresponding to the captured position information of the first picture.
可选的,所述第一查找模块,可以包括:Optionally, the first searching module may include:
第一确定子模块,用于根据所述第一图片的拍摄位置信息,确定所述拍摄位置信息在地图上对应的地理位置;a first determining submodule, configured to determine, according to the shooting location information of the first picture, a geographic location corresponding to the shooting location information on a map;
第二确定子模块,用于根据所述地理位置及预设的第二阈值,确定所述地理位置对应的第二查找区域;a second determining submodule, configured to determine, according to the geographic location and a preset second threshold, a second search area corresponding to the geographic location;
识别子模块,用于在所述地图上识别所述第二查找区域内包含的至少一个景观信息;An identification submodule, configured to identify at least one landscape information included in the second search area on the map;
查找子模块,用于根据所述数据库中每个图片的景观信息,在所述数据库中查找景观信息与所述第二查找区域内包含的至少一个景观信息对应的图片,将查找到的图片作为与所述第一图片的拍摄位置信息对应的图片。a search sub-module, configured to search, in the database, a picture corresponding to at least one landscape information included in the second search area according to landscape information of each picture in the database, and use the found picture as a picture corresponding to the shooting position information of the first picture.
可选的,所述第一确定模块,具体可以用于针对所述第一图片和所述查找到的图片,确定图片中的每个特征值,根据所述每个特征值构建所述图片的特征值集合;根据所述第一图片的特征值集合和每个所述查找到的图片的特征值集合,确定所述第一图片与每个所述查找到的图片的相似度,并确定与所述第一图片相似度最高的第一目标图片。Optionally, the first determining module is specifically configured to determine, for the first picture and the found picture, each feature value in the picture, and construct the picture according to each feature value. a set of feature values; determining, according to the set of feature values of the first picture and the set of feature values of each of the found pictures, a similarity between the first picture and each of the found pictures, and determining The first target picture with the highest similarity of the first picture.
可选的,所述数据库中还存储有所述图片的景观属性信息,所述装置还可以包括:Optionally, the database further includes the view attribute information of the picture, where the device may further include:
第三确定模块,用于将所述第一目标图片的景观属性信息确定为所述第一图片的景观属性信息; a third determining module, configured to determine landscape attribute information of the first target picture as landscape attribute information of the first picture;
存储模块,用于在所述数据库中针对所述景观属性存储所述第一图片。And a storage module, configured to store the first picture in the database for the landscape attribute.
可选的,所述数据库中还存储有上传所述图片的用户信息,所述装置还可以包括:Optionally, the database further includes user information for uploading the image, and the device may further include:
第四确定模块,用于根据所述第一图片的拍摄位置信息及预设的第三阈值,确定所述拍摄位置信息对应的第三查找区域;a fourth determining module, configured to determine, according to the shooting position information of the first picture and a preset third threshold, a third search area corresponding to the shooting position information;
第二查找模块,用于在所述数据库中查找拍摄位置信息在所述第三查找区域内的第二图片组;a second searching module, configured to search, in the database, a second group of pictures in which the shooting location information is in the third search area;
第五确定模块,用于在查找到的第二图片组中,确定与所述第一图片的景观属性信息对应的第二目标图片;a fifth determining module, configured to determine, in the second picture group that is found, a second target picture that corresponds to the landscape attribute information of the first picture;
推送模块,用于将上传所述第二目标图片的第二用户推送给上传所述第一图片的第一用户。a pushing module, configured to push a second user that uploads the second target picture to a first user that uploads the first picture.
为达到上述目的,本发明实施例还公开了一种图片景观信息的确定装置,包括:一个或者多个处理器;存储器;一个或者多个模块,所述一个或者多个模块存储在所述存储器中,当被所述一个或者多个处理器执行时:执行本发明上述任一项实施例所述的图片景观信息的确定方法。In order to achieve the above object, an embodiment of the present invention further discloses a device for determining picture landscape information, including: one or more processors; a memory; one or more modules, wherein the one or more modules are stored in the memory. And when executed by the one or more processors: performing the method for determining picture landscape information according to any of the above embodiments of the present invention.
为达到上述目的,本发明实施例还公开了一种应用程序,用于在运行时执行本发明上述任一项实施例所述的图片景观信息的确定方法。In order to achieve the above object, an embodiment of the present invention further discloses an application program for performing a method for determining picture landscape information according to any of the above embodiments of the present invention at runtime.
为达到上述目的,本发明实施例还公开了一种存储介质,其特征在于,所述存储介质存储有一个或者多个模块,当所述一个或者多个模块被一个图片景观信息的确定装置执行时,使得所述图片景观信息的确定装置:执行本发明上述任一项实施例所述的图片景观信息的确定方法。In order to achieve the above object, an embodiment of the present invention further discloses a storage medium, wherein the storage medium stores one or more modules, when the one or more modules are executed by a determining device of a picture landscape information. And determining means for determining the picture landscape information according to any one of the above embodiments of the present invention.
由上述技术方案可见,应用本发明实施例,通过在数据库中查找与第一图片的拍摄位置信息对应的图片,进而在查找到的图片中确定与第一图片相似度最高的第一目标图片,将第一目标图片的景观信息确定为第一图片的景观信息,提高了确定第一图片拍摄的景观信息的准确性。It can be seen that, by using the foregoing technical solution, the first picture of the highest similarity with the first picture is determined in the searched picture by searching the database for the picture corresponding to the shooting position information of the first picture. Determining the landscape information of the first target picture as the landscape information of the first picture improves the accuracy of determining the landscape information of the first picture.
当然,实施本发明的任一产品或方法必不一定需要同时达到以上所述的所有优点。Of course, any product or method embodying the present invention necessarily does not necessarily require all of the advantages described above to be achieved at the same time.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图1为本发明实施例提供的图片景观信息的确定方法的第一种流程示意图; 1 is a first schematic flowchart of a method for determining picture landscape information according to an embodiment of the present invention;
图2为本发明实施例提供的图片景观信息的确定方法的第二种流程示意图;2 is a second schematic flowchart of a method for determining picture landscape information according to an embodiment of the present invention;
图3为本发明实施例提供的图片景观信息的确定方法的第三种流程示意图;3 is a third schematic flowchart of a method for determining picture landscape information according to an embodiment of the present invention;
图4为本发明实施例提供的图片景观信息的确定装置的第一种流程示意图;4 is a schematic diagram of a first process of determining a picture landscape information according to an embodiment of the present invention;
图5为本发明实施例提供的图片景观信息的确定装置的第二种流程示意图;FIG. 5 is a second schematic flowchart of a device for determining picture landscape information according to an embodiment of the present disclosure;
图6为本发明实施例提供的图片景观信息的确定装置的第三种流程示意图。FIG. 6 is a third schematic flowchart of a device for determining picture landscape information according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
为了解决现有技术问题,本发明实施例提供了一种图片景观信息的确定方法及装置,应用于服务器。下面首先对本发明实施例所提供的一种图片景观信息的确定方法进行介绍。In order to solve the prior art problem, an embodiment of the present invention provides a method and an apparatus for determining picture landscape information, which are applied to a server. A method for determining picture landscape information provided by an embodiment of the present invention is first introduced.
图1为本发明实施例提供的图片景观信息的确定方法的第一种流程示意图,可以包括:FIG. 1 is a first schematic flowchart of a method for determining picture landscape information according to an embodiment of the present invention, which may include:
S101:根据图片的描述信息,获得第一图片的拍摄位置信息。S101: Obtain shooting position information of the first picture according to the description information of the picture.
S102:在数据库中查找拍摄位置信息与所述第一图片的拍摄位置信息对应的图片。其中,所述数据库中存储有图片、所述图片的拍摄位置信息及所述图片的景观信息。S102: Search for a picture corresponding to the shooting position information of the first picture in the database. The database stores a picture, shooting location information of the picture, and landscape information of the picture.
S103:在查找到的图片中确定与所述第一图片相似度最高的第一目标图片。S103: Determine, in the found picture, a first target picture that has the highest similarity with the first picture.
S104:将所述第一目标图片的景观信息确定为所述第一图片的景观信息。S104: Determine landscape information of the first target picture as landscape information of the first picture.
在实际应用中,根据图片的描述信息,获得第一图片的拍摄位置信息,可以读取所述第一图片的可交换图像文件信息;从所述第一图片的可交换图像文件信息中,提取所述第一图片的拍摄位置信息。In an actual application, according to the description information of the picture, obtaining the shooting location information of the first picture, the exchangeable image file information of the first picture may be read; and extracting the exchangeable image file information of the first picture Shooting position information of the first picture.
可交换图像文件信息即为EXIF信息,图片的EXIF信息中包括了图片的拍摄位置信息,通过读取第一图片的EXIF信息,可以获得第一图片的拍摄位置信息。The exchangeable image file information is EXIF information, and the EXIF information of the picture includes the shooting position information of the picture. By reading the EXIF information of the first picture, the shooting position information of the first picture can be obtained.
另外,用户上传图片时,通常携带有对图片的描述信息,该描述信息可以包括拍摄图片的电子设备的名称、型号和图片的拍摄位置信息等。也可以从该描述信息中获得第一图片的拍摄位置信息。In addition, when the user uploads a picture, it usually carries description information about the picture, and the description information may include the name, model number, and shooting position information of the electronic device that takes the picture. The shooting position information of the first picture can also be obtained from the description information.
假设获得的第一图片的拍摄位置信息为A,在数据库中查找拍摄位置信息与A对应的图片,其中所述数据库中存储有图片、所述图片的拍摄位置信息及所述图片的景观信息。具体的,确定与所述第一图片的拍摄位置信息对应的图片包括: Assuming that the obtained shooting position information of the first picture is A, a picture corresponding to the shooting position information and A is searched in the database, wherein the database stores the picture, the shooting position information of the picture, and the landscape information of the picture. Specifically, determining a picture corresponding to the shooting location information of the first picture includes:
第一种方案:根据所述第一图片的拍摄位置信息及预设的第一阈值,确定所述拍摄位置信息对应的第一查找区域;将拍摄位置信息在所述查找区域内的图片,作为查找到的与所述第一图片的拍摄位置信息对应的图片。a first solution: determining, according to the shooting position information of the first picture and a preset first threshold, a first search area corresponding to the shooting position information; and taking a picture of the shooting position information in the search area as The found picture corresponding to the shooting position information of the first picture.
第二种方案:根据所述第一图片的拍摄位置信息,确定所述拍摄位置信息在地图上对应的地理位置;根据所述地理位置及预设的第二阈值,确定所述地理位置对应的第二查找区域;在所述地图上识别所述第二查找区域内包含的至少一个景观信息;根据所述数据库中每个图片的景观信息,在所述数据库中查找景观信息与所述第一查找区域内包含的至少一个景观信息对应的图片,将查找到的图片作为与所述第一图片的拍摄位置信息对应的图片。a second solution: determining, according to the shooting location information of the first picture, a geographic location corresponding to the shooting location information on the map; determining, according to the geographic location and a preset second threshold, the geographical location a second search area; identifying at least one landscape information included in the second search area on the map; searching for landscape information and the first in the database according to landscape information of each picture in the database Searching for a picture corresponding to at least one piece of landscape information included in the area, and using the found picture as a picture corresponding to the shooting position information of the first picture.
假设数据库中存储的部分图片、图片的拍摄位置信息及图片的景观信息如表1所示:Assume that some of the pictures stored in the database, the location information of the pictures, and the landscape information of the pictures are shown in Table 1:
表1Table 1
图片image 图片的拍摄位置信息Photo location information 图片的景观信息Landscape information of the picture
图片1Picture 1 AA W大厦W Building
图片2Picture 2 AA X公园X Park
图片3Picture 3 AA Y广场Y Square
图片4Picture 4 BB Z公园Z Park
应用第一种方案,根据第一图片的拍摄位置信息A,确定A在地图上对应的地理位置(假设为A1),根据地理位置A1及预设的第一阈值(假设为1公里),将与A1距离在1公里以内的区域确定为A1对应的第一查找区域。将拍摄位置信息在第一查找区域内的图片,作为查找到的与第一图片的拍摄位置信息对应的图片。Applying the first scheme, according to the shooting position information A of the first picture, determining the geographical position corresponding to A on the map (assumed to be A1), according to the geographic location A1 and the preset first threshold (assumed to be 1 km), The area within 1 km from A1 is determined as the first search area corresponding to A1. The picture in which the shooting position information is in the first search area is used as the searched picture corresponding to the shooting position information of the first picture.
应用第二种方案,根据第一图片的拍摄位置信息A,确定A在地图上对应的地理位置(假设为A1),根据地理位置A1及预设的第二阈值(假设为1公里),将与A1距离在1公里以内的区域确定为A1对应的第二查找区域。在该地图上识别A1对应的第二查找区域内包含的至少一个景观信息,假设识别出该第二查找区域内包含的景观信息为W大厦、X公园和Y广场,在数据库中查找景观信息与W大厦、X公园和Y广场对应的图片,即查找到图片1、图片2和图片3。将图片1、图片2和图片3作为与第一图片的拍摄位置信息对应的图片。Applying the second scheme, according to the shooting position information A of the first picture, determining the geographical position corresponding to A on the map (assumed to be A1), according to the geographic location A1 and the preset second threshold (assumed to be 1 km), The area within 1 km from A1 is determined as the second search area corresponding to A1. At least one landscape information included in the second search area corresponding to A1 is identified on the map, and it is assumed that the landscape information included in the second search area is W Building, X Park, and Y Square, and the landscape information is searched in the database. Pictures corresponding to W Building, X Park, and Y Plaza, that is, picture 1, picture 2, and picture 3 are found. Picture 1, Picture 2, and Picture 3 are taken as pictures corresponding to the shooting position information of the first picture.
假设查找到的图片为图片1、图片2和图片3,在查找到的图片中确定与所述第一图片相似度最高的第一目标图片,可以针对所述第一图片和所述查找到的图片,确定图片中的每个特征值,根据所述每个特征值构建所述图片的特征值集合;根据所述第一图片的特征值集合和每个所述查找到的图片的特征值集合,确定所述第一图片与每 个所述查找到的图片的相似度,并确定与所述第一图片相似度最高的第一目标图片。Assuming that the found picture is picture 1, picture 2, and picture 3, determining, in the found picture, a first target picture that has the highest similarity with the first picture, and may be for the first picture and the found a picture, each feature value in the picture is determined, and a feature value set of the picture is constructed according to each feature value; a feature value set according to the first picture and a feature value set of each of the searched pictures Determining the first picture and each Comparing the similarities of the found pictures, and determining a first target picture with the highest similarity to the first picture.
在实际应用中,根据图片的特征值集合,确定两张图片的相似度,可以根据两张图片的特征值集合的交集的个数与并集的个数的比值来确认。In an actual application, determining the similarity of two pictures according to the feature value set of the picture may be confirmed according to the ratio of the number of intersections of the feature value sets of the two pictures to the number of the unions.
具体的,假设第一图片中包括了树木、河流、花草,树木的特征值为1,河流的特征值为2,花草的特征值为3;图片1中包括了写字楼、停车场,写字楼的特征值为4,停车场的特征值为5;图片2中包括了树木、河流、花草、蓝天,树木的特征值为1,河流的特征值为2,花草的特征值为3,蓝天的特征值为6;图片3中包括了雕塑和广场,雕塑的特征值为7,广场的特征值为8。Specifically, it is assumed that the first picture includes trees, rivers, flowers and trees, the characteristic value of the trees is 1, the characteristic value of the river is 2, and the characteristic value of the flowers is 3; the picture 1 includes the characteristics of the office building, the parking lot, and the office building. The value is 4, the characteristic value of the parking lot is 5; the picture 2 includes trees, rivers, flowers, blue sky, the characteristic value of the tree is 1, the characteristic value of the river is 2, the characteristic value of the flower is 3, and the characteristic value of the blue sky It is 6; the picture 3 includes the sculpture and the square, the characteristic value of the sculpture is 7, and the characteristic value of the square is 8.
构建第一图片、图片1、图片2和图片3的特征值集合:第一图片的特征值集合为{1,2,3};图片1的特征值集合为{4,5};图片2的特征值集合为{1,2,3,6};图片3的特征值集合为{7,8}。图片1与图片3的特征值集合中的特征值与第一图片的特征值集合中的特征值完全不同,交集的个数为0,相似度为0。图形2的特征值集合中的4个特征值有3个与第一图片的特征值集合中的特征值相同,交集的个数为3,并集的个数为4,相似度可以确定为75%。因此,确定图片2为与第一图片相似度最高的第一目标图片。将图片2的景观信息X公园确定为第一图片的景观信息。Constructing a feature value set of the first picture, picture 1, picture 2, and picture 3: the feature value set of the first picture is {1, 2, 3}; the feature value set of picture 1 is {4, 5}; The set of feature values is {1, 2, 3, 6}; the set of feature values of picture 3 is {7, 8}. The feature values in the feature value set of picture 1 and picture 3 are completely different from the feature values in the feature value set of the first picture, the number of intersections is 0, and the similarity is 0. The three feature values in the feature value set of the graph 2 are the same as the feature values in the feature value set of the first picture, the number of intersections is 3, the number of unions is 4, and the similarity can be determined as 75. %. Therefore, it is determined that the picture 2 is the first target picture having the highest similarity to the first picture. The landscape information X Park of Picture 2 is determined as the landscape information of the first picture.
应用本发明图1所示实施例,通过在数据库中查找与第一图片的拍摄位置信息对应的图片,进而在查找到的图片中确定与第一图片相似度最高的第一目标图片,将第一目标图片的景观信息确定为第一图片的景观信息,提高了确定第一图片拍摄的景观信息的准确性。Applying the embodiment shown in FIG. 1 of the present invention, by searching for a picture corresponding to the shooting position information of the first picture in the database, and determining the first target picture having the highest similarity with the first picture in the found picture, The landscape information of a target picture is determined as the landscape information of the first picture, which improves the accuracy of determining the landscape information of the first picture.
图2为本发明实施例提供的图片景观信息的确定方法的第二种流程示意图,本发明图2所示实施例在图1所示实施例的基础上,所述数据库中还存储有所述图片的景观属性信息,在S104之后,增加如下步骤:2 is a second schematic flowchart of a method for determining picture landscape information according to an embodiment of the present invention. The embodiment shown in FIG. 2 is based on the embodiment shown in FIG. 1, and the database further stores the The landscape attribute information of the picture, after S104, add the following steps:
S105:将所述第一目标图片的景观属性信息确定为所述第一图片的景观属性信息。S105: Determine landscape attribute information of the first target picture as landscape attribute information of the first picture.
S106:在所述数据库中针对所述景观属性存储所述第一图片。S106: Store the first picture for the landscape attribute in the database.
在本发明所示实施例中,数据库中还可以存储有所述图片的景观属性信息,比如自然风光、人文景观等。In the illustrated embodiment of the present invention, the database may also store landscape attribute information of the picture, such as natural scenery, human landscape, and the like.
还以图1中的例子进行说明,将图片2的景观信息X公园确定为第一图片的景观信息。数据库中存储的图片2的景观属性信息为自然风光,则第一图片的景观属性信息为自然风光。Also described with reference to the example in FIG. 1, the landscape information X park of the picture 2 is determined as the landscape information of the first picture. The landscape attribute information of the picture 2 stored in the database is natural scenery, and the landscape attribute information of the first picture is natural scenery.
数据库中的图片可以根据图片的景观属性信息分类存储,以便于查找。可以将第一图片存储在自然风光的类别里。The pictures in the database can be classified according to the landscape attribute information of the pictures for easy searching. The first picture can be stored in the category of natural scenery.
应用本发明图2所示实施例,数据库中还存储有图片的景观属性信息,并根据图 片的景观属性信息将图片进行分类存储,将第一目标图片的景观属性信息确定为第一图片的景观属性信息,并保存至该景观属性信息对应的类别下,便于图片的分类与查找。Applying the embodiment shown in FIG. 2 of the present invention, the database also stores landscape attribute information of the picture, and according to the figure The landscape attribute information of the slice is used to classify and store the picture, and the landscape attribute information of the first target picture is determined as the landscape attribute information of the first picture, and is saved to the category corresponding to the landscape attribute information, so as to facilitate the classification and searching of the picture.
图3为本发明实施例提供的图片景观信息的确定方法的第三种流程示意图,本发明图3所示实施例在图2所示实施例的基础上,所述数据库中还存储有上传所述图片的用户信息,在S106之后增加如下步骤:FIG. 3 is a third schematic flowchart of a method for determining picture landscape information according to an embodiment of the present invention. The embodiment shown in FIG. 3 is based on the embodiment shown in FIG. 2, and an uploading station is also stored in the database. For the user information of the picture, add the following steps after S106:
S107:根据所述第一图片的拍摄位置信息及预设的第三阈值,确定所述拍摄位置信息对应的第三查找区域;S107: Determine, according to the shooting position information of the first picture and a preset third threshold, a third search area corresponding to the shooting position information;
S108:在所述数据库中查找拍摄位置信息在所述第三查找区域内的第二图片组;S108: Search, in the database, a second group of pictures in which the shooting location information is in the third search area;
S109:在查找到的第二图片组中,确定与所述第一图片的景观属性信息对应的第二目标图片;S109: Determine, in the second picture group that is found, a second target picture corresponding to the landscape attribute information of the first picture;
S110:将上传所述第二目标图片的第二用户推送给上传所述第一图片的第一用户。S110: Push a second user that uploads the second target picture to a first user that uploads the first picture.
还以图2中的例子进行说明,确定的第一图片的景观信息为X公园,第一图片的景观属性信息为自然风光。It is also illustrated by the example in FIG. 2 that the determined landscape information of the first picture is X Park, and the landscape attribute information of the first picture is natural scenery.
根据图片的拍摄位置信息及预设的阈值,确定该拍摄位置信息对应的查找区域,并在数据库中查找拍摄位置信息在该查找区域内的图片的方法已在图1所示实施例中进行过说明,在此不进行赘述。The method for determining the search area corresponding to the shooting position information according to the shooting position information of the picture and the preset threshold value, and searching for the picture of the shooting position information in the search area in the database has been performed in the embodiment shown in FIG. The description will not be repeated here.
假设查找到4张图片,图片1、图片2、图片3和图片4,这4张图片构成第二图片组,假设图片2和图片4的景观属性信息为自然风光,图片1和图片3的景观属性信息为人文景观。则将图片2和图片4确定为与第一图片的景观属性信息对应的第二目标图片。Suppose that 4 pictures, picture 1, picture 2, picture 3 and picture 4 are found, these 4 pictures constitute the second picture group, assuming that the landscape attribute information of picture 2 and picture 4 is natural scenery, the picture of picture 1 and picture 3 The attribute information is a human landscape. Then, the picture 2 and the picture 4 are determined as the second target picture corresponding to the landscape attribute information of the first picture.
在本发明所示实施例中,数据库中还存储有上传图片的用户的信息,根据数据库中存储的上传图片2、图片4和第一图片的用户的信息,将上传图片2的用户和上传图片4的用户推送给上传第一图片的用户。In the embodiment of the present invention, the database further stores information of the user who uploaded the picture, and according to the uploaded picture 2, the picture 4 and the information of the user of the first picture stored in the database, the user who uploads the picture 2 and the uploaded picture The user of 4 pushes the user who uploaded the first picture.
应用本发明图3所示实施例,将拍摄过第二目标图片的用户推送给拍摄第一图片的用户,其中,第二目标图片为与第一图片的景观属性信息相同、且与第一图片的拍摄位置信息相近的图片,有利于用户发现与自己有相近的爱好、类似的经历的其他用户,为用户提供了交友平台,提高了用户体验。Applying the embodiment shown in FIG. 3 of the present invention, the user who has taken the second target picture is pushed to the user who captured the first picture, wherein the second target picture is the same as the landscape attribute information of the first picture, and the first picture The shooting of pictures with similar location information is beneficial to users to find other users with similar hobbies and similar experiences, providing users with a platform for making friends and improving the user experience.
与上述的方法实施例相对应,本发明实施例还提供一种图片景观信息的确定装置。Corresponding to the foregoing method embodiment, the embodiment of the present invention further provides a device for determining picture landscape information.
图4为本发明实施例提供的图片景观信息的确定方法的第一种结构示意图,可以包括:FIG. 4 is a schematic structural diagram of a first method for determining a picture landscape information according to an embodiment of the present invention, which may include:
获得模块201,用于根据图片的描述信息,获得第一图片的拍摄位置信息; The obtaining module 201 is configured to obtain shooting location information of the first picture according to the description information of the picture;
在实际应用中,获得模块201,具体可以用于读取所述第一图片的可交换图像文件信息;从所述第一图片的可交换图像文件信息中,提取所述第一图片的拍摄位置信息。In an actual application, the obtaining module 201 is specifically configured to read the exchangeable image file information of the first picture, and extract the shooting position of the first picture from the exchangeable image file information of the first picture. information.
第一查找模块202,用于在数据库中查找拍摄位置信息与所述第一图片的拍摄位置信息对应的图片,其中,所述数据库中存储有图片、所述图片的拍摄位置信息及所述图片的景观信息;The first search module 202 is configured to search, in the database, a picture corresponding to the shooting position information of the first picture, where the database stores the picture, the shooting location information of the picture, and the picture. Landscape information;
在本发明所示实施例中,第一查找模块202,具体可以用于根据所述第一图片的拍摄位置信息及预设的第一阈值,确定所述拍摄位置信息对应的第一查找区域;将拍摄位置信息在所述第一查找区域内的图片,作为查找到的与所述第一图片的拍摄位置信息对应的图片。In the embodiment of the present invention, the first search module 202 is specifically configured to determine, according to the shooting location information of the first picture and the preset first threshold, a first search area corresponding to the shooting location information; The picture in which the shooting position information is in the first search area is used as the searched picture corresponding to the shooting position information of the first picture.
在本发明所示实施例中,第一查找模块202,可以包括:第一确定子模块、第二确定子模块、识别子模块和查找子模块(图中未示出),其中,In the embodiment of the present invention, the first search module 202 may include: a first determining submodule, a second determining submodule, an identifying submodule, and a searching submodule (not shown), where
第一确定子模块,用于根据所述第一图片的拍摄位置信息,确定所述拍摄位置信息在地图上对应的地理位置;a first determining submodule, configured to determine, according to the shooting location information of the first picture, a geographic location corresponding to the shooting location information on a map;
第二确定子模块,用于根据所述地理位置及预设的第二阈值,确定所述地理位置对应的第二查找区域;a second determining submodule, configured to determine, according to the geographic location and a preset second threshold, a second search area corresponding to the geographic location;
识别子模块,用于在所述地图上识别所述第二查找区域内包含的至少一个景观信息;An identification submodule, configured to identify at least one landscape information included in the second search area on the map;
查找子模块,用于根据所述数据库中每个图片的景观信息,在所述数据库中查找景观信息与所述第二查找区域内包含的至少一个景观信息对应的图片,将查找到的图片作为与所述第一图片的拍摄位置信息对应的图片。a search sub-module, configured to search, in the database, a picture corresponding to at least one landscape information included in the second search area according to landscape information of each picture in the database, and use the found picture as a picture corresponding to the shooting position information of the first picture.
第一确定模块203,用于在查找到的图片中确定与所述第一图片相似度最高的第一目标图片;The first determining module 203 is configured to determine, in the found picture, a first target picture that has the highest similarity with the first picture;
在实际应用中,第一确定模块203,具体可以用于针对所述第一图片和所述查找到的图片,确定图片中的每个特征值,根据所述每个特征值构建所述图片的特征值集合;根据所述第一图片的特征值集合和每个所述查找到的图片的特征值集合,确定所述第一图片与每个所述查找到的图片的相似度,并确定与所述第一图片相似度最高的第一目标图片。In an actual application, the first determining module 203 may be specifically configured to determine, for the first picture and the found picture, each feature value in the picture, and construct the picture according to each feature value. a set of feature values; determining, according to the set of feature values of the first picture and the set of feature values of each of the found pictures, a similarity between the first picture and each of the found pictures, and determining The first target picture with the highest similarity of the first picture.
第二确定模块204,用于将所述第一目标图片的景观信息确定为所述第一图片的景观信息。The second determining module 204 is configured to determine landscape information of the first target picture as landscape information of the first picture.
应用本发明图4所示实施例,通过在数据库中查找与第一图片的拍摄位置信息对应的图片,进而在查找到的图片中确定与第一图片相似度最高的第一目标图片,将第一目标图片的景观信息确定为第一图片的景观信息,提高了确定第一图片拍摄的景观 信息的准确性。Applying the embodiment shown in FIG. 4 of the present invention, by searching for a picture corresponding to the shooting position information of the first picture in the database, and determining the first target picture having the highest similarity with the first picture in the found picture, The landscape information of a target picture is determined as the landscape information of the first picture, and the landscape for determining the first picture is improved. The accuracy of the information.
图5为本发明实施例提供的图片景观信息的确定装置的第二种结构示意图,本发明图5所示实施例在图4所示实施例的基础上,所述数据库中还存储有所述图片的景观属性信息,所述装置还可以包括:FIG. 5 is a second schematic structural diagram of an apparatus for determining picture landscape information according to an embodiment of the present invention. The embodiment shown in FIG. 5 is based on the embodiment shown in FIG. 4, and the database further stores the The landscape attribute information of the picture, the device may further include:
第三确定模块205,用于将所述第一目标图片的景观属性信息确定为所述第一图片的景观属性信息;a third determining module 205, configured to determine landscape attribute information of the first target picture as landscape attribute information of the first picture;
存储模块206,用于在所述数据库中针对所述景观属性存储所述第一图片。The storage module 206 is configured to store the first picture in the database for the landscape attribute.
应用本发明图5所示实施例,数据库中还存储有图片的景观属性信息,并根据图片的景观属性信息将图片进行分类存储,将第一目标图片的景观属性信息确定为第一图片的景观属性信息,并保存至该景观属性信息对应的类别下,便于图片的分类与查找。Applying the embodiment shown in FIG. 5 of the present invention, the database also stores landscape attribute information of the picture, and classifies the picture according to the landscape attribute information of the picture, and determines the landscape attribute information of the first target picture as the landscape of the first picture. The attribute information is saved under the category corresponding to the landscape attribute information, which facilitates the classification and searching of the picture.
图6为本发明实施例提供的图片景观信息的确定装置的第三种结构示意图,本发明图6所示实施例在图5所示实施例的基础上,所述数据库中还存储有上传所述图片的用户信息,所述装置还可以包括:FIG. 6 is a third schematic structural diagram of a device for determining picture landscape information according to an embodiment of the present invention. The embodiment shown in FIG. 6 is based on the embodiment shown in FIG. 5, and an uploading station is also stored in the database. For the user information of the picture, the device may further include:
第四确定模块207,用于根据所述第一图片的拍摄位置信息及预设的第三阈值,确定所述拍摄位置信息对应的第三查找区域;The fourth determining module 207 is configured to determine, according to the shooting position information of the first picture and the preset third threshold, a third search area corresponding to the shooting position information;
第二查找模块208,用于在所述数据库中查找拍摄位置信息在所述第三查找区域内的第二图片组;a second searching module 208, configured to search, in the database, a second group of pictures in which the shooting location information is in the third search area;
第五确定模块209,用于在查找到的第二图片组中,确定与所述第一图片的景观属性信息对应的第二目标图片;a fifth determining module 209, configured to determine, in the second picture group that is found, a second target picture that corresponds to the landscape attribute information of the first picture;
推送模块210,用于将上传所述第二目标图片的第二用户推送给上传所述第一图片的第一用户。The pushing module 210 is configured to push a second user that uploads the second target picture to the first user that uploads the first picture.
应用本发明图6所示实施例,将拍摄过第二目标图片的用户推送给拍摄第一图片的用户,其中,第二目标图片为与第一图片的景观属性信息相同、且与第一图片的拍摄位置信息相近的图片,有利于用户发现与自己有相近的爱好、类似的经历的其他用户,为用户提供了交友平台,提高了用户体验。Applying the embodiment shown in FIG. 6 of the present invention, the user who has taken the second target picture is pushed to the user who captured the first picture, wherein the second target picture is the same as the landscape attribute information of the first picture, and is the same as the first picture. The shooting of pictures with similar location information is beneficial to users to find other users with similar hobbies and similar experiences, providing users with a platform for making friends and improving the user experience.
为了实现上述实施例,本发明实施例还公开了一种图片景观信息的确定装置,包括:一个或者多个处理器;存储器;一个或者多个模块,所述一个或者多个模块存储在所述存储器中,当被所述一个或者多个处理器执行时:执行本发明上述任一项实施例所述的图片景观信息的确定方法。In order to implement the above embodiments, an embodiment of the present invention further discloses a device for determining picture landscape information, including: one or more processors; a memory; one or more modules, wherein the one or more modules are stored in the In the memory, when executed by the one or more processors: a method of determining picture landscape information according to any of the above-described embodiments of the present invention.
为了实现上述实施例,本发明实施例还公开了一种应用程序,用于在运行时执行本发明上述任一项实施例所述的图片景观信息的确定方法。 In order to implement the above embodiments, an embodiment of the present invention further discloses an application program for performing a method for determining picture landscape information according to any of the above embodiments of the present invention at runtime.
为了实现上述实施例,本发明实施例还公开了一种存储介质,其特征在于,所述存储介质存储有一个或者多个模块,当所述一个或者多个模块被一个图片景观信息的确定装置执行时,使得所述图片景观信息的确定装置:执行本发明上述任一项实施例所述的图片景观信息的确定方法。In order to implement the above embodiments, an embodiment of the present invention further discloses a storage medium, wherein the storage medium stores one or more modules, and when the one or more modules are determined by a picture landscape information determining device When executed, the determining device for determining the picture landscape information: the method for determining the picture landscape information according to any of the above embodiments of the present invention.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this context, relational terms such as first and second are used merely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply such entities or operations. There is any such actual relationship or order between them. Furthermore, the term "comprises" or "comprises" or "comprises" or any other variations thereof is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device that comprises a plurality of elements includes not only those elements but also Other elements, or elements that are inherent to such a process, method, item, or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device that comprises the element.
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。The various embodiments in the present specification are described in a related manner, and the same or similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。Any process or method description in the flowcharts or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a particular logical function or process. And the scope of the preferred embodiments of the invention includes additional implementations, in which the functions may be performed in a substantially simultaneous manner or in an opposite order depending on the functions involved, in the order shown or discussed. It will be understood by those skilled in the art to which the embodiments of the present invention pertain.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通 过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。The logic and/or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be embodied in any computer readable medium, Used in conjunction with, or in conjunction with, an instruction execution system, apparatus, or device (eg, a computer-based system, a system including a processor, or other system that can fetch instructions and execute instructions from an instruction execution system, apparatus, or device) Or use with equipment. For the purposes of this specification, a "computer-readable medium" can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or device, or in conjunction with the instruction execution system, apparatus, or device. More specific examples (non-exhaustive list) of computer readable media include the following: electrical connections (electronic devices) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM). In addition, the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may, for example, be The program is electronically obtained by optically scanning paper or other media, followed by editing, interpretation or, if necessary, processing in other suitable manner, and then storing it in computer memory.
应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that portions of the invention may be implemented in hardware, software, firmware or a combination thereof. In the above-described embodiments, multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: having logic gates for implementing logic functions on data signals. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art can understand that all or part of the steps carried by the method of implementing the above embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, one or a combination of the steps of the method embodiments is included.
此外,在本发明各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. The integrated modules, if implemented in the form of software functional modules and sold or used as stand-alone products, may also be stored in a computer readable storage medium.
本领域普通技术人员可以理解实现上述方法实施方式中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,所述的程序可以存储于计算机可读取存储介质中,这里所称得的存储介质,如:ROM/RAM、磁碟、光盘等。One of ordinary skill in the art can understand that all or part of the steps in implementing the above method embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer readable storage medium, which is referred to herein. Storage media such as ROM/RAM, disk, CD, etc.
以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。 The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention. Any modifications, equivalents, improvements, etc. made within the spirit and scope of the invention are intended to be included within the scope of the invention.

Claims (17)

  1. 一种图片景观信息的确定方法,其特征在于,应用于服务器,所述方法包括:A method for determining picture landscape information, which is characterized by being applied to a server, the method comprising:
    根据图片的描述信息,获得第一图片的拍摄位置信息;Obtaining shooting position information of the first picture according to the description information of the picture;
    在数据库中查找拍摄位置信息与所述第一图片的拍摄位置信息对应的图片,其中,所述数据库中存储有图片、所述图片的拍摄位置信息及所述图片的景观信息;Searching, in the database, a picture corresponding to the shooting position information of the first picture, wherein the database stores a picture, shooting position information of the picture, and landscape information of the picture;
    在查找到的图片中确定与所述第一图片相似度最高的第一目标图片;Determining, in the found picture, a first target picture having the highest similarity with the first picture;
    将所述第一目标图片的景观信息确定为所述第一图片的景观信息。The landscape information of the first target picture is determined as the landscape information of the first picture.
  2. 根据权利要求1所述的方法,其特征在于,所述根据图片的描述信息,获得第一图片的拍摄位置信息,包括:The method according to claim 1, wherein the obtaining location information of the first picture according to the description information of the picture comprises:
    读取所述第一图片的可交换图像文件信息;Reading the exchangeable image file information of the first picture;
    从所述第一图片的可交换图像文件信息中,提取所述第一图片的拍摄位置信息。Extracting shooting position information of the first picture from the exchangeable image file information of the first picture.
  3. 根据权利要求1或2所述的方法,其特征在于,所述在数据库中查找拍摄位置信息与所述第一图片的拍摄位置信息对应的图片,包括:The method according to claim 1 or 2, wherein the searching for a picture corresponding to the shooting position information of the first picture in the database comprises:
    根据所述第一图片的拍摄位置信息及预设的第一阈值,确定所述拍摄位置信息对应的第一查找区域;Determining, according to the shooting location information of the first picture and the preset first threshold, a first search area corresponding to the shooting location information;
    将拍摄位置信息在所述第一查找区域内的图片,作为查找到的与所述第一图片的拍摄位置信息对应的图片。The picture in which the shooting position information is in the first search area is used as the searched picture corresponding to the shooting position information of the first picture.
  4. 根据权利要求1或2所述的方法,其特征在于,所述在数据库中查找拍摄位置信息与所述第一图片的拍摄位置信息对应的图片,包括:The method according to claim 1 or 2, wherein the searching for a picture corresponding to the shooting position information of the first picture in the database comprises:
    根据所述第一图片的拍摄位置信息,确定所述拍摄位置信息在地图上对应的地理位置;Determining, according to the shooting location information of the first picture, a geographic location corresponding to the shooting location information on the map;
    根据所述地理位置及预设的第二阈值,确定所述地理位置对应的第二查找区域;Determining, according to the geographic location and a preset second threshold, a second search area corresponding to the geographic location;
    在所述地图上识别所述第二查找区域内包含的至少一个景观信息;Identifying at least one landscape information included in the second search area on the map;
    根据所述数据库中每个图片的景观信息,在所述数据库中查找景观信息与所述第二查找区域内包含的至少一个景观信息对应的图片,将查找到的图片作为与所述第一图片的拍摄位置信息对应的图片。And searching, according to the landscape information of each picture in the database, a picture corresponding to the at least one landscape information included in the second search area in the database, and using the found picture as the first picture The location of the corresponding location information.
  5. 根据权利要求1至4中任一项所述的方法,其特征在于,所述在查找到的图片中确定与所述第一图片相似度最高的第一目标图片,包括:The method according to any one of claims 1 to 4, wherein the determining, in the found picture, the first target picture having the highest similarity with the first picture comprises:
    针对所述第一图片和所述查找到的图片,确定图片中的每个特征值,根据所述每个特征值构建所述图片的特征值集合;Determining, for the first picture and the searched picture, each feature value in the picture, and constructing a feature value set of the picture according to each feature value;
    根据所述第一图片的特征值集合和每个所述查找到的图片的特征值集合,确定所 述第一图片与每个所述查找到的图片的相似度,并确定与所述第一图片相似度最高的第一目标图片。Determining the set according to the feature value set of the first picture and the feature value set of each of the found pictures Determining the similarity between the first picture and each of the found pictures, and determining a first target picture with the highest similarity to the first picture.
  6. 根据权利要求1至5中任一项所述的方法,其特征在于,所述数据库中还存储有所述图片的景观属性信息,所述方法还包括:The method according to any one of claims 1 to 5, wherein the database further stores landscape attribute information of the picture, the method further comprising:
    将所述第一目标图片的景观属性信息确定为所述第一图片的景观属性信息,并在所述数据库中针对所述景观属性存储所述第一图片。The landscape attribute information of the first target picture is determined as landscape attribute information of the first picture, and the first picture is stored in the database for the landscape attribute.
  7. 根据权利要求6所述的方法,其特征在于,所述数据库中还存储有上传所述图片的用户信息,所述方法还包括:The method according to claim 6, wherein the database further stores user information for uploading the image, the method further comprising:
    根据所述第一图片的拍摄位置信息及预设的第三阈值,确定所述拍摄位置信息对应的第三查找区域;Determining, according to the shooting position information of the first picture and the preset third threshold, a third search area corresponding to the shooting position information;
    在所述数据库中查找拍摄位置信息在所述第三查找区域内的第二图片组;Searching, in the database, a second group of pictures in which the shooting location information is in the third search area;
    在查找到的第二图片组中,确定与所述第一图片的景观属性信息对应的第二目标图片;Determining, in the found second picture group, a second target picture corresponding to the landscape attribute information of the first picture;
    将上传所述第二目标图片的第二用户推送给上传所述第一图片的第一用户。Pushing the second user who uploaded the second target picture to the first user who uploaded the first picture.
  8. 一种图片景观信息的确定装置,其特征在于,应用于服务器,所述装置包括:A device for determining picture landscape information, which is characterized by being applied to a server, the device comprising:
    获得模块,用于根据图片的描述信息,获得第一图片的拍摄位置信息;Obtaining a module, configured to obtain shooting location information of the first picture according to the description information of the picture;
    第一查找模块,用于在数据库中查找拍摄位置信息与所述第一图片的拍摄位置信息对应的图片,其中,所述数据库中存储有图片、所述图片的拍摄位置信息及所述图片的景观信息;a first search module, configured to search, in a database, a picture corresponding to the shooting position information of the first picture, where the database stores a picture, a shooting location information of the picture, and the picture Landscape information;
    第一确定模块,用于在查找到的图片中确定与所述第一图片相似度最高的第一目标图片;a first determining module, configured to determine, in the found picture, a first target picture that is the most similar to the first picture;
    第二确定模块,用于将所述第一目标图片的景观信息确定为所述第一图片的景观信息。a second determining module, configured to determine landscape information of the first target picture as landscape information of the first picture.
  9. 根据权利要求8所述的装置,其特征在于,所述获得模块,具体用于读取所述第一图片的可交换图像文件信息;从所述第一图片的可交换图像文件信息中,提取所述第一图片的拍摄位置信息。The apparatus according to claim 8, wherein the obtaining module is specifically configured to read the exchangeable image file information of the first picture; and extract from the exchangeable image file information of the first picture Shooting position information of the first picture.
  10. 根据权利要求8或9所述的装置,其特征在于,所述第一查找模块,具体用于根据所述第一图片的拍摄位置信息及预设的第一阈值,确定所述拍摄位置信息对应的第一查找区域;将拍摄位置信息在所述第一查找区域内的图片,作为查找到的与所述第一图片的拍摄位置信息对应的图片。The device according to claim 8 or 9, wherein the first search module is configured to determine, according to the shooting position information of the first picture and a preset first threshold, that the shooting position information is corresponding to a first search area; a picture in which the shooting position information is in the first search area is used as a searched picture corresponding to the shooting position information of the first picture.
  11. 根据权利要求8或9所述的装置,其特征在于,所述第一查找模块,包括:The device according to claim 8 or 9, wherein the first search module comprises:
    第一确定子模块,用于根据所述第一图片的拍摄位置信息,确定所述拍摄位置信 息在地图上对应的地理位置;a first determining submodule, configured to determine the shooting location letter according to the shooting location information of the first picture The geographic location corresponding to the map;
    第二确定子模块,用于根据所述地理位置及预设的第二阈值,确定所述地理位置对应的第二查找区域;a second determining submodule, configured to determine, according to the geographic location and a preset second threshold, a second search area corresponding to the geographic location;
    识别子模块,用于在所述地图上识别所述第二查找区域内包含的至少一个景观信息;An identification submodule, configured to identify at least one landscape information included in the second search area on the map;
    查找子模块,用于根据所述数据库中每个图片的景观信息,在所述数据库中查找景观信息与所述第二查找区域内包含的至少一个景观信息对应的图片,将查找到的图片作为与所述第一图片的拍摄位置信息对应的图片。a search sub-module, configured to search, in the database, a picture corresponding to at least one landscape information included in the second search area according to landscape information of each picture in the database, and use the found picture as a picture corresponding to the shooting position information of the first picture.
  12. 根据权利要求8至11中任一项所述的装置,其特征在于,所述第一确定模块,具体用于针对所述第一图片和所述查找到的图片,确定图片中的每个特征值,根据所述每个特征值构建所述图片的特征值集合;根据所述第一图片的特征值集合和每个所述查找到的图片的特征值集合,确定所述第一图片与每个所述查找到的图片的相似度,并确定与所述第一图片相似度最高的第一目标图片。The device according to any one of claims 8 to 11, wherein the first determining module is specifically configured to determine each feature in the picture for the first picture and the found picture a value, a feature value set of the picture is constructed according to each feature value; determining the first picture and each according to the feature value set of the first picture and the feature value set of each of the searched pictures Comparing the similarities of the found pictures, and determining a first target picture with the highest similarity to the first picture.
  13. 根据权利要求8至12中任一项所述的装置,其特征在于,所述数据库中还存储有所述图片的景观属性信息,所述装置还包括:The device according to any one of claims 8 to 12, wherein the database further stores landscape attribute information of the picture, the device further comprising:
    第三确定模块,用于将所述第一目标图片的景观属性信息确定为所述第一图片的景观属性信息;a third determining module, configured to determine landscape attribute information of the first target picture as landscape attribute information of the first picture;
    存储模块,用于在所述数据库中针对所述景观属性存储所述第一图片。And a storage module, configured to store the first picture in the database for the landscape attribute.
  14. 根据权利要求13所述的装置,其特征在于,所述数据库中还存储有上传所述图片的用户信息,所述装置还包括:The device according to claim 13, wherein the database further stores user information for uploading the image, the device further comprising:
    第四确定模块,用于根据所述第一图片的拍摄位置信息及预设的第三阈值,确定所述拍摄位置信息对应的第三查找区域;a fourth determining module, configured to determine, according to the shooting position information of the first picture and a preset third threshold, a third search area corresponding to the shooting position information;
    第二查找模块,用于在所述数据库中查找拍摄位置信息在所述第三查找区域内的第二图片组;a second searching module, configured to search, in the database, a second group of pictures in which the shooting location information is in the third search area;
    第五确定模块,用于在查找到的第二图片组中,确定与所述第一图片的景观属性信息对应的第二目标图片;a fifth determining module, configured to determine, in the second picture group that is found, a second target picture that corresponds to the landscape attribute information of the first picture;
    推送模块,用于将上传所述第二目标图片的第二用户推送给上传所述第一图片的第一用户。a pushing module, configured to push a second user that uploads the second target picture to a first user that uploads the first picture.
  15. 一种图片景观信息的确定装置,其特征在于,包括:A device for determining picture landscape information, comprising:
    一个或者多个处理器;存储器;One or more processors; memory;
    一个或者多个模块,所述一个或者多个模块存储在所述存储器中,当被所述一个或者多个处理器执行时: One or more modules, the one or more modules being stored in the memory, when executed by the one or more processors:
    执行权利要求1至7任一项所述的图片景观信息的确定方法。A method of determining picture landscape information according to any one of claims 1 to 7.
  16. 一种应用程序,其特征在于,用于在运行时执行权利要求1至7任一项所述的图片景观信息的确定方法。An application program for performing a method of determining picture landscape information according to any one of claims 1 to 7 at runtime.
  17. 一种存储介质,其特征在于,所述存储介质存储有一个或者多个模块,当所述一个或者多个模块被一个图片景观信息的确定装置执行时,使得所述图片景观信息的确定装置:A storage medium, wherein the storage medium stores one or more modules, and when the one or more modules are executed by a determining device of a picture landscape information, the determining device for the picture landscape information is:
    执行权利要求1至7任一项所述的图片景观信息的确定方法。 A method of determining picture landscape information according to any one of claims 1 to 7.
PCT/CN2016/081262 2015-12-25 2016-05-06 Method and device for determining landscape information of picture WO2017107361A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510997558.6 2015-12-25
CN201510997558.6A CN105653633B (en) 2015-12-25 2015-12-25 Method and device for determining picture landscape information

Publications (1)

Publication Number Publication Date
WO2017107361A1 true WO2017107361A1 (en) 2017-06-29

Family

ID=56476920

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/081262 WO2017107361A1 (en) 2015-12-25 2016-05-06 Method and device for determining landscape information of picture

Country Status (2)

Country Link
CN (1) CN105653633B (en)
WO (1) WO2017107361A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112686954A (en) * 2020-12-24 2021-04-20 浙江大华技术股份有限公司 Method and device for determining positioning position of object in picture

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110019894B (en) * 2017-07-21 2022-12-06 北京搜狗科技发展有限公司 Position searching method and device
CN109241314A (en) * 2018-08-27 2019-01-18 维沃移动通信有限公司 Method and device for selecting similar images
CN111860511A (en) * 2019-12-27 2020-10-30 北京嘀嘀无限科技发展有限公司 Image shooting location acquisition method, device, data processing device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102016841A (en) * 2008-07-29 2011-04-13 松下电器产业株式会社 Image search device and image search method
CN102208012A (en) * 2010-03-31 2011-10-05 爱信艾达株式会社 Scene matching reference data generation system and position measurement system
US8131118B1 (en) * 2008-01-31 2012-03-06 Google Inc. Inferring locations from an image
US20120308077A1 (en) * 2011-06-03 2012-12-06 Erick Tseng Computer-Vision-Assisted Location Check-In
CN103930901A (en) * 2011-11-17 2014-07-16 微软公司 Automatic tag generation based on image content

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104281650A (en) * 2014-09-15 2015-01-14 南京锐角信息科技有限公司 Friend search recommendation method and friend search recommendation system based on interest analysis

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8131118B1 (en) * 2008-01-31 2012-03-06 Google Inc. Inferring locations from an image
CN102016841A (en) * 2008-07-29 2011-04-13 松下电器产业株式会社 Image search device and image search method
CN102208012A (en) * 2010-03-31 2011-10-05 爱信艾达株式会社 Scene matching reference data generation system and position measurement system
US20120308077A1 (en) * 2011-06-03 2012-12-06 Erick Tseng Computer-Vision-Assisted Location Check-In
CN103930901A (en) * 2011-11-17 2014-07-16 微软公司 Automatic tag generation based on image content

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112686954A (en) * 2020-12-24 2021-04-20 浙江大华技术股份有限公司 Method and device for determining positioning position of object in picture

Also Published As

Publication number Publication date
CN105653633B (en) 2018-06-05
CN105653633A (en) 2016-06-08

Similar Documents

Publication Publication Date Title
CN107833213B (en) A Weakly Supervised Object Detection Method Based on False-True Value Adaptive Method
CN104035917B (en) A kind of knowledge mapping management method and system based on semantic space mapping
US20160055177A1 (en) Search recommendation method and apparatus for map search, computer storage medium, and device
WO2020155921A1 (en) Method for searching for image by means of images, and computer-readable storage medium and server
CN102549571A (en) Landmarks from digital photo collections
CN106202041A (en) A kind of method and apparatus of the entity alignment problem solved in knowledge mapping
WO2017107361A1 (en) Method and device for determining landscape information of picture
CN104991959A (en) Method and system for retrieving same or similar image based on content
CN107291949B (en) Information search method and device
CN105824862A (en) Image classification method based on electronic equipment and electronic equipment
US20150161094A1 (en) Apparatus and method for automatically generating visual annotation based on visual language
US9665773B2 (en) Searching for events by attendants
US20160253577A1 (en) Image Clustering Method, Image Clustering System, And Image Clustering Server
CN107679208A (en) Image search method, terminal device and storage medium
CN103617192B (en) The clustering method and device of a kind of data object
CN113254665B (en) A knowledge graph expansion method, device, electronic device and storage medium
KR20170141246A (en) Target Search Method, Device and Server
CN110162645A (en) Image search method, device and electronic equipment based on index
CN115082659A (en) An image labeling method, device, electronic device and storage medium
CN105183857A (en) Automatic picture training sample extracting method and system
CN114419133B (en) Method and device for judging whether container of plant is suitable for plant maintenance
CN107247730A (en) Image searching method and device
CN107491521A (en) A kind of image search system and method
US11816147B2 (en) Enhanced image-search using contextual tags
CN110826488B (en) Image identification method and device for electronic document and storage equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16877175

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16877175

Country of ref document: EP

Kind code of ref document: A1