객체 탐지 4

Google Colab에서 TensorFlow Image Object Detection API와 OpenCV 혼합해 이미지 Detection하기

Google Colab(구글 코랩)의 서버 컴퓨터는 리눅스를 사용하기 때문에 TensorFlow Image Object Detection API는 기존 visual studio code에서 하는것과 조금 다릅니다. 먼저 텐서플로우 버전을 낮추거나 하지않습니다. 테스트 결과 visual studio code에서 텐서플로우 2.5.0버전에서는 원활하게 실행이 되었지만, 구글 코랩에서는 2.5.0버전에서 import object_detection 에러가 나는것을 확인 했기 때문에 원래 텐서플로우 2.7.0버전으로 테스트 했습니다. #버전 확인 tf. __version__ 구글 코랩에서는 COCO API를 지원하기 때문에 따로 설치를 안해주셔도 됩니다. tensorflow github(깃허브)에 있는 repos..

객체 탐지 2021.12.30

TensorFlow Image Object Detection API와 OpenCV 혼합해 비디오 Detection하기

시작하기 전에 https://dbfoot.tistory.com/118를 참고하여 TensorFlow Object Detection API을 먼저 설치해야 합니다. 이 게시글에서 설명할 코드는 가상환경에서 실행합니다. 먼저 필요한 라이브러리 전부 import 해줍니다. import tensorflow as tf import os import pathlib import numpy as np import zipfile import matplotlib.pyplot as plt from PIL import Image import cv2 from object_detection.utils import ops as utils_ops from object_detection.utils import label_map_uti..

객체 탐지 2021.12.30

TensorFlow Image Object Detection API와 OpenCV 혼합해 이미지 Detection하기

시작하기 전에 https://dbfoot.tistory.com/118를 참고하여 TensorFlow Object Detection API을 먼저 설치해야 합니다. 이 게시글에서 설명할 코드는 가상환경에서 실행합니다. 먼저 필요한 라이브러리 전부 import 해줍니다. import tensorflow as tf import os import pathlib import numpy as np import zipfile import matplotlib.pyplot as plt from PIL import Image import cv2 from object_detection.utils import ops as utils_ops from object_detection.utils import label_map_uti..

객체 탐지 2021.12.29

윈도우에 TensorFlow Object Detection API (텐서플로우 오브젝트 디텍션 API)설치하기

https://tensorflow-object-detection-api-tutorial.readthedocs.io/en/latest/install.html Installation — TensorFlow 2 Object Detection API tutorial documentation Anaconda Python 3.8 (Optional) Although having Anaconda is not a requirement in order to install and use TensorFlow, I suggest doing so, due to it’s intuitive way of managing packages and setting up new virtual environments. Anaconda is a ..

객체 탐지 2021.12.29