Have you already checked out programming tutorial in the Play section of V5 knowledge base guide for Vision Sensor?
Also, there are instructions on how to setup and use signatures as well as code example here: