2017-02-16 15:03:31 -0600 | asked a question | Reading the image in buffer in java Hello. I Use OpenCV3.2. How to write the image to the buffer java. Now the image is written to hard drive. Thank You. public class Video { public static void main (String args[]){ JFrame jf = new JFrame(); jf.setSize(640,480); jf.setLayout(null); JLabel jl = new JLabel(); jf.setLayout(null); jf.add(jl); jl.setBounds(0,0,640,480); Image tempIm; System.loadLibrary(Core.NATIVE_LIBRARY_NAME); VideoCapture camera = new VideoCapture(0); camera.set(Videoio.CV_CAP_PROP_FRAME_WIDTH, 1280); camera.set(Videoio.CV_CAP_PROP_FRAME_HEIGHT, 720); } |