Matlab's OpenCV Interface Example Not Working (Run Oriented FAST and Rotated BRIEF (ORB) Detector Example)

8 ビュー (過去 30 日間)
I installed OpenCV interface for matlab by using command `visionSupportPackages` in order to run the `testORBFeaturesOCV.m` script which is covered in their official tutorial under the heading "Run Oriented FAST and Rotated BRIEF (ORB) Detector Example".
I compiled the opencv cpp files fine although there was a warning the opencv was compiled with VS2012 while matlab (2015a) uses VS2010.
However, when I run the `testORBFeaturesOCV.m` script, it crashes when it reaches the opencv functions. It doesn't produce any crash log files.
On the other hand, when I ran the Template Matching Example from the same tutorial it produces crash log files. Here is the crash log file:
------------------------------------------------------------------------
Access violation detected at Wed Oct 19 17:43:21 2016
------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled
Crash Mode : continue (default)
Current Graphics Driver: Unknown hardware
Default Encoding : windows-1252
Graphics card 1 : Intel Corporation ( 0x8086 ) Intel(R) HD Graphics 5500 Version 20.19.15.4444
Graphics card 2 : Advanced Micro Devices, Inc. ( 0x1002 ) AMD Radeon (TM) R5 M330 Version 20.19.0.32837
Host Name : Lenovo-PC
MATLAB Architecture : win64
MATLAB Root : C:\Program Files\MATLAB\MATLAB Production Server\R2015a
MATLAB Version : 8.5.0.197613 (R2015a)
OpenGL : hardware
Operating System : Microsoft Windows 10 Home Single Language
Processor ID : x86 Family 6 Model 61 Stepping 4, GenuineIntel
Virtual Machine : Java 1.7.0_60-b19 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
Window System : Version 10.0 (Build 14393)
Fault Count: 1
Abnormal termination:
Access violation
Register State (from fault):
RAX = 000000008b4fa428 RBX = 000000008b432860
RCX = 00000000000db1c8 RDX = 12148964adb5c8df
RSP = 00000000043f5850 RBP = 000000000000005a
RSI = 000000008b432860 RDI = 000000008b41f260
R8 = 000000008b4fdee7 R9 = 00000000000bdf10
R10 = 0000000000000101 R11 = 00000000043f5890
R12 = 0000000000000002 R13 = 000000008b722250
R14 = 000000008b41f260 R15 = 0000000000000000
RIP = 00007ff984a0c926 EFL = 00010206
CS = 0033 FS = 0053 GS = 002b
Stack Trace (from fault):
[ 0] 0x00007ff984a0c926 C:\WINDOWS\SYSTEM32\ntdll.dll+00772390 memset+00070182
[ 1] 0x00007ff98498c1b8 C:\WINDOWS\SYSTEM32\ntdll.dll+00246200 RtlFreeHeap+00000168
[ 2] 0x000000005f838d94 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\MSVCR100.dll+00429460 free+00000028
[ 3] 0x00007ff97c6413ca C:\MATLAB\SupportPackages\R2015a\opencvinterface\toolbox\vision\supportpackages\visionopencv\example\TemplateMatching\matchTemplateOCV.mexw64+00005066 mexFunction+00000490
[ 4] 0x00000000fc5f3751 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\libmex.dll+00079697 mexRunMexFile+00000129
[ 5] 0x00000000fc5f2a72 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\libmex.dll+00076402 inSwapMexfileReader+00000594
[ 6] 0x00000000fc5f25c8 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\libmex.dll+00075208 mexUnlock+00002840
[ 7] 0x0000000010ca2694 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\m_dispatcher.dll+00075412 Mfh_file::dispatch_fh+00000548
[ 8] 0x0000000010ca2a7e C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\m_dispatcher.dll+00076414 Mfunction_handle::dispatch+00000766
[ 9] 0x0000000010e16ca6 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\m_interpreter.dll+00355494 inGetCurrentWS+00127158
[ 10] 0x0000000010e16414 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\m_interpreter.dll+00353300 inGetCurrentWS+00124964
[ 11] 0x0000000010e1c64c C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\m_interpreter.dll+00378444 inGetCurrentWS+00150108
[ 12] 0x0000000010e1bcd5 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\m_interpreter.dll+00376021 inGetCurrentWS+00147685
[ 13] 0x0000000010ddf19c C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\m_interpreter.dll+00127388 in_is_matlab_function+00072012
[ 14] 0x0000000010dd9f95 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\m_interpreter.dll+00106389 in_is_matlab_function+00051013
[ 15] 0x0000000010ea684f C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\m_interpreter.dll+00944207 MathWorks::MException::MExceptionEnvelope::MCOSClassID+00000991
[ 16] 0x0000000010ea67b1 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\m_interpreter.dll+00944049 MathWorks::MException::MExceptionEnvelope::MCOSClassID+00000833
[ 17] 0x0000000010e1da75 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\m_interpreter.dll+00383605 inGetCurrentWS+00155269
[ 18] 0x0000000010e1ce8c C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\m_interpreter.dll+00380556 inGetCurrentWS+00152220
[ 19] 0x0000000010e1b6e9 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\m_interpreter.dll+00374505 inGetCurrentWS+00146169
[ 20] 0x0000000010ca2757 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\m_dispatcher.dll+00075607 Mfh_file::dispatch_fh+00000743
[ 21] 0x0000000010ca2a7e C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\m_dispatcher.dll+00076414 Mfunction_handle::dispatch+00000766
[ 22] 0x0000000010dd9597 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\m_interpreter.dll+00103831 in_is_matlab_function+00048455
[ 23] 0x0000000010ef31a7 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\m_interpreter.dll+01257895 inIsKeyword+00027799
[ 24] 0x0000000010ddb69a C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\m_interpreter.dll+00112282 in_is_matlab_function+00056906
[ 25] 0x0000000010ea684f C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\m_interpreter.dll+00944207 MathWorks::MException::MExceptionEnvelope::MCOSClassID+00000991
[ 26] 0x0000000010ea67b1 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\m_interpreter.dll+00944049 MathWorks::MException::MExceptionEnvelope::MCOSClassID+00000833
[ 27] 0x0000000010e1da75 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\m_interpreter.dll+00383605 inGetCurrentWS+00155269
[ 28] 0x0000000010e1ce8c C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\m_interpreter.dll+00380556 inGetCurrentWS+00152220
[ 29] 0x0000000010e1b6e9 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\m_interpreter.dll+00374505 inGetCurrentWS+00146169
[ 30] 0x0000000010ca2757 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\m_dispatcher.dll+00075607 Mfh_file::dispatch_fh+00000743
[ 31] 0x0000000010ca2a7e C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\m_dispatcher.dll+00076414 Mfunction_handle::dispatch+00000766
[ 32] 0x0000000010eab268 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\m_interpreter.dll+00963176 inAnonymousFunction+00000360
[ 33] 0x0000000010eab864 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\m_interpreter.dll+00964708 inAnonymousFunction+00001892
[ 34] 0x0000000010eaba25 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\m_interpreter.dll+00965157 inAnonymousFunction+00002341
[ 35] 0x0000000010eab9f2 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\m_interpreter.dll+00965106 inAnonymousFunction+00002290
[ 36] 0x0000000010eab9a7 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\m_interpreter.dll+00965031 inAnonymousFunction+00002215
[ 37] 0x0000000010e5f6bd C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\m_interpreter.dll+00652989 inGetCallersWorkSpace+00001805
[ 38] 0x0000000010e5854d C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\m_interpreter.dll+00623949 inEvalCmdWithLocalReturn+00000285
[ 39] 0x0000000010e58471 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\m_interpreter.dll+00623729 inEvalCmdWithLocalReturn+00000065
[ 40] 0x00000000fb5fe82d C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\libmwbridge.dll+00059437 mnGetPrompt+00002717
[ 41] 0x00000000fb5ff2a9 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\libmwbridge.dll+00062121 mnParser+00000745
[ 42] 0x00000000fd0e13d4 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\mcr.dll+00398292 mcrInstance::mnParser_on_interpreter_thread+00000036
[ 43] 0x00000000fd0a9757 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\mcr.dll+00169815 mcr::runtime::setInterpreterThreadToCurrent+00019751
[ 44] 0x00000000fd0a9793 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\mcr.dll+00169875 mcr::runtime::setInterpreterThreadToCurrent+00019811
[ 45] 0x00000000fd0a9f91 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\mcr.dll+00171921 mcr::runtime::setInterpreterThreadToCurrent+00021857
[ 46] 0x00000000fab5d216 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\uiw.dll+00512534 UIW_AttachThreadInput+00001270
[ 47] 0x00000000fab5caa5 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\uiw.dll+00510629 wsd_to_MSW+00004373
[ 48] 0x00000000fab5cb29 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\uiw.dll+00510761 wsd_to_MSW+00004505
[ 49] 0x00007ff982d928cf C:\WINDOWS\System32\USER32.dll+00207055 EmptyClipboard+00000751
[ 50] 0x00007ff982d7f339 C:\WINDOWS\System32\USER32.dll+00127801 GetPropW+00000697
[ 51] 0x00007ff982d7f2b6 C:\WINDOWS\System32\USER32.dll+00127670 GetPropW+00000566
[ 52] 0x00007ff9849f89d4 C:\WINDOWS\SYSTEM32\ntdll.dll+00690644 KiUserCallbackDispatcher+00000036
[ 53] 0x00007ff9818210c4 C:\WINDOWS\System32\win32u.dll+00004292 NtUserPeekMessage+00000020
[ 54] 0x00007ff982d7e5bd C:\WINDOWS\System32\USER32.dll+00124349 PeekMessageW+00000397
[ 55] 0x00007ff982d7e3a3 C:\WINDOWS\System32\USER32.dll+00123811 PeekMessageA+00000163
[ 56] 0x00000000fab09bdb C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\uiw.dll+00170971 UIW_ShowMenuItem+00005179
[ 57] 0x00000000fab5db52 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\uiw.dll+00514898 UIW_SuspendAttachThreadInput+00000466
[ 58] 0x0000000010782c83 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\libmwservices.dll+01256579 services::system_events::PpeDispatchHook::dispatchOne+00032291
[ 59] 0x000000001078e6f5 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\libmwservices.dll+01304309 sysq::addProcessPendingEventsUnitTestHook+00005813
[ 60] 0x000000001078e7a0 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\libmwservices.dll+01304480 sysq::addProcessPendingEventsUnitTestHook+00005984
[ 61] 0x0000000010790595 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\libmwservices.dll+01312149 sysq::getCondition+00004629
[ 62] 0x0000000010791f52 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\libmwservices.dll+01318738 svWS_ProcessPendingEvents+00000162
[ 63] 0x00000000fd0aa6ad C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\mcr.dll+00173741 mcr::runtime::setInterpreterThreadToCurrent+00023677
[ 64] 0x00000000fd0ab31a C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\mcr.dll+00176922 mcr::runtime::setInterpreterThreadToCurrent+00026858
[ 65] 0x00000000fd0a2f75 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\mcr.dll+00143221 mcr_process_events+00007557
[ 66] 0x00000000fd0a4882 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\mcr.dll+00149634 mcr_process_events+00013970
[ 67] 0x000000001565b49d C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\MVMLocal.dll+00177309 mvm_server::inproc::LocalFactory::terminate+00048141
[ 68] 0x00000000fa8fa27a C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\mvm.dll+00828026 mvm::detail::initLocalMvmHack+00000490
[ 69] 0x00000000fa8fa838 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\mvm.dll+00829496 mvm::detail::SessionImpl::privateSession+00000376
[ 70] 0x00000000fa8faa88 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\mvm.dll+00830088 mvm::detail::SessionImpl::privateSession+00000968
[ 71] 0x000000014000630d C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\MATLAB.exe+00025357
[ 72] 0x0000000140007dd0 C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\MATLAB.exe+00032208
[ 73] 0x00007ff982a88364 C:\WINDOWS\System32\KERNEL32.DLL+00033636 BaseThreadInitThunk+00000020
[ 74] 0x00007ff9849b5e91 C:\WINDOWS\SYSTEM32\ntdll.dll+00417425 RtlUserThreadStart+00000033
This error was detected while a MEX-file was running. If the MEX-file
is not an official MathWorks function, please examine its source code
for errors. Please consult the External Interfaces Guide for information
on debugging MEX-files.
If this problem is reproducible, please submit a Service Request via:
http://www.mathworks.com/support/contact_us/
A technical support engineer might contact you with further information.
Thank you for your help.
I tried running MATLAB as administrator but it didn't work. Any ideas on how to make it work?

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by