B.C.'s privacy commissioner says it's OK for police to identify Stanley Cup rioters with facial-recognition software, but they have to get a court order first.

Elizabeth Denham says the Freedom of Information and Protection of Privacy Act prohibits one government agency from collecting information, such as a driver's licence, and using it for another purpose.

However, she says a provision in the law allows information to be disclosed to police.

ICBC spokesman Adam Grossman says police could provide images, and the corporation's software would try to match them with photos in its database.