An automatic device for the analysis of spark chamber pictures