python opencv videocapture example

import numpy as np import cv2 cap = cv2.VideoCapture(0) while(True): # Capture frame-by-frame ret, frame = cap.read() # Our operations on the frame come here gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) #…

0 Comments

ubuntu 18.04 opencv build on jetson

Jetpack 4.2는 Ubuntu 18.04로 되어 있어서 해당 버전에 맞는 OpenCV build 방법이 필요하다. 다음 링크의 스크립트를 참고하여 빌드를 했다. https://github.com/AastaNV/JEP/blob/master/script/install_opencv4.0.0_Nano.sh #!/bin/bash # # Copyright (c) 2018, NVIDIA CORPORATION. All rights…

0 Comments

python 3.6에서 numpy 설치할 때 에러

don't know how to compile Fortran code on platform 'posix' C compiler: aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC compile options: '-Inumpy/core/src/common -Inumpy/core/src…

0 Comments

Build OpenCV 3.4 on Jetson TX2

참고 : https://www.jetsonhacks.com/2017/04/05/build-opencv-nvidia-jetson-tx2/ $ git clone https://github.com/jetsonhacks/buildOpenCVTX2.git $ cd buildOpenCVTX2 $ ./buildOpenCV.sh 위와 같이 실행하면 다음과 같이 명령이 수행되는 것을 확인 할 수 있다. nvidia@tegra-ubuntu:~/buildOpenCVTX2$ ./buildOpenCV.sh Build configuration: NVIDIA Jetson…

0 Comments