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: 2.1 | |
| orbs: | |
| win: circleci/windows@2.2.0 | |
| jobs: | |
| build: | |
| executor: | |
| name: win/default | |
| size: "medium" |
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
| import os, gi | |
| gi.require_version("Gst", "1.0") | |
| from gi.repository import GObject, Gst | |
| Gst.init(None) | |
| pipeline = Gst.Pipeline() | |
| # Variables. | |
| youtube_stream_key = "your_key_here" | |
| encoder_speed = "ultrafast" |
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
| # Install Chrome Remote Desktop on the VM instance | |
| wget https://dl.google.com/linux/direct/chrome-remote-desktop_current_amd64.deb | |
| sudo apt update | |
| sudo dpkg --install chrome-remote-desktop_current_amd64.deb | |
| sudo apt install --assume-yes --fix-broken | |
| # install desktop environment | |
| sudo apt install ubuntu-desktop | |
| # install google-chrome |
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
| import cv2 | |
| filename = "yourfilename.jpg" | |
| frame = cv2.imread(filename) | |
| overlay = frame.copy() | |
| text = "I love opencv" | |
| font, font_scale, font_thickness = cv2.FONT_ITALIC, 3.5, 5 | |
| textsize = cv2.getTextSize(text, font, font_scale, font_thickness)[0] # get text size |