Prospecting or detecting by optical means