-
Notifications
You must be signed in to change notification settings - Fork 2
/
extract.py
33 lines (25 loc) · 967 Bytes
/
extract.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import subprocess as s
c="aws rekognition index-faces \
--image '{\"S3Object\":{\"Bucket\":\"facerek1612\",\"Name\":\"new_image1.jpeg\"}}' \
--collection-id \"images\" \
--region us-east-1 \
--profile adminuser"
s.Popen(c,shell=True,executable='/bin/bash')
c="aws rekognition index-faces \
--image '{\"S3Object\":{\"Bucket\":\"facerek1612\",\"Name\":\"new_image2.jpeg\"}}' \
--collection-id \"images\" \
--region us-east-1 \
--profile adminuser"
s.Popen(c,shell=True,executable='/bin/bash')
c="aws rekognition index-faces \
--image '{\"S3Object\":{\"Bucket\":\"facerek1612\",\"Name\":\"new_image3.jpeg\"}}' \
--collection-id \"images\" \
--region us-east-1 \
--profile adminuser"
s.Popen(c,shell=True,executable='/bin/bash')
c="aws rekognition index-faces \
--image '{\"S3Object\":{\"Bucket\":\"facerek1612\",\"Name\":\"new_image4.jpeg\"}}' \
--collection-id \"images\" \
--region us-east-1 \
--profile adminuser"
s.Popen(c,shell=True,executable='/bin/bash')