A woman was lying on her bed when she allegedly spotted a camera hidden in a ceiling light fitting before calling 999, a court heard