Why am I getting compile errors when deploying a matlab function that uses snapshot() from raspberry pi cameraboard together with deep learning?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Miguel Dorado
el 3 de Abr. de 2020
Comentada: Reeno Joseph
el 9 de Abr. de 2020
I have two sections in my function. First, it captures an image from the raspberry pi camera module. Deploying it on the hardware as standalone was successful. Then I added another set of code — using AlexNet to classify the captured image. After making the necessary changes in coder.DeepLearningConfig() (a new feature in MATLAB 2020a), this error came up during deployment:
error: cannot convert ‘uint64m_T*’ to ‘uint64_t’ for argument ‘1’ to ‘int EXT_CAMERABOARD_snapshot (uint64_t*, uint8_T8*, uint32_T*)’
.
.
.
recipe for target 'cameraboard.cpp.o' failed
It seems like there was a problem with compiling the cameraboard when using it with deep learning models. To check that there was really no problem with AlexNet, I tried deploying it without the cameraboard and it worked. Are there any fixes for this?
0 comentarios
Respuesta aceptada
Reeno Joseph
el 6 de Abr. de 2020
Hello Miguel,
This looks like a bug in the cpp codegen for cameraboard. We will fix this issue ASAP.
Meanwhile you can use webcam() API as a workaround.
-Reeno
3 comentarios
Reeno Joseph
el 9 de Abr. de 2020
Please try the index to access webcam.
raspiObj = raspi();
cam = webcam(raspiObj,0);
Más respuestas (0)
Ver también
Categorías
Más información sobre Image Data Workflows 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!