mirror of
https://forge.chapril.org/tykayn/mapillary_download
synced 2025-10-04 17:04:53 +02:00
up
This commit is contained in:
parent
cdd4d6e549
commit
a080ab844f
15 changed files with 392 additions and 80 deletions
|
@ -22,7 +22,10 @@ session.mount("https://", HTTPAdapter(max_retries=retries_strategies))
|
|||
|
||||
def parse_args(argv=None):
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("--access_token", type=str, help="Your mapillary access token")
|
||||
parser.add_argument("--access_token",
|
||||
type=str,
|
||||
required=True,
|
||||
help="Your mapillary access token")
|
||||
parser.add_argument(
|
||||
"--sequence_ids",
|
||||
type=str,
|
||||
|
@ -124,6 +127,7 @@ def get_image_data_from_sequences(sequences_id, mly_header):
|
|||
url = "https://graph.mapillary.com/image_ids?sequence_id={}".format(sequence_id)
|
||||
r = requests.get(url, headers=header)
|
||||
data = r.json()
|
||||
|
||||
image_ids = data["data"]
|
||||
total_image = len(image_ids)
|
||||
print(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue