configure the opencv environment