import cv2 # For OpenCV modules (For Image I/O and Contour Finding) import numpy as np # For general purpose array manipulation import scipy . fftpack # For FFT2 #### imclearborder definition def imclearborder ( imgBW , radius ): # Given a black and white image, first find all of its contours imgBWcopy = imgBW . copy () contours , hierarchy = cv2 . findContours ( imgBWcopy . copy (), cv2 . RETR_LIST , cv2 . CHAIN_APPROX_SIMPLE ) # Get dimensions of image imgRows = imgBW . shape [ 0 ] imgCols = imgBW . shape [ 1 ] contourList = [] # ID list of contours that touch the border # For each contour... for idx in np . arange ( len ( contours )): # Get the i'th contour cnt = contours [ idx ] # Look at each point in the contour for pt in cnt : rowCnt = pt [ 0 ][ 1 ] colCnt = pt [ 0 ][ 0 ] # If this is within the radius of th...
python train_frcnn.py -o simple -p my_data.txt
답글삭제학습시키기
python test_frcnn.py -p /home/scrapmetal/yhenon-keras-frcnn/test
답글삭제테스트 하기.
my_data.txt
답글삭제./metal/1.png,0,0,78,76,metal
./metal/2.png,0,0,78,76,metal
./metal/3.png,0,0,78,76,metal
./metal/4.png,0,0,78,76,metal
프리레퀴짓즈
답글삭제h5py
Keras==2.0.3
numpy
opencv-python
sklearn