wu_xinjun
2022-06-21 65d1e46541fc1a11cbdfd27d51d00a6a341ad2ab
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import open3d as o3d
import os,sys
 
# add python path of src to sys.path
src_path = os.path.join(__file__, *(['..'] * 2))
src_path = os.path.abspath(src_path)
sys.path.insert(1, src_path)
 
from src.microwave.deviceTools import plot_ply
 
if __name__ == "__main__":
    def help():
        print("Usage: plot_ply.py [PLYfile or plyfolder]")
        print("EXAMPLE: plot_ply ./Manual_Microwave/pod1-2022-02-21-15-34-45/2522.ply")
        exit(1)
 
    if len(sys.argv) != 2:
        help()
    try:
        PLYfile = os.path.abspath(str(sys.argv[1]))
 
        plot_ply(PLYfile)
 
    except Exception as e:
        print(e)
        help()