Take (someone) for (someone or something)

To mistake someone for someone or something.

The man took the boy for a robber and called the police.