wolkstein / OpenDroneMap-GCP_LIST.TXT-generator

This repository contains a small python script to detect GCP template images from an ODM image set and create an GCP_LIST file.
GNU General Public License v3.0
15 stars 6 forks source link

Python 2? #1

Open dani2007 opened 7 years ago

dani2007 commented 7 years ago

Is this still running with python 2? I have some problems to get the skript wo rund with windwos 10 and having Python 3 installed.

I'm trying to find a solution.

dani2007 commented 7 years ago

okey I converted the skript with 2to3 (or it works as well with miniconda2)

But now I get this error:

PS C:\WINDOWS\system32> python C:\Bachserei\gcp_txt_gen.py
Found 0 Images
---sorted tmpImagePathList
Found 0 Images-Templates
Traceback (most recent call last):
  File "C:\Bachserei\gcp_txt_gen.py", line 121, in <module>
    sift = cv2.SIFT()
AttributeError: module 'cv2.cv2' has no attribute 'SIFT'

I figured, that in the new versions of openCV (cv2) "sift" has been removed. https://www.pyimagesearch.com/2015/07/16/where-did-sift-and-surf-go-in-opencv-3/

so the skript does not work with up to date cv2 anymore. Maybe someone with a little more knowidge then me can fix this. ;-)