More than 50 parents have packed a courtroom to confront a teacher accused of secretly filming students with spy cameras.