I am working as java developer. I am working on a project that involves car number plate extraction. There are three steps involved in it: First conversion of image to grays scale, then detecting edges in the image using Canny Edge Detection algorithm, third is passing image to a matlab compiled code which extract number plate from the image. First two steps are successful. In third step when i pass image to matlab compiled .exe application it gives me error: Runtime erro '5': invalid procedure call or argument.
Below is code that i use for passing image to matlab compiled application:
Process p = null;
try {
// TODO add your handling code here:
p = Runtime.getRuntime()
.exec("c:/ImageResources/enp c:/ImageResources/edges.jpg");
} catch (IOException ex) {
Logger.getLogger(MatlabGUIForm.class.getName()).log(Level.SEVERE, null, ex);
}
System.out.println("Debug ");
try {
p.waitFor();
} catch (InterruptedException ex) {
Logger.getLogger(MatlabGUIForm.class.getName()).log(Level.SEVERE, null, ex);
}