Rc2nerf
Simple tool for converting Reality Capture CSV files to NERF JSON files for https://github.com/NVlabs/instant-ngp
Install / Use
/learn @joreeves/Rc2nerfREADME
Reality Capture camera location to NERF conversion tool with per camera intrinsics
This tool is for use with https://github.com/NVlabs/instant-ngp and allows the use of Reality Capture camera locations.
Installation
Copy rc2nerf.py file into instant-ngp\scripts folder
Usage
Use Reality Capture to align cameras.
Export cameras alignment
Alignment -> Export -> Registration -> Internal/External camera parameters...
Save the CSV file exported from Reality Capture into the directory that contains your /images folder.
Open a shell (CMD, Powershell, Bash, etc.) and navigate to the directory with your CSV file and /images folder:
cd [PATH TO FOLDER]
Run the rc2nerf.py on this CSV file using the following command, replacing the text in brackets […] with the file names and paths on your machine:
Commands
Example:
python "[PATH TO iNGP]\rc2nerf.py" --csv_in "[NAME_OF_CSV_FILE].csv" --imgfolder .\images
The quotes are only required if you have spaces in any of the folder or file names.
Additional command examples
Scale the scene down by 0.01
python "[PATH TO iNGP]\rc2nerf.py" --csv_in "[NAME_OF_CSV_FILE].csv" --imgfolder .\images --scale 0.01
Display the cameras in 3d and set the camera size (for debugging only, requires installing matplotlib and pytransform3d)
python "[PATH TO iNGP]\rc2nerf.py" --csv_in "[NAME_OF_CSV_FILE].csv" --imgfolder .\images --plot --camera_size 1
Arguments:
| Argument | Default Value | Description | |------------------------|-----------------|----------------------------------------------| | --csv_in | None | specify csv file location | | --out | transforms.json | specify output file path | | --imgfolder | .\images | location of image folder | | --imgtype | jpg | ex.: jpg, png, ... | | --aabb_scale | 16 | sets the aabb scale | | --no_scene_orientation | False | disable the Reality Capture orientation | | --no_scale | False | disable the Reality Capture scale | | --no_center | False | disable the scene centering | | --plot | False | display the camera positions | | --camera_size | 0.1 | the size of the displayed cameras | | --debug_ignore_images | False | ignores the input images, for debugging only | | --threads | 8 | number of threads to use when reading images |
Related Skills
node-connect
338.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
338.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.4kCommit, push, and open a PR
