Many people do not realise that upskirting is a crime and fail to take the offence seriously, a senior police officer has warned.