loading

Embeding OpenCV code to microcontroller

Hello everyone...I am doing a project based on arduino, opencv and rfid....i am using the rfid tech for access control, i have put a constraint such that one has to use both the cards(rfid) and face detection for him/her to be granted access....the code for detection is working and then arduino and other components are working, how to  i connect the hardware(arduino) to the opencv code>
please help.
thanks