Hi alfredw,
Please try the solution below:
You can try to remove the background, which can help to solve your issue:
Find the section "Segmentation.Background"
in the nuitrack.config
file and replace the line "BackgroundMode": "dynamic"
with these two lines: "BackgroundMode" : "static_first_frame", "CalibrationFramesNumber": 20
It’ll turn on a static background model.
Wait for CalibrationFramesNumber
frames, and only then enter the scene. If you set 20 frames as mentioned above, the background should be static for 20 frames (no users, only background). This is very important - if a user appears in the frame immediately, during calibration, the background won’t be calculated and you won’t see any effect. You have to wait for some time after running the program to let Nuitrack calculate the background.
You can also set these options using Nuitrack API:
nuitrack::setConfigValue("Segmentation.Background.BackgroundMode", "static_first_frame"); nuitrack::setConfigValue("Segmentation.Background.CalibrationFramesNumber", "20");
However, we cannot guarantee that this option will work when a user is laying on a bed because the background should be static (such as a wall, for example).