差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
miniskill [2022/02/06 14:18] – [SCORER Edge SDKからAWS S3への接続を設定する] satoshiminiskill [2022/02/06 14:29] (現在) – [SCORER Edge SDKからAWS S3への接続を設定する] satoshi
行 68: 行 68:
 pip install boto3 pip install boto3
 </code> </code>
-これにて準備完了です。次に下記のPythonスクリプトを実行すると指定の日付間、指定のカメラストリームのデータが受信可能になります。+これにて準備完了です。次に下記のPythonスクリプトを実行すると指定の日付間、指定のカメラストリームのデータが受信可能になります。\\ 
 +スクリプトのある階層に「movielist」フォルダを作成すれば動作します。\\
 <sxh Python; titile:moviedownload.py> <sxh Python; titile:moviedownload.py>
 from boto3 import Session from boto3 import Session
行 81: 行 82:
 import cv2 import cv2
  
-S3Bucket    = 'future-standard.taisei' #ユーザーの指定するバケット名 +S3Bucket    = 'future-standard.XXXX' #ユーザーの指定するバケット名 
-S3KeyPrefix = 'export/SourceData/' #SourceDataの位置までを指定+S3KeyPrefix = 'export/SourceData/' #SourceDataの位置までを指定 エクスポート時にexportプレフィックスを設定した時の例
 device_list=['02-410645-D-1'] #デバイス名。S3 Exportの種類(デバイス名かIDか)に応じて指定 device_list=['02-410645-D-1'] #デバイス名。S3 Exportの種類(デバイス名かIDか)に応じて指定
 sday = datetime.date(2022, 2, 1) #対象期間開始日 sday = datetime.date(2022, 2, 1) #対象期間開始日
行 150: 行 151:
                     if os.path.exists(dirpath+filepath[5]):                     if os.path.exists(dirpath+filepath[5]):
                         continue                         continue
-                    print(key) 
                     if ttime > stime and ttime < etime:                     if ttime > stime and ttime < etime:
-                        print(device+"/"+date2+"/"+filepath[5]+"-first")+                        print(device+"/"+date2+"/"+filepath[5])
                         s3client.download_file(Bucket=S3Bucket,Filename=dirpath+filepath[5], Key=key)                         s3client.download_file(Bucket=S3Bucket,Filename=dirpath+filepath[5], Key=key)
 </sxh> </sxh>
 +
 +===== SCORER APIによる一括解析 =====
 +(執筆中)
 +
  
  
  • miniskill.1644124706.txt.gz
  • 最終更新: 2022/02/06 14:18
  • by satoshi