Ensure that uncomplye6 and black are installed. use conda, venv or just pip install to user..
pip install --user black uncompyle6
cd
import tank | |
import os | |
auth = tank.authentication.ShotgunAuthenticator() | |
user = auth.get_user() | |
sg = user.create_sg_connection() | |
playlist_ids = [23024] |
import numpy as np | |
import cv2 as cv | |
import matplotlib.pyplot as plt | |
def euclidean_distance(x1, x2): | |
return np.sqrt(np.sum((x1 - x2)**2)) | |
inset_img = cv.imread('/home/work/Downloads/image.png',cv.IMREAD_GRAYSCALE) # queryImage | |
orig_rgb = cv.imread('/home/work/Downloads/image(1).png') |
import time | |
from PySide2 import QtGui, QtWidgets, QtCore | |
from concurrent.futures import ThreadPoolExecutor | |
class SimpleController(QtCore.QObject): | |
progressChanged = QtCore.Signal(float) | |
def __init__(self, view=None): | |
super().__init__() |
""" | |
This is an attempt to make a poor man's version of Katana's look files. | |
We record any shader assignments on the descendants of a given group, each location is recorded as a relative path along | |
with the shading engine that is assigned to it. | |
Encoding: | |
given the following nodes: |
""" | |
This example shows how to capture a screenshot of a specific area of the screen. | |
Warning: This has not been tested with multiple monitors. | |
Example: | |
to capture the entire the current screen:: | |
from PySide2 import QtCore, QtWidgets |
import enum | |
import time | |
import textwrap | |
import qtawesome | |
from PySide2 import QtCore, QtWidgets, QtGui | |
__ICONS = {} |
CC=gcc | |
all: src/shim.c | |
$(CC) -shared -fPIC -o shim.so src/shim.c -ldl |