No one should be recorded having sex without their consent.
I might be justifiably annoyed if my partner recorded me non-sexually without my consent, but I think I’d have to give up that objection if someone had been stealing from them while they were out and they set up a camera to try and find the culprit… who turned out to be me.
I would absolutely divorce my spouse if I found out they were recording me without my consent. Sexual or not.