video display from BeagleBone black is not proper


I’m running a simple video read and video display model from Simulink connecting a webcam to the beaglebone black hardware and connecting a monitor to the HDMI port. the video output on monitor is not proper and it’s scattered with green colour. The same is attached herewith. Please do the needful to resolve the issue.