- open the meshlab and import *.obj file
- centralize the mesh
Filters -> Normals, Curvatures and Orientations ->
Transform: Move, Translate, Center ->
check translate center of bbox to the origin -> Apply
- subdivide mesh
| import imageio | |
| import numpy as np | |
| import pyfastnoisesimd as fns # pip install pyfastnoisesimd | |
| import matplotlib.pyplot as plt | |
| def perlin_noise(frequency, width, height): | |
| noise = fns.Noise() | |
| noise.NoiseType = 2 # perlin noise |
| import os | |
| import cv2 | |
| import numpy as np | |
| from tqdm import tqdm | |
| import glob | |
| import json | |
| from pycocotools import mask as m | |
| import datetime |
| # read VOC style segmentation labels (.xml) and convert them to gray masked image(.jpg) | |
| # reference: http://www.programmersought.com/article/9208990502/ | |
| import os | |
| import cv2 | |
| import xml.dom.minidom | |
| image_path = "/home/seung/Dropbox/Project/IKEA-Assembly-Instuctions-Dataset/supervisely/chair/img/" | |
| annotation_path = "/home/seung/Annotations_step/" |