/usr/lib/scilab-sivp/demos/camshift.sce is in scilab-sivp 0.5.3+svn287-2ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | // ====================================================================
function demo_camshift()
filename = fullpath(getSIVPpath() + 'images/red-car-video.avi');
n = aviopen(filename);
// skip the first 4 frames
im = avireadframe(n);
im = avireadframe(n);
im = avireadframe(n);
im = avireadframe(n);
im = avireadframe(n);
obj_win = camshift(im, [21, 2, 50, 40]); //initialize tracker
while ~isempty(im),
obj_win = camshift(im); //camshift tracking
im = rectangle(im, obj_win, [0,255,0]);
imshow(im);
im = avireadframe(n);
end
aviclose(n);
endfunction
// ====================================================================
demo_camshift();
clear demo_camshift;
// ====================================================================
|