This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // based on https://qiita.com/coppercele/items/fef9eacee05b752ed982#m5stickc%E3%83%90%E3%83%BC%E3%82%B8%E3%83%A7%E3%83%B3 | |
| #define ENABLE_M5STACK_UPDATER | |
| #include <Arduino.h> | |
| #include <M5Stack.h> | |
| #ifdef ENABLE_M5STACK_UPDATER | |
| #include <M5StackUpdater.h> | |
| #endif | |
| #include <BLEDevice.h> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | version: '3.7' | |
| services: | |
| dockerregistrymirror: | |
| container_name: docker-registry-mirror | |
| image: registry:2 | |
| ports: | |
| - "443:443" | |
| volumes: | |
| - ./data/docker/var/lib/registry:/var/lib/registry | |
| - ./data/certs:/certs | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # RTSPを受信して .mp4 にエンコード | |
| # ATOM Cam 2 は 20fps が標準 (赤外カメラモードでは15fpsとなるが下記コードは未対応) | |
| import cv2 | |
| import datetime | |
| import os | |
| # 日付をファイル名にする | |
| def get_filename(): | |
| now = datetime.datetime.now() | |
| filename = './mp4/' + now.strftime('%Y%m%d_%H%M') + '.mp4' | 
OlderNewer