Azure Kinect DK-inspelare
Den här artikeln beskriver hur du kan använda k4arecorder
kommandoradsverktyget för att registrera dataströmmar från sensor-SDK till en fil.
Kommentar
Azure Kinect-inspelaren spelar inte in ljud.
Alternativ för inspelare
k4arecorder
Har olika kommandoradsargument för att ange utdatafilen och inspelningslägena.
Inspelningar lagras i Formatet Matroska .mkv. Inspelningen använder flera videospår för färg och djup, samt ytterligare information som kamerakalibrering och metadata.
k4arecorder [options] output.mkv
Options:
-h, --help Prints this help
--list List the currently connected K4A devices
--device Specify the device index to use (default: 0)
-l, --record-length Limit the recording to N seconds (default: infinite)
-c, --color-mode Set the color sensor mode (default: 1080p), Available options:
3072p, 2160p, 1536p, 1440p, 1080p, 720p, 720p_NV12, 720p_YUY2, OFF
-d, --depth-mode Set the depth sensor mode (default: NFOV_UNBINNED), Available options:
NFOV_2X2BINNED, NFOV_UNBINNED, WFOV_2X2BINNED, WFOV_UNBINNED, PASSIVE_IR, OFF
--depth-delay Set the time offset between color and depth frames in microseconds (default: 0)
A negative value means depth frames will arrive before color frames.
The delay must be less than 1 frame period.
-r, --rate Set the camera frame rate in Frames per Second
Default is the maximum rate supported by the camera modes.
Available options: 30, 15, 5
--imu Set the IMU recording mode (ON, OFF, default: ON)
--external-sync Set the external sync mode (Master, Subordinate, Standalone default: Standalone)
--sync-delay Set the external sync delay off the master camera in microseconds (default: 0)
This setting is only valid if the camera is in Subordinate mode.
-e, --exposure-control Set manual exposure value (-11 to 1) for the RGB camera (default: auto exposure)
Registrera filer
Exempel 1. Record Depth NFOV unbinned (640x576) mode, RGB 1080p at 30 fps with IMU. Tryck på CTRL-C-tangenterna för att stoppa inspelningen.
k4arecorder.exe output.mkv
Exempel 2. Spela in WFOV som inte är binned (1MP), RGB 3072p vid 15 fps utan IMU i 10 sekunder.
k4arecorder.exe -d WFOV_UNBINNED -c 3072p -r 15 -l 10 --imu OFF output.mkv
Exempel 3. Spela in WFOV 2x2 på 30 fps i 5 sekunder och spara till output.mkv.
k4arecorder.exe -d WFOV_2X2BINNED -c OFF --imu OFF -l 5 output.mkv
Dricks
Du kan använda Azure Kinect Viewer för att konfigurera RGB-kamerakontroller före inspelning (t.ex. för att ange manuell vitbalans).
Verifiera inspelning
Du kan öppna .mkv-utdatafilen med Azure Kinect Viewer.
För att extrahera spår eller visa filinformation är verktyg som mkvinfo
är tillgängliga som en del av MKVToolNix-verktygslådan.