Machine vision inspection of injection molding machine