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 details)
Built Distribution
File details
Details for the file cuboid_sphere-0.1.0.tar.gz
.
File metadata
- Download URL: cuboid_sphere-0.1.0.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.27.1 setuptools/61.1.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
fc1fb7bfffb8e34a8776bf57761aafa350a06696c65bf4320ba5453684e79625
|
|
MD5 |
0814e93a338260ca02831497ef468123
|
|
BLAKE2b-256 |
b8924ac6015a36742cfe1ab762b6da03c5892d438567d6e040124c0820be386c
|
File details
Details for the file cuboid_sphere-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: cuboid_sphere-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.27.1 setuptools/61.1.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
73a70847aaabab6f1dba7857f02727af42c1965ea9cb3f390de0c153fdf1798d
|
|
MD5 |
fe262c4a104a996bd70ca2542439c6fe
|
|
BLAKE2b-256 |
bad3955d22318fd017849fe0f1f1a7e167f2f3aa10186eec97b92ebcbc9f0789
|