我使用这个伟大的项目https://github.com/lessthanoptimal/BoofCV/tree/v0.23/examples/src/boofcv/examples
试图检测视频中的人数。目前,如果我知道预定的初始位置,它对我跟踪对象非常有用
Quadrilateral_F64 location = new Quadrilateral_F64(
411.0, 262.0,
526.0, 253.0,
535.0, 358.0,
415.0, 349.0);
ImageBase frame = video.next();
tracker.initialize(frame,location);
........
// Track the object across each video frame and display the results
long previous = 0;
while( video.hasNext() ) {
frame = video.next();
boolean visible = tracker.process(frame,location);
为了检测人数,我需要使用剪影吗?或者什么是正确的实现?我试过 Quadrilateral_F64 但它有四个正方形坐标。
目标:提供视频,并在输出上将“人数”打印到控制台:1 或 2 或 10
我在正确的 API Quadrilateral_F64 中吗?