createMat unrecognised function error
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Malcolm
el 10 de Jul. de 2024
Comentada: Malcolm
el 10 de Jul. de 2024
I have installed Computer Vision Toolbox and Image Processing Toolbox but I still get this error when I try and use createMat:
Unrecognized function or variable 'createMat'.
Error in opencv_tests (line 4)
[inputMat,inputArray] = createMat(img);
My code:
import clib.opencv.*;
import vision.opencv.util.*
img = imread("cakes.jpeg");
[ocvMat,ocvArray] = createMat(img);
Looks like it's not picking up the add ons?
0 comentarios
Respuesta aceptada
Bhanu Prakash
el 10 de Jul. de 2024
Editada: Bhanu Prakash
el 10 de Jul. de 2024
Hi Malcolm,
You might also need to install the Add-on 'Computer Vision Toolbox Interface for OpenCV in MATLAB' to use the 'createMat' function. If you haven't installed it yet, please do so and try running the code again.
You can find more details about the 'createMat' funciton in the following documentation:
I hope this helps!
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!