求助,为何area_scanner_68xx实验中,不能检测到静态物体,
function [Header, idx] = getHeader(bytevec, idx)
idx = idx + 8; %Skip magic word
Header.subFrameNumber = 0;
word = [1 256 65536 16777216]';
Header.version = sum(bytevec(idx+[1:4]) .* word);
idx = idx + 4;
Header.totalPacketLen = sum(bytevec(idx+[1:4]) .* word);
idx = idx + 4;
Header.platform = sum(bytevec(idx+[1:4]) .* word);
idx = idx + 4;
Header.frameNumber = sum(bytevec(idx+[1:4]) .* word);
idx = idx + 4;
Header.timeCpuCycles = sum(bytevec(idx+[1:4]) .* word);
idx = idx + 4;
Header.numDetectedObj = sum(bytevec(idx+[1:4]) .* word);
fprintf('Header.numDetectedObj = %d \n', Header.numDetectedObj)
idx = idx + 4;
Header.numTLVs = sum(bytevec(idx+[1:4]) .* word);
idx = idx + 4;
if Header.platform == hex2dec('a1642')
Header.subFrameNumber = sum(bytevec(idx+[1:4]) .* word);
idx = idx + 4;
end
if Header.platform == hex2dec('a1842')
Header.subFrameNumber = sum(bytevec(idx+[1:4]) .* word);
idx = idx + 4;
end
if Header.platform == hex2dec('A1843') ||…
Header.platform == hex2dec('A6843') Header.subFrameNumber = sum(bytevec(idx+[1:4]) .* word);
idx = idx + 4;
end
return
该函数中输入的数据流中bytevec(idx+[1:4])为[0 0 0 0]',返回的Header.numDetectedObj 为0,当物体静止时,如果我想检测到静态物体,需要如何操作?
user6228350:
回复 Chris Meng:
意思就是在该实验中可以检测静止物体,但是该物体在前15帧不能出现。
我先去试试,谢谢!
user6228350:
回复 Chris Meng:
我用的是toolbox是3.6,IWR6843是es1.0的,所以里面没有这个功能