Generally, you cannot just record people without their consent; but this also largely depends on the jurisdiction/situation.
Almost nowhere (or actually nowhere?) are you allowed to set up a surveillance device into a space that is not public and it is not owned by you.