Java Open cv struggling to center video capture in jpanel

asked 2018-04-07 08:45:47 -0600

Brand new to OpenCV and trying to create an application which both captures the user while running and also allows the user to click a button to take an image from that frame to display on another panel using a layout manager. My only issue is that when recording it seems to cut itself off only recording the left side but not recording in the center like it should do.

image description

I have tried setting the g.drawimage and the canvas to the same input but it seems to not center it self.. any help will be appriciated

edit retag flag offensive close merge delete