Skip to content

Instantly share code, notes, and snippets.

View VanDavv's full-sized avatar

Łukasz Piłatowski VanDavv

View GitHub Profile
@VanDavv
VanDavv / workflow.yml
Created February 21, 2023 11:19
GitHub Actions Workflow to publish to PyPI
name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI
on: push
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.10
@VanDavv
VanDavv / main.py
Created February 26, 2024 08:04
Convert RGB stream to grayscale using DepthAI ImageManip node
import cv2
import depthai as dai
pipeline = dai.Pipeline()
cam = pipeline.create(dai.node.ColorCamera)
cam.setCamera("color")
cam.setResolution(dai.ColorCameraProperties.SensorResolution.THE_1080_P)
manip = pipeline.create(dai.node.ImageManip)