- Test with Mask R-CNN
<root>
is Blender installation path.
After the add-ons modification and testing, it is recommended to copy the add-ons to <root>/2.83/scripts/addons_contrib/
, which will no longer need sys.path.append("<addons path>")
-
Copy
Blender-Molecular-Script/molecular
toaddons/molecular
-
Copy
blainder-range-scanner/range_scanner
toaddons/range_scanner
-
Copy
bpycv/bpycv
toaddons/bpycv
-
Windows: Use
<root>\2.83\python\Scripts\pip.exe
to installrequirements.txt
. -
Linux: Use
<root>/2.83/python/bin/python3.7m
to installrequirements.txt
.
WARNING: make sure you are using Blender's Python to install requirements.
WARNING: make sure you add addons
to sys.path
or copy the add-ons to <root>/2.83/scripts/addons_contrib/
.
import sys sys.path.append("<addons path>") from addons import molecular from addons import range_scanner from addons import bpycv
The detail is here 👉 kissablemt/Blender-Molecular-Script
Run python make_release.py
first
The detail is here 👉 kissablemt/blainder-range-scanner
The detail is here 👉 kissablemt/bpycv
- Change
sys.path
inscripts/main.py
. - Change
root_dir
inconfigs/base.py
.
scripts/build_scene.py
contains the construction of the scene.
-
Camera:
create_camera()
- Change
location
androtation_euler
. utils.blender.look_at(camera, point)
can make the lens point towards the target point easily.- Some camera rendering settings will change after the function
scripts.generate_dataset.kinect_v1()
is called, but not includinglocation
androtation_euler
.
WARNING: DO NOT change the name of the camera, which will cause error in
scripts.generate_dataset.kinect_v1()
- Change
-
Light:
create_light()
Modify the light type and intensity as required.
-
Target:
create_target()
It Is just creating template target for particle system generation,location
androtation_euler
are not important.- Change
scale
. - Change material settings.
- Change
-
Contatiner:
create_container()
Used to collide with particles.- Change
location
,rotation_euler
andscale
. - Change material settings.
- Change
-
Emitter:
create_emitter()
Parameter settings need to view Blender-Molecular-Script source code or view it in the GUI interface.
scripts/generate_dataset.py
contains the depth camera simulation and rendering.
Place two objects close enough.
Reference from check intersection
- Build scene
- Generate point cloud
- Show in CloudCompare
- UV
- Stack
- Segmentation
- Segmentation, RGB, Depth
- Segmentation Seperate