一、配置环境
安装pydot工具包
参考博客https://blog.csdn.net/sinat_37998852/article/details/80507536?utm_source=blogxgwz2
二、地理标记
注:本实验所用图片为集美大学校园图片
# -*- coding: utf-8 -*-
from pylab import *
from PIL import Image
from PCV.localdescriptors import sift
from PCV.tools import imtools
import pydot
""" This is the example graph illustration of matching images from Figure 2-10.
To download the images, see ch2_download_panoramio.py."""
#download_path = "panoimages" # set this to the path where you downloaded the panoramio images
#path = "/FULLPATH/panoimages/" # path to save thumbnails (pydot needs the full system path)
download_path = "C:\Users\Lenovo\Desktop\计算机视觉\实验\\images" # set this to the path where you downloaded the panoramio images
path = "C:\Users\Lenovo\Desktop\计算机视觉\实验\\images" # path to save thumbnails (pydot needs the full system path)
# list of downloaded filena