/usr/lib/scilab-sivp/demos/camera.sce is in scilab-sivp 0.5.3+svn287-2.1ubuntu2.
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 | // ====================================================================
function demo_camera()
r = messagebox("Do you really have a camera?", "modal", "info", ["Yes" "No"])
if r == 1 then
n = camopen();
if isdef('n') then
if n > 0 then
for idx = 1:100,
im = avireadframe(n);
imshow(im);
end;
aviclose(n);
end;
end;
end
endfunction
// ====================================================================
demo_camera();
clear demo_camera;
// ====================================================================
|