OpenCV - cvQueryFrame + avi file issue - opencv

I'm getting some trouble while opening a no compression avi file on Visual Studio 2012 with OpenCV 2.4.5 (I've tried 2.4.2 to 2.4.8 versions) and it give me the following error,
video file c:\ ... \30-1.avi warning: Error opening file (../../modules/highgui/src/cap_ffmepeg_impl.hpp:529) Not able to video file open.
Someone know what to do to fix this issue?
Thanks!!

This is an issue I have been facing recently. What worked for me is copying the ffmpeg related DLL to the application folder. Depending on your configuration, you need to copy opencv_ffmpeg245d.dll for debug or opencv_ffmpeg245.dll for release.
Let me know if that works for you!
Best regards, Andrei C.

Related

DNN7 installer .vsi file for dynamic module not working

I am facing a issue regarding the DDN7 Module installer file ie for adding the components in VS2012 but it i not working for me
I have tried below url insataller file
http://christoctemplate.codeplex.com/releases/view/107619
ALso the
DotNetNuke_Community_07.00.06_StarterKit.vsi kit this is also not working for me
Please help me ASAP thanks in adavnce
Try the manual installation of the template
https://christoctemplate.codeplex.com/releases/view/107802
Grab the ZIP file and put it into the Visual Studio 2012/Templates/Web folder

cannot setup Opencv 2.4.6 , opencv_core231d.lib Not Found Error

Hello everyone;
i had opencv 2.2 on my vs2010, and i wanted to update so i went to opencv site and:
i've downloaded OpenCV for Windows (ver 2.4.6)
i've extracted it to c:\opencv2.4
i've set the Environment Variable as doc said here: http://docs.opencv.org/doc/tutorials/introduction/windows_install/windows_install.html#windowssetpathandenviromentvariable
( i didnt know what is "PATH EDITOR" so i've just changed Environment variables)
i made property sprite sheets as opencv doc said here: http://docs.opencv.org/doc/tutorials/introduction/windows_visual_studio_Opencv/windows_visual_studio_Opencv.html#windows-visual-studio-how-to
5.but Doc Was Old, and there was no "include" folder in OpenCV2.4/opencv/build/x64/vc10 so I did set include Directory to OpenCV2.4/opencv/build/include in My property sprite sheet.
everything seems true and VS detect include libraries But
VS2010 throw following error when i want to Build the solution:
1>LINK : fatal error LNK1104: cannot open file 'opencv_core231d.lib'
Strange thing is there is no "opencv_core231d.lib" File in c:\opencv2.4 at all!!!
:(
what is the problem?
This is a Linker error, so make sure you are trying to link the correct libraries.
I would suggest to use CMake, which definitely simplifies configuring projects, specially those having dependencies like OpenCV (you can take a look to the OpenCV documentation, or any blog explaining the steps: http://marcosnietoblog.wordpress.com/2011/11/19/opencv-for-windows-easy-installation-using-cmake/ )
By the way, I use to have several versions of opencv on the same folder:
C:\OpenCV\opencv2.4.3
C:\OpenCV\opencv2.4.6
...
So I can easily switch within CMake setting the OpenCV_DIR.
opencv_core231d.lib is a debug version, all the *d.lib and *d.dll files in openCV are with debug symbols.
It is likely that the pre-built release you downloaded doesn't contain debug ones.
either download te source and build both debug and release. Or, if you don't care how opencv works internally, just change the linker flags to use the same lib names with the d
edit. or of course if you donwloaded opencv 2.4.6 the file would be opencv_core246d.lib

Does OpenCV need to be compiled before using?

I'm trying to install OpenCV on Windows. Following are how I installed it:
Download OpenCV 2.4.2.exe from sourceforge.
unarchived it.
open Eclipse CDT.
Add C:/opencv/include/opencv to "Includes"
Add opencv_highgui, opencv_core, opencv_ml... to "Libraries"
Create a small project and compiled it.
The compiler complained about "opencv2/core/core_c.h:No such file or directory"...
I remember that when I install OpenCV on Ubuntu, I did compiled the project (it took quite a bit of time). Do I have to do the same thing on Windows? Or is any other thing causing this error?
Thanks.
You should add correct directories to includes.
Since you added C:/opencv/include/opencv, there is no way for compiler to find C:/opencv/include/opencv2/core/core.h.
I believe you should enter C:/opencv/include/ to includes directories as well.

Error initializing the debugger: Mono.Debugging.Soft.DisconnectedException

After upgrading to version 4.0.4, I started getting the connection with the debugger has been lost error. I've tried to re-install all the components (monodevelop, android sdk, java sdk, etc.). I also cleaned up the registry, rebooted after re-installation. But all the effort did not make any difference. All the android os versions (1.6 to 4.0) targeted all had the same error when debugging. Previous version worked most of the time during debugging. It was quite difficult to find answers on the Xamarin web site. If someone can shed light on this issue, I'd very much appreciate it. Thanks.
I fix the same issue by going to
Mono android options and setting :
linking: adk and user assemblies
Use shared runtime: yes
use fastdeployment: yes
hope that helps
I tried everything rebooting etc.and found this thread during my frustration. At last I tried to build in release mode instead of debug and that magically solved the issue and attached the debugger. There after I could switch back to debug without any troubles.
this problem occurs each time we change a file: for example when you change main.axml file. or when add a new .so file. just run your project twice (first this error appears and for the second turn it run normally)
I encountered this as well.
I upgraded to 4.05 beta, but the problem persisted. Then I disabled the Project Properties -> Mono Android Options -> Use Fast Deployment (debug mode only), selected Deploy Solution manually, and the debugger magically attached and worked correctly.
Not sure if the 4.05 upgrade was needed, but I suspect turning off Fast Deployment was what fixed it.
Restart Visual studio after deleting the .vs,bin and obj folders
I solved this issue by downloading [Mono.Posix.dll][1] and paste it
to path mention in exception. My path : C:\Program Files
(x86)\Microsoft Visual
Studio\2017\Professional\Common7\IDE\Extensions\Xamarin.VisualStudio
[1]https://bugzilla.xamarin.com/attachment.cgi?id=22522
Plus add the following lines in devenev.exe.config at path C:\Program
Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE:
<runtime>
<loadFromRemoteSources enabled="true"/> </runtime>
Run the App in Release mode in not in debug it will work

OpenCvSharp throws DllNotFoundException

I have similiar problem as was presented here, but with opencv_imgproc231.dll (opencv_core231.dll is loaded correctly in my case).
I installed OpenCV 2.3.1 and set environment variable PATH to foldres in "vc9\bin" folder. I added all OpenCvSharp dlls to references. When I run my c# program, it loads opencv_core231.dll correctly, but opencv_imgproc231.dll cant find (is in tha same directory as all opencv dlls). I tried copy opencv dlls to folder where is executable file, but it showed same error.
I did all what he did - C++ red. pack. 2008, 2010SP1, set PATHs, copy openCV dlls to folder, where is executable file - but nothing works, still DllNotFoundException for opencv_imgproc231.dll.
I have VS2008 and Windows 7 32bit.
My program contains only one row: "IplImage image = new IplImage(128, 128, BitDepth.U8, 1);".
Thanks for any advice.
Pavel.
I found this issue at google code http://code.google.com/p/opencvsharp/issues/detail?id=97
add tbb.dll (from opencv/build/common/tbb) to PATH or same folder of the executable works for me :)
Ok, I solved it. There is problem in precompiled openCV DLL. So if you have similar problem, recompile openCV and it will work. I dont why, but precompiled opencv_imgproc230.dll has 1579008 bytes and my recompiled opencv_imgproc230.dll has 1568768 bytes, but it works.

Resources