Connect to camera using opencv

You’re getting a NullPointerException in paintComponent method at OCRComponent.java:116.

You’re dereferencing a null value somewhere in that method. Maybe the cam variable, or maybe cam.lastFrame.

3 Likes