coditional opencv support