I think if I perceive someone a certain way, then it means I saw something in their behavior that caused me to view them as such.
If I perceive someone as a troublemaker, then something in their behavior suggested that they make trouble. Of course I could be wrong. But in general, someone’s characteristics gives people certain perceptions of them (not taking into account prejudgement as soon as seeing the person).