Solved! net.setinput error in Load Caffe framework models tutorial [closed]

asked 2018-02-10 08:35:30 -0600

Aurelius gravatar image

updated 2018-02-10 13:49:01 -0600

Hello everyone,

I've installed Opencv3.4 on my computer (Windows 10 latest version, visual studio 2015), it worked without any problems until I come to the "Load Caffe frameworks models" tutorial.

The error appears at the line with net.setInput:

Exception non gérée à 0x00007FF9A3E8B9DD (opencv_world340d.dll) dans ConsoleApplication1.exe : 0xC0000005 : Violation d'accès lors de la lecture de l'emplacement 0x0000000000000097.

I have seen that it could occurs when an instance is not well declared but the line Net net = dnn::readNetFromCaffe(modelTxt, modelBin) is doing the job so I don't understand.

Thank you for your help.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by eshirima
close date 2018-02-10 15:16:30.869295

Comments

Please remove screenshot and add error message as plain text

LBerger gravatar imageLBerger ( 2018-02-10 10:28:40 -0600 )edit

Thanks, it is done.

Aurelius gravatar imageAurelius ( 2018-02-10 10:31:51 -0600 )edit

opencv_world340d.dll means you use debug libs. Are you trying to run a release program with debug lib?

LBerger gravatar imageLBerger ( 2018-02-10 10:44:55 -0600 )edit

I am in debug mode. I run the program with my command prompt opened in the debug folder of my program. This is exactly the same code as the one of the tutorial.

Aurelius gravatar imageAurelius ( 2018-02-10 13:04:40 -0600 )edit

I have re-installed (second time I try) all opencv34 and it finally works. I still don't know what was the problem but it runs without problem. Thank you for having reading this question and trying to answer.

Aurelius gravatar imageAurelius ( 2018-02-10 13:44:13 -0600 )edit