Celestial Object Rendering TOol (CORTO) is a bundle of codes that can be used to generate synthetic images-label pairs of celestial bodies.
Project description
corto v.1.0
The Celestial Object Rendering TOol (CORTO) is a library that can be used to generate synthetic images-label pairs of celestial and artificial bodies.
At the current stage, the tool is made available as a beta version (v.0.1) with some toy-problem tutorials for rendering image-label pairs of Eros, Itokawa, Bennu, Didymos, and The Moon. The scenarios are set with the possibility to generate both images and labels. In the current version, corto uses Blender 4.0 and Python 3.0
Setup
To install the library you have two options:
- git clone
- pip install
Then you can install a virtual environment in VSC with the modules lister in the requirements.txt
If you have problems installing the bpy library into VSC, contact the authors.
To run a tutorial, you need to populate the input folder with one of the scenarios from:
https://drive.google.com/drive/folders/1K3e5MyQin6T9d_EXLG_gFywJt3I18r6H?usp=sharing
Download the scenario of interest, and then locate it into the input folder. Then run the corresponding script within the "tutorials" folder. For example, if you want to generate some image-label pairs of Didymos, after cloning/pip-installing the repository and downloading the folder, your directory should look like this:
- cortopy
- init.py
- _Body.py
- ...
- input
- S05_Didymos_Milani (from GDrive)
- monet
- input
- output
- main_MONET.py
- scripts
- tutorials
- ...
- S06_Didymos_Milani.py
- .gitignore
- LICENSE
- requirements.txt
- README.md (from GitHub)
Folders descriptions
(cortopy) all classes of the corto library are included in this folder
(input) input folder, here is were you need to position all necessary input to run a scenario
(monet) this folder contains the monet tool. Refer to the specific readme within this folder to run monet and generate proceedural asteroid models
(scripts) all sorts of useful scripts are grouped here
(tutorials) the tutorial scripts for Eros, Itokawa, Bennu, Didymos, and the Moon are contained here
How to run a tutorial script (Visual Studio Code reccomended)
-
Install the repository
-
Install the bpy module in VSC
-
Install the other libraries listed in the requirements.txt into a virtual environment
-
Download the input data for a specific tutorial from https://drive.google.com/drive/folders/1K3e5MyQin6T9d_EXLG_gFywJt3I18r6H?usp=sharing (For example, download the folder S05_Didymos)
-
Run the script from the "tutorial" folder (For example, the S05_Didymos.py)
-
You should see images and labels generated in an output folder
How to run your own script
To shape your own scenario, you can imitate the ones provided in the tutorials. In case you are happy with one of the scenarios, you can always change the inputs and or the tutorial script. Otherwise, if you want to use this library for a different target, you can also imitate how the tutorials script build on it.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cortopy-0.0.1a0.tar.gz.
File metadata
- Download URL: cortopy-0.0.1a0.tar.gz
- Upload date:
- Size: 18.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3ecbdd3bfc814c928880396225a239044378f5d2164ec5ed355ed4934db7c43
|
|
| MD5 |
bedf5e148e0b52051473ee35e3dadace
|
|
| BLAKE2b-256 |
569311ef5a15a17171e6c4818583c882e72ba5218884548cd14fae329731ed06
|
File details
Details for the file cortopy-0.0.1a0-py3-none-any.whl.
File metadata
- Download URL: cortopy-0.0.1a0-py3-none-any.whl
- Upload date:
- Size: 22.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67a1cbb5e9acdc7887e09f100d442fd6ccaa33f224e4ec4eba13691c8e87013c
|
|
| MD5 |
bdf0ed86c9f1ccf305eb8d459753ae48
|
|
| BLAKE2b-256 |
d8704ac1936caea2a77a2bc070433722d78ffb5b5f714f8e2f6c1d5240740e1c
|