Is it possible to run videoobject on backside like parfeval?

3 visualizaciones (últimos 30 días)
Ahmet Gökhan POYRAZ
Ahmet Gökhan POYRAZ el 18 de Mzo. de 2022
Respondida: Akshat Dalal el 20 de Nov. de 2023
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

Respuestas (1)

Akshat Dalal
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.

Categorías

Más información sobre MATLAB Support Package for IP Cameras en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by