Need help with detect things

detect

How can i detect like this ? (i am using magnitude.)