changing piCamera opencv code