| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Key features:
git clone --recursive https://github.com/liu115/renderpy # clone with submodules
conda create -n renderpy python=3.9
conda activate renderpy
pip install .import renderpy
render_engine = renderpy.Render()
render_engine.setupMesh(MESH_PATH)
camera_model = "OPENCV_FISHEYE"
render_engine.setupCamera(
height, width,
fx, fy, cx, cy,
camera_model,
params, # Distortion parameters np.array([k1, k2, k3, k4]) or np.array([k1, k2, p1, p2])
)
near = 0.05
far = 20.0
rgb, depth, vert_indices = render_engine.renderAll(world_to_camera, near, far)render_engine.renderAll render RGB, depth, and corresponding vertex indices of the mesh
If some dependencies are missing during build, you can install them by:
# Build tools
apt-get install build-essential cmake git
# OpenGL related
apt-get install libgl1-mesa-dev libglu1-mesa-dev libxrandr-dev libxext-dev
# OpenCV
apt-get install libopencv-dev
# If missing gflags
apt-get install libgflags-dev
apt-get install libboost-all-dev # for mLibIf you encounter missing libstdc++.so.6 error in conda environment, try this:
Add this line to your .bashrc or .zshrc
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6
This is because before gcc/g++ 9, it should be #include <experimental/filesystem> instead (see reference). You can fixed it by replace all the #include <filesystem> with #include <experimental/filesystem> and add link_libraries(stdc++fs) in CMakeLists.txt
Currently, the thirdparty/eigen-3.4.0/Eigen has been modified:
| Back | FazBrowse Home | New Git URL |