Javafx Using Opencv For Python Syntax For Loop