modified to add a system opencv dependency