This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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 = "" | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | ## This reader is code written for the personal use of @IngIeoAnd0Spare. | |
| ## Unauthorized modification and use without permission is prohibited. | 
OlderNewer