Running MATLAB automatically

Hi guys!
I am doing a project which involves automatic image processing of eggs. The specific problem I am now facing is how to continually feed images into my algorithm. The process is similar to a factory setting -> Copy image of egg into a folder, MATLAB runs the algorithm on the image and spits out a result, and then another image comes, and the images keep on coming
I have an ideas on how to implement this:
1) Have MATLAB continually running and have it woken up whenever an image comes into the folder. Either this can be in form of an interrupt, or it can check the contents of the folder every minute
Can this be done, or does anyone have ideas on how I can do this ?

1 comentario

nur izzati
nur izzati el 7 de Mzo. de 2012
hi..i want to do the same thing also, how do you do that? may you share ideas with me?
email me at nadya_mon87@yahoo.com

Iniciar sesión para comentar.

 Respuesta aceptada

Andreas Goser
Andreas Goser el 24 de Mzo. de 2011

0 votos

I suggest to completely skip of acquiring the images with another software and copying them into a folder and instead acquire the images directly in MATLAB using the Image Acquisition Toolbox

1 comentario

Shivam
Shivam el 24 de Mzo. de 2011
Thanks Andreas! I'll look into this!

Iniciar sesión para comentar.

Más respuestas (1)

Kaustubha Govind
Kaustubha Govind el 24 de Mzo. de 2011

0 votos

If you are able to program an interrupt, you can use the "matlab -r filename" option to have MATLAB run a specific script by invoking it from a shell script. Note that this start a new MATLAB session each time, so your script should terminate MATLAB using "quit" when it is done processing.
However, if the frequency at which images arrive is high, it will be more efficient to have one MATLAB session running continuously.

1 comentario

Shivam
Shivam el 24 de Mzo. de 2011
Hi Kaustubha,
I will look into this for sure. Right now we might go with the Image Acqusition toolbox since we are short of time on implementation...the project is due in two weeks :)

Iniciar sesión para comentar.

Preguntada:

el 24 de Mzo. de 2011

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by