- Create Dockerfile on solution root
- Add .dockerignore
- Include code below to Program.cs
public static IHostBuilder CreateHostBuilder(string[] args) =>
| # CS50x | |
| # Generates a QR code | |
| # https://github.com/lincolnloop/python-qrcode | |
| import qrcode | |
| # Generate QR code | |
| img = qrcode.make("https://www.redologic.com.br") | |
| # Save as file |
| # CS50x | |
| # Recognizes a voice | |
| # https://pypi.org/project/SpeechRecognition/ | |
| import speech_recognition | |
| # Obtain audio from the microphone | |
| recognizer = speech_recognition.Recognizer() | |
| with speech_recognition.Microphone() as source: | |
| print("Say something!") |
| # CS50x | |
| # Responds to a name | |
| # https://pypi.org/project/SpeechRecognition/ | |
| import re | |
| import speech_recognition | |
| # Obtain audio from the microphone | |
| recognizer = speech_recognition.Recognizer() | |
| with speech_recognition.Microphone() as source: |
| # CS50x | |
| # Identify and draw box on person | |
| # https://github.com/ageitgey/face_recognition/blob/master/examples/identify_and_draw_boxes_on_faces.py | |
| import face_recognition | |
| import numpy as np | |
| from PIL import Image, ImageDraw | |
| # Load a sample picture and learn how to recognize it. | |
| known_image = face_recognition.load_image_file("malan.jpg") |
| # CS50x | |
| # Find faces in picture | |
| # https://github.com/ageitgey/face_recognition/blob/master/examples/find_faces_in_picture.py | |
| from PIL import Image | |
| import face_recognition | |
| # Load the jpg file into a numpy array | |
| image = face_recognition.load_image_file("yale.jpg") |
ffmpeg -i audio.wav -af silencedetect=n=-50dB:d=0.5 -f null - 2>&1 | grep -Eo "silence_(start|end)" | tail -n 1 | grep "start" | wc -l