mirror of
https://github.com/DeeJanuz/frametop.git
synced 2026-10-06 06:00:09 +02:00
- fh-camd --with-color publishes the Arcturus colour pair (luma, half size, 30 fps) to the ring, flagged FH_CAM_COLOR. fh-tracker records them, and fh-replay --cams mono|color|all tracks with them, using the module's EEPROM calibration (load_color_calibration). tools/check_color.py checks which node is left and how the crop maps. - Pinch detection per hand (trackd/pinch.h), published to $XDG_RUNTIME_DIR/frame-hands/gestures (include/fh_gestures.h). It has begin and end counters, times, the pinch point, and the begin point for drags. tools/watch_gestures.py shows it live, and fh-replay reports it. - fh-replay --depth and tools/depth_report.py measure the depth without ground truth: noise along the line of sight against across it, the one-camera guess, and a simulated camera loss. - fh-tracker --swap-sides, --ring, --keep-presence, --record-only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
29 lines
1.1 KiB
Makefile
29 lines
1.1 KiB
Makefile
# fh-tracker, the C++ tracker. Needs ncnn built into ../vendor/ncnn/build/install
|
|
# (see README.md) and jsoncpp.
|
|
NCNN ?= ../vendor/ncnn/build/install
|
|
CXXFLAGS ?= -O2 -g -Wall -Wextra -Wno-unused-parameter
|
|
CXXFLAGS += -std=c++17 -fopenmp -I$(NCNN)/include/ncnn
|
|
LDLIBS = $(NCNN)/lib/libncnn.a -ljsoncpp -fopenmp -lpthread
|
|
|
|
SRC = main.cpp calib.cpp nets.cpp tracker.cpp io.cpp record.cpp pinch.cpp
|
|
HDR = calib.h geom.h nets.h tracker.h io.h record.h pinch.h ../camd/fhring.h ../include/fh_hands.h ../include/fh_gestures.h
|
|
|
|
all: fh-tracker fh-replay fh-ringplay
|
|
|
|
fh-tracker: $(SRC) $(HDR)
|
|
$(CXX) $(CXXFLAGS) -o $@ $(SRC) $(LDLIBS)
|
|
|
|
fh-replay: replay.cpp calib.cpp nets.cpp tracker.cpp record.cpp pinch.cpp io.cpp $(HDR)
|
|
$(CXX) $(CXXFLAGS) -o $@ replay.cpp calib.cpp nets.cpp tracker.cpp record.cpp pinch.cpp io.cpp $(LDLIBS)
|
|
|
|
fh-ringplay: ringplay.cpp record.h ../camd/fhring.h
|
|
$(CXX) $(CXXFLAGS) -o $@ ringplay.cpp
|
|
|
|
clean:
|
|
rm -f fh-tracker fh-replay fh-ringplay nettest
|
|
|
|
.PHONY: all clean
|
|
|
|
nettest: nettest.cpp nets.cpp nets.h geom.h
|
|
$(CXX) $(CXXFLAGS) -o $@ nettest.cpp nets.cpp $(LDLIBS)
|