Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.
brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus| import numpy as np | |
| import open3d as o3d | |
| rgb = o3d.io.read_image("rgb_image.jpg") | |
| depth = o3d.io.read_image("depth_image.png") | |
| #intrinsics = o3d.io.read_pinhole_camera_intrinsic("intrinsics.json") | |
| intrinsics = o3d.camera.PinholeCameraIntrinsic(640, 480, fx=525.0, fy=525.0, cx=319.5, cy=239.5) | |
| rgbd = o3d.geometry.RGBDImage.create_from_color_and_depth(rgb, depth) |
| javascript:(function(){ | |
| const MY_MASTO_LOCAL_DOMAIN = 'front-end.social'; /* 👈 Change this value */ | |
| const MY_MASTO_WEB_DOMAIN = MY_MASTO_LOCAL_DOMAIN; /* 👈 Only change this value if your Masto host is hosted an different domain than the LOCAL_DOMAIN */ | |
| function tryAndGetUserName() { | |
| /* Profile with a moved banner (e.g. https://mastodon.social/@bramus): follow that link */ | |
| const userNewProfile = document.querySelector('.moved-account-banner .button')?.getAttribute('href'); | |
| if (userNewProfile) { | |
| return userNewProfile.substring(2); | |
| } |
| # https://www.geeksforgeeks.org/python-tweepy-getting-the-id-of-a-user/ | |
| import tweepy | |
| import json | |
| import time | |
| import urllib.request | |
| # You get these from https://developer.twitter.com/en/apps | |
| # New signups at https://developer.twitter.com | |
| consumer_key = "" |
| # https://www.geeksforgeeks.org/python-tweepy-getting-the-id-of-a-user/ | |
| import tweepy | |
| consumer_key = "" | |
| consumer_secret = "" | |
| access_token = "" | |
| access_token_secret = "" | |
| auth = tweepy.OAuthHandler(consumer_key, consumer_secret) |
| // https://openprocessing.org/sketch/20534/# | |
| int dim = 50; | |
| int interval = int(dim * 0.4); | |
| void setup() { | |
| size (500, 500); | |
| println(dim + ", " + interval); | |
| noStroke(); | |
| } |
| I am attesting that this GitHub handle n1ckfg is linked to the Tezos account tz1Tk4FSuhQZ8aqNaGs49NZkuKV3MSYCnDPM for tzprofiles | |
| sig:edsigu4rCz5z3qP5byMkJayHaxFbcZxJJWVrP4f6vLwAdodAtXfHtmXthPmNNm2izzqmTqcK99KX4zMLyw2MmfENenjXZXjVnXP |
| # More on this file here: https://github.com/processing/processing/wiki/Library-Basics | |
| # UTF-8 supported. | |
| # The name of your library as you want it formatted. | |
| name = PixelFlow | |
| # List of authors. Links can be provided using the syntax [author name](url). | |
| authors = [Thomas Diewald](http://www.thomasdiewald.com) | |
| # A web page for your library, NOT a direct link to where to download it. |
| # https://coral.ai/docs/edgetpu/compiler/ | |
| sudo curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - | |
| echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" | sudo tee /etc/apt/sources.list.d/coral-edgetpu.list | |
| sudo apt-get update | |
| sudo apt-get install edgetpu-compiler |
| import numpy as np | |
| def getIntrinsics(name="generic", mode="default"): | |
| name = name.lower() | |
| mode = mode.lower() | |
| # Generic | |
| # https://en.wikipedia.org/wiki/Camera_resectioning | |
| # https://docs.opencv.org/4.x/dc/d3a/classcv_1_1viz_1_1Camera.html#a753809aff611cdcc5a8a377126156b05 | |
| cx = 320 # principal point x |