Skip to content

Instantly share code, notes, and snippets.

View IngIeoAndSpare's full-sized avatar
✈️
여행가고싶다

WI-Hyun-joong IngIeoAndSpare

✈️
여행가고싶다
  • korea
View GitHub Profile
@IngIeoAndSpare
IngIeoAndSpare / SegmentationImage2CocoJson.py
Created April 19, 2022 02:04
create coco json from segmentation image
import json
import os
import numpy as np
from skimage import measure
from shapely.geometry import Polygon, MultiPolygon
from PIL import Image
from tqdm import tqdm
# input your segmentation image dir
context_path = ""
@IngIeoAndSpare
IngIeoAndSpare / ObjFileReader.py
Last active March 28, 2023 00:15
Code snippet to determine whether tiles are included, not included, or across a boundary in a specific polygon area
## This reader is code written for the personal use of @IngIeoAnd0Spare.
## Unauthorized modification and use without permission is prohibited.