There are a lot of resources on the web that can help you to accomplish your project. Since you are starting with it I recommend you to check different guides and projects made by other users. I've found some useful guides that I hope you find them interesting:
- OpenCV in Intel Edison (Windows)
- Real-time face detection using OpenCV, Node.js, and WebSockets | Esther Jun Kim
- Computer Vision on Intel Edison using your smartphone camera
- Subtracting the background from a video with Intel Edison and OpenCV
Additionally to the links above, you can search in the community for threads about using OpenCV as well.