Finding Cuboid and Sphere in 3D Image and 2D image
Project description
Setup
-
Pre Requirements:
- Install Docker: Link
- Install Docker Compose:
pip install docker-compose
-
Setup Docker:
# Build docker docker-compose up -d # OR # Pull prebuilt docker docker pull bendang/cuboid_sphere && docker-compose up -d
-
Install package:
pip install cuboid-sphere
Test
from cuboid_sphere import call_2d, call_3d, display_2d_result, display_3d_result, save_point_cloud
# if docker hosted locally
# ip = 1.2.3.4
ip = "localhost"
# Port based on docker compose settings
port = "8888"
# Task 1
# hdf5_path = "/PATH/TO/HDF5_FILE.hdf5"
hdf5_path = 'test_data/cuboid-sphere.hdf5'
result = call_3d(hdf5_path, ip=ip, port=port)
save_point_cloud(result["point_cloud"], "/PATH/TO/SAVE.hdf5") # saving Point Cloud
display_3d_result(hdf5_path, result) # display volume, surface area, centroid and depth map
# Task 2
# image_path = "/PATH/TO/IMAGE.png"
image_path = "test_data/cuboid-sphere.png"
result = call_2d(image_path, ip=ip, port=port)
display_2d_result(image_path, result)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cuboid_sphere-0.1.0.tar.gz
(9.2 kB
view hashes)
Built Distribution
Close
Hashes for cuboid_sphere-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73a70847aaabab6f1dba7857f02727af42c1965ea9cb3f390de0c153fdf1798d |
|
MD5 | fe262c4a104a996bd70ca2542439c6fe |
|
BLAKE2b-256 | bad3955d22318fd017849fe0f1f1a7e167f2f3aa10186eec97b92ebcbc9f0789 |