Imgtag demo
In [ ]:
import uassist, ipyfilechooser, os
import ipywidgets as widgets
from uassist.imgtag import imgtag
from ipyfilechooser import FileChooser
The input is any JPEG or TIFF image. The package reads the metadata embedded in the file and returns the information relevant to photos taken as part of drone photogrammetry projects.
In [ ]:
fc = FileChooser(
path=os.path.abspath(os.path.join(os.getcwd(), 'data/')),
filename='img1.JPG',
filter_pattern = ['*.jpg', '*.tif', '*.JPG', '.TIF'],
show_only_dirs = False,
use_dir_icons = True,
select_default = True,
title = '<b>Select image file</b>'
)
display(fc)
In [ ]:
xyz = imgtag(fc.selected)
xy = (xyz[0],xyz[1])
m = uassist.Map(center=xy, zoom=15, google_map = "HYBRID")
marker = uassist.Marker(location=xy, draggable=False)
m.add_layer(marker);
m
In [ ]:
Last update: 2021-05-07