Is it illegal to hide a camera in your child’s room without consent in Texas?

Like if a parent wants to be "overprotective" and "strict" is it legal or can the child report it to the authorities?

I've heard conflicting answers and I want to get this straight.

Edit: I don't practice this, I'm just curious on the law. No need to dislike.