It specifically states in the article: "... it would be initially deployed against photos backed up in iCloud before expanding to full handset scanning."
Therefor this initially at least, seems to be focused on scanning in the cloud, expanding at some later date to on device scanning.