MATLAB 2018b is unable to load libmwimagesocv.dll when it is trying to use images.int​ernal.algk​means

4 views (last 30 days)
I am using MATLAB 2018b x64. Everytime I am trying to use the K-means clustering, I am seeing the following error.
Error using images.internal.algkmeans
Can't load 'C:\Program Files\MATLAB\R2018b\bin\win64\libmwimagesocv.dll': The specified
module could not be found.
Could anyone please help me with the solution?

Answers (1)

Rishabh Gupta
Rishabh Gupta on 15 Jan 2019
Edited: Rishabh Gupta on 15 Jan 2019
Hi Ranit,
This might be happening due to a licensing issue.
1. Please verify if the file is actually present in the location pointed to. For this stack trace, the file 'libmwimagesocv.dll' should be present in the location 'C:\Program Files\MATLAB\R2018b\bin\win64\'. If it is not present, reinstalling MATLAB might help.
2. Antivirus products may cause the dll to not be accessible from MATLAB. Try temporarily blocking anti-virus and rerunning the model.
3. Finally, this may also be due to a licensing issue. Double check if all the license numbers for products have been correctly entered.
For further assistance contact MathWorks Technical Support.
  1 Comment
Ranit Karmakar
Ranit Karmakar on 15 Jan 2019
Hi Rishabh,
The file was in location and all the other solutions you mentioned were checked by me. However, none of them were causing the problem. It was an error because of the Visual Studion version. After installation of MS Visual Studio 2017, the problem got resolved.
Thank you for your support.

Sign in to comment.

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!