TC_tracker
TC_tracker copied to clipboard
forwardTracking issue
Hi,
My detection file follows the format of: frame_id, -1, xmin, ymin, width, height, confidence, -1, -1, -1, class
Any idea why I'm getting the following error?
Subscript indices must either be real positive integers or logicals.
Error in forwardTracking (line 93)
bbox_img = img2(in_bbox2(n,2):in_bbox2(n,2)+in_bbox2(n,4)-1,in_bbox2(n,1):in_bbox2(n,1)+in_bbox2(n,3)-1,:);
Error in TC_tracker (line 91)
[track_struct.track_obj{n}, track_struct.track_obj{n+1}, track_struct.tracklet_mat, track_struct.track_params]
= forwardTracking(...
Error in demo (line 30)
TC_tracker(img_path,det_path,ROI_path,param,img_save_path,seq_name,...
Thanks! Dan
Hi Dan,
I think it is the bouding box issue. Can you check if the bounding box has integer values and inside the image? Matlab requires the index to be positive and integer values. Let me know if you have questions.
Sincerely, Gaoang
On Tue, Mar 12, 2019 at 8:12 AM danb31 [email protected] wrote:
Hi,
My detection file follows the format of: frame_id, -1, xmin, ymin, width, height, confidence, -1, -1, -1, class
Any idea why I'm getting the following error?
Subscript indices must either be real positive integers or logicals.
Error in forwardTracking (line 93) bbox_img = img2(in_bbox2(n,2):in_bbox2(n,2)+in_bbox2(n,4)-1,in_bbox2(n,1):in_bbox2(n,1)+in_bbox2(n,3)-1,:);
Error in TC_tracker (line 91) [track_struct.track_obj{n}, track_struct.track_obj{n+1}, track_struct.tracklet_mat, track_struct.track_params] = forwardTracking(...
Error in demo (line 30) TC_tracker(img_path,det_path,ROI_path,param,img_save_path,seq_name,...
Thanks! Dan
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/GaoangW/TC_tracker/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/ANlFcvIVbsUShHEKPVBVSG49wKyxZ-V7ks5vV8PqgaJpZM4brIHI .
Hello danb31:
Uncomment the 3 line in TC_tracker.m should resolve this. This is because the coordinate of your BBox is 0. % M(:,1) = M(:,1)+1; % M(:,3) = M(:,3)+1; % M(:,4) = M(:,4)+1;
Best, Will
@GaoangW ,Sir, I came from the link provided by the code of 2018AICity_TeamUW. I want to ask why the video produced by TC_tracker has no track lines. Do you need TNT code? But TNT seems to only apply to people's tracking and is not suitable for cars.
@danb31 @ChiyuanFeng @GaoangW Can you guys please share how you ran the code? I am not quite sure what files to execute and what arguments to use while running the files.