Is it possible to run videoobject on backside like parfeval?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I am trying to get images and processing from 2 cameras at different times. But it must be fast. So ı wonder that is it possible to run all capturing and processing operations can be done on worker? Sample code is like that
if triggercomes ==1
parfeval(@process,0,vidobject1,vidobject2)
end
Process function
function process(vidobject)
pause(1) % it waits for exact timing
im1 = getsnapshot(vidobject)
pause(1)
im2 = getsnapshot(vidobject)
end
But vid object is not working on parfeval how to solve this problem?
Thanks
0 comentarios
Respuestas (1)
Akshat Dalal
el 20 de Nov. de 2023
Hi Ahmet,
I understand that you want to work with 2 cameras parallelly and are facing some issues. There is an example by MathWorks which demonstrates how to do this. The example and its explanation are present in the following MATLAB Answer: https://www.mathworks.com/matlabcentral/answers/388286
The solution uses the ‘spmd’ function from the Parallel Computing Toolbox to execute code in parallel on a pool of workers. You could refer the following documentation to learn more: https://www.mathworks.com/help/parallel-computing/spmd.html
I hope this helps.
0 comentarios
Ver también
Categorías
Más información sobre Startup and Shutdown en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!