Smart marble cutting through a vision system