Walking is a participle introducing a nonfinite clause: They saw Tom's dog (who was) walking on his back legs. Take is a bare infinitive (no 'to') also introducing a nonfinite clause. Both forms appear with sense experiences: I heard the man burp.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.