How to use SEEDS for superpixel segmentation ** Opencv에서 제공하는 superpixel segmentation algorithm, SEEDS 사용법 ** Background: Ubuntu16.04LTS + Anaconda3 + Python3.6 + Opencv3.x The algorithm SEEDS (which is originated by MV Bergh et al, 'SEEDS: Superpixels Extracted vis Energy-Driven Sampling') is a built-in function for image superpixel segmentation. // CODES //////////////////////////////import cv2 import numpy as np # image path dir = '/hom.. 더보기 How to set anaconda python as default ** 우분투에서 아나콘다 파이썬을 기본 파이썬으로 설정 ** step1) open a terminal step2) edit bashrc file by typing$ gedit ~/.bashrc step3) add the following comment at the bottom of the file## ANACONDAexport PATH=/home/dooseop/anaconda3/bin:${PATH} step4) close the terminal and open again, and check $which python-> /home/username/anaconda3/bin/python 더보기 [tensorflow] How to read a bmp file and feed it into CNN ** BMP, JPG 등 이미지 파일 읽어서 feed_dict 형식으로 CNN 입력하기 ** Assume you trained a CNN which takes RGB image of size (height, width, channel) as an input. After loading the trained CNN graph from, you may want to feed a test image into the CNN and see the inference result. // CODE ///////////////////////////import tensorflow as tf import numpy as np import os import skimage.io as io from skimage import tr.. 더보기 이전 1 ··· 58 59 60 61 62 63 64 ··· 66 다음