Create a deepstream-l4t
docker container instance.
sudo docker run -it \
--rm \
--net=host \
--runtime nvidia \
-e DISPLAY=$DISPLAY \
version: '3.8' | |
services: | |
# Database - Mongo DB | |
mongo: | |
image: mongo | |
environment: | |
MONGO_INITDB_ROOT_USERNAME: helpdev | |
MONGO_INITDB_ROOT_PASSWORD: 123456 |
#!/usr/bin/env python3 | |
# -*- coding:utf-8 -*- | |
# GStreamer SDK Tutorials in Python | |
# | |
# basic-tutorial-2 | |
# | |
""" | |
basic-tutorial-2: GStreamer concepts | |
http://docs.gstreamer.com/display/GstSDK/Basic+tutorial+2%3A+GStreamer+concepts | |
""" |
# -------------------------------------------------------- | |
# Camera sample code for Tegra X2/X1 | |
# | |
# This program could capture and display video from | |
# IP CAM, USB webcam, or the Tegra onboard camera. | |
# Refer to the following blog post for how to set up | |
# and run the code: | |
# https://jkjung-avt.github.io/tx2-camera-with-python/ | |
# | |
# Written by JK Jung <[email protected]> |
Without either MONGO_INITDB_ROOT_USERNAME
, or MONGO_INITDB_ROOT_PASSWORD
the access is unrestricted.
docker-compose.yml
:
version: '3'
services:
mongo:
image: mongo
{url:'stun:stun01.sipphone.com'}, | |
{url:'stun:stun.ekiga.net'}, | |
{url:'stun:stun.fwdnet.net'}, | |
{url:'stun:stun.ideasip.com'}, | |
{url:'stun:stun.iptel.org'}, | |
{url:'stun:stun.rixtelecom.se'}, | |
{url:'stun:stun.schlund.de'}, | |
{url:'stun:stun.l.google.com:19302'}, | |
{url:'stun:stun1.l.google.com:19302'}, | |
{url:'stun:stun2.l.google.com:19302'}, |
import os | |
def read_in_chunks(file_object, chunk_size=1000000): | |
while True: | |
data = file_object.read(chunk_size) | |
if not data: | |
break | |
yield data | |
def main(file): |
from captcha.image import ImageCaptcha # pip install captcha | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from PIL import Image | |
import random | |
# 验证码中的字符, 就不用汉字了 | |
number = ['0','1','2','3','4','5','6','7','8','9'] | |
alphabet = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'] | |
ALPHABET = ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'] |
編輯 %UserProfile%\.wslconfig
檔案
Command Prompt
notepad %UserProfile%\.wslconfig
Windows PowerShell