'Python/시각화' 카테고리의 글 목록 — 뚝딱이

Python/시각화

Python/시각화

[CV] tensor 이미지에서 엣지 추출하기

from torch.utils.data import DataLoader의 DataLoader로 저장된 tensor image 엣지 추출하기 import cv2 img, label = train_dataset[0] #numpy로 바꿔서 진행해야함 img = img.detach().cpu().numpy() # tensor -> numpy # [C,H,W] -> [H,W,C] img = np.transpose(img, (1, 2, 0)) #color로 나오게 수치 조정 img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB) img = img.astype(np.uint8).copy() #엣지 추출 edge_img = cv2.Canny(img, 100, 500) #안해도 되지만 이미지가 작다..

Python/시각화

[Folium] Geojson 지도 만들기

http://www.gisdeveloper.co.kr/?p=2332 대한민국 최신 행정구역(SHP) 다운로드 – GIS Developer www.gisdeveloper.co.kr 여기서 자신이 사용할 지도 shp 파일을 선택하여 다운받는다. https://mapshaper.org/ mapshaper Drop or paste files here or select from a folder Shapefile, GeoJSON, TopoJSON, DBF and CSV files are supported Files can be loose or in a zip archive Quick import Drop or paste files here to import with default settings mapshaper...

Python/시각화

[Python] Matplotlib rcParams

Matplot 데이터 시각화를 위해 쓰임 순서 pyplot를 사용하여 코딩 객체들을 생성 (Figure, Line, Axes) 표로 그리기 rcParams (Runtime Configuration Parameters) rcParams의 딕셔너리 값을 바꿔주면 그래프 그리는 방식을 바꿀 수 있음 https://matplotlib.org/stable/tutorials/introductory/customizing.html Customizing Matplotlib with style sheets and rcParams — Matplotlib 3.5.2 documentation Tips for customizing the properties and default styles of Matplotlib. Settin..

파송송
'Python/시각화' 카테고리의 글 목록