Skip to content

Instantly share code, notes, and snippets.

macOSでopencv2.frameworkを使う

注意点

OpenCV 4.7.0時点の情報ですが、opencv2.frameworkを作成する環境に以下の制約があります。

  • MacOS 10.15 or later
  • Python 3.6 or later
  • CMake 3.18.5/3.19.0 or later (make sure the cmake command is available on your PATH)
  • Xcode 12.2 or later (and its command line tools)
@atinfinity
atinfinity / reComputer_J4012_CUDA Device Query.md
Created March 26, 2023 14:27
reComputer J4012(Jetson Orin NX) CUDA Device Query
 CUDA Device Query (Runtime API) version (CUDART static linking)

Detected 1 CUDA Capable device(s)

Device 0: "Orin"
  CUDA Driver Version / Runtime Version          11.4 / 11.4
  CUDA Capability Major/Minor version number:    8.7
  Total amount of global memory:                 14486 MBytes (15189422080 bytes)
  (008) Multiprocessors, (128) CUDA Cores/MP:    1024 CUDA Cores
@atinfinity
atinfinity / raspios-legacy-opencv4.7.0.md
Last active January 6, 2023 19:07
raspios-opencv4.7.0

environment

  • Raspberry Pi 4 Model B/8GB
  • 2022-09-22-raspios-buster-armhf.img.xz

setup

sudo apt update
sudo apt upgrade
@atinfinity
atinfinity / Dockerfile
Last active November 3, 2022 01:28
VHS Docker
FROM ubuntu:22.04
ARG UID=1000
ARG GID=1000
# add new sudo user
ENV USERNAME vhs
ENV HOME /home/$USERNAME
RUN useradd -m $USERNAME && \
echo "$USERNAME:$USERNAME" | chpasswd && \
@atinfinity
atinfinity / VPI_python_sample.md
Last active October 31, 2022 00:28
VPI Python APIを使ってみる
@atinfinity
atinfinity / Dockerfile
Created June 1, 2022 14:54
OnnxGraphQt_Docker
FROM ubuntu:20.04
ARG GID=1000
ARG UID=1000
# add new sudo user
ENV USERNAME onnx
ENV HOME /home/$USERNAME
RUN groupadd -f -g ${GID} ${USERNAME}
RUN useradd -m $USERNAME -u ${UID} -g ${GID} && \
@atinfinity
atinfinity / Dockerfile
Last active August 3, 2023 02:24
Autoware Auto(w/o ADE) on Docker
FROM nvidia/cuda:11.1-cudnn8-devel-ubuntu20.04
ENV NVIDIA_VISIBLE_DEVICES ${NVIDIA_VISIBLE_DEVICES:-all}
ENV NVIDIA_DRIVER_CAPABILITIES ${NVIDIA_DRIVER_CAPABILITIES:+$NVIDIA_DRIVER_CAPABILITIES,}graphics
# add new sudo user
ENV USERNAME autoware
ENV HOME /home/$USERNAME
RUN useradd -m $USERNAME && \
echo "$USERNAME:$USERNAME" | chpasswd && \
@atinfinity
atinfinity / clDeviceQuery.md
Created April 19, 2021 08:55
clDeviceQuery(M1 MacBook)
clDeviceQuery Starting...

1 OpenCL Platforms found

 CL_PLATFORM_NAME: 	Apple
 CL_PLATFORM_VERSION: 	OpenCL 1.2 (Dec 21 2020 17:26:51)
OpenCL Device Info:

 1 devices found supporting OpenCL on: Apple
@atinfinity
atinfinity / launch_container.sh
Last active January 30, 2021 01:59
script to use depthai(gen2_develop) on Docker container
XSOCK=/tmp/.X11-unix
XAUTH=/tmp/.docker.xauth
touch $XAUTH
xauth nlist $DISPLAY | sed -e 's/^..../ffff/' | xauth -f $XAUTH nmerge -
docker run --privileged --rm -it \
--volume=$XSOCK:$XSOCK:rw \
--volume=$XAUTH:$XAUTH:rw \
--volume=/dev/bus/usb:/dev/bus/usb \
--shm-size=1gb \
@atinfinity
atinfinity / Dockerfile
Last active March 8, 2021 05:46
depthai Dockerfile(does not work)
FROM ubuntu:18.04
# add new sudo user
ENV USERNAME depthai
ENV HOME /home/$USERNAME
RUN useradd -m $USERNAME && \
echo "$USERNAME:$USERNAME" | chpasswd && \
usermod --shell /bin/bash $USERNAME && \
usermod -aG sudo $USERNAME && \
mkdir /etc/sudoers.d && \