Ask Your Question

Foaly's profile - activity

2017-03-18 18:11:16 -0600 received badge  Popular Question (source)
2013-11-11 15:43:08 -0600 commented answer VideoWriter filename doesn't accept certain charactars

Of course... I forgot it's not a valid character under windows. Maybe a describtiv error message would be nice, instead of a crash.

2013-11-11 15:41:24 -0600 received badge  Scholar (source)
2013-11-10 17:30:12 -0600 asked a question VideoWriter filename doesn't accept certain charactars

Hello everybody!

I was experimenting with cv::VideoWriter a bit today and I noticed something weird. I was trying to build the filename out of a name, the date and the current time. The string was correct, but my program kept crashing. I noticed that the crash was due to the ":" in the date represenation. When ever there is a ":" in the filename string passed to cv::VideoWriter the program crashes.

Can somebody tell me why that is? Or if this may be a bug. Thanks!

2013-05-07 12:15:41 -0600 commented answer Working binaries for windows

The callstack and all the details for the crash on xp are in the other question. The one on Windows 8 (my current machine, the xp is just an older one) behaves pretty much the same way. In debug mode it exits right after launching with a SIGSEGV fault. Here is the call stack: http://pastebin.com/MdnYF86E

2013-05-07 10:57:51 -0600 commented answer Working binaries for windows

The problem appear for both my windows 8 and my windows xp. The including and link works fine, but once I run I get a crash saying 0xc0000142 on wind7 and 0xc0000005 on xp

2013-05-07 08:34:25 -0600 commented answer Working binaries for windows

As I said in my original post, whenever I use the prebuilt libraries I get a runtime error. All the detail are in this question. What do you mean with pdb files? I am using MinGW and Code::Blocks.

2013-05-06 17:34:36 -0600 asked a question Working binaries for windows

Hello everybody!

I have been working with OpenCV before, but I had to switch machines and my version of OpenCV got lost in the process. So I need a new one.

First I tryed to download the latest release for the website, but I got runtime errors, I was unable to solve. See this issue.

I already have some experience compiling librarys on my own, so downloaded the latest source and tryed to compile it myself with MinGW gcc 4.7.2 on my windows 8. I have been trying to do that for the past two days. I ran into a lot of difficulties. For example this issue or that I had to include some files manually and in the end there was a undefined reference I could not resolve.

To make a long story short, I almost ready to give up now. So what I'm asking is if somebody could please be so kind to upload a working install directory (include, lib, bin) of OpenCV 2.4.5 (or the lastest source I don't care) compiled with MinGW gcc 4.7 for windows(I also don't care about TBB or anything, I just want a working copy) so I can finally get my code working again.

I would be extremly thankful, if somebody could help me out here! Thanks in advance Foaly

2013-03-04 13:44:49 -0600 received badge  Editor (source)
2013-03-04 13:40:58 -0600 asked a question Runtime error 0xc0000005 on windows with 2.4.4 and MinGW

Hello I just downloaded the latest version 2.4.4 of OpenCV. After some complications at first, I managed to get my little sample program to run (code below). When I try to run the program however it crashes right away. The error code I get is:

The application failed to initialize properly (0xc0000005). Click on OK to terminate the application.

Some more info: I am working on a windows XP machine using Code::Blocks and MinGW (gcc version is 4.7.2) I set up my environment like this:

compiler searchpath: C:\Libraries\OpenCV\opencv\build\include

linker searchpath: C:\Libraries\OpenCV\opencv\build\x86\mingw\lib
C:\Libraries\OpenCV\opencv\build\x86\mingw\bin

I link to the following libraries: opencv_core244, opencv_imgproc244 and opencv_highgui244

When I fire up the debugger I get a SIGSEGV. This is what the call stack looks like:

#0 6FC65C3C libstdc++-6!_ZNKSs7_M_dataEv() (C:\MinGW\bin\libstdc++-6.dll:??)
#1 6FC65B6F libstdc++-6!_ZNKSs6_M_repEv() (C:\MinGW\bin\libstdc++-6.dll:??)
#2 6FC6591F libstdc++-6!_ZNKSs4sizeEv() (C:\MinGW\bin\libstdc++-6.dll:??)
#3 6FC8A970 libstdc++-6!_ZNSs6assignEPKcj() (C:\MinGW\bin\libstdc++-6.dll:??)
#4 613F9E3A cv::BmpDecoder::BmpDecoder() () (C:\Libraries\OpenCV\opencv\build\x86\mingw\bin\libopencv_highgui244.dll:??)
#5 61408AE0 cv::ImageCodecInitializer::ImageCodecInitializer() () (C:\Libraries\OpenCV\opencv\build\x86\mingw\bin\libopencv_highgui244.dll:??)
#6 614AF427 _GLOBAL__sub_I__ZN2cv6imreadERKSsi() (C:\Libraries\OpenCV\opencv\build\x86\mingw\bin\libopencv_highgui244.dll:??)
#7 613C1EEF __do_global_ctors() (../mingw/gccmain.c:59)
#8 613C10F3 DllMainCRTStartup@12(hDll=0x613c0000, dwReason=1, lpReserved=0x22fd30) (../mingw/dllcrt1.c:83)
#9 7C91118A ntdll!LdrSetAppCompatDllRedirectionCallback() (C:\WINDOWS\system32\ntdll.dll:??)
#10 613C0000    ?? () (??:??)
#11 7C92B5D2    ntdll!LdrHotPatchRoutine() (C:\WINDOWS\system32\ntdll.dll:??)
#12 7C92FBDC    ntdll!RtlMapGenericMask() (C:\WINDOWS\system32\ntdll.dll:??)
#13 7C92FAD7    ntdll!RtlMapGenericMask() (C:\WINDOWS\system32\ntdll.dll:??)
#14 7C91E457    ntdll!LdrCreateOutOfProcessImage() (C:\WINDOWS\system32\ntdll.dll:??)

The code I'm using:

#include <stdio.h>
#include <opencv2/opencv.hpp>

int main( int argc, char** argv )
{
    cv::Mat image;
    image = cv::imread( "example.jpg", 1 );

    if(!image.data )
    {
        printf( "No image data \n" );
        return -1;
    }

    cv::namedWindow( "Display Image", CV_WINDOW_AUTOSIZE );
    cv::imshow( "Display Image", image );

    cv::waitKey(0);

    return 0;
}
2012-11-28 06:23:08 -0600 commented answer Trouble setting up OpenCV (unhandeled exeptions & missing files)

Oh my god!!! You saved the day! Thank you so much! I am working with Code::Blocks and I clicked Building Target "all" which complied the .dll, but somehow didn't install it. So now I built the "install" Target and it copied everything I need into the install directory! Thanks again!!

2012-11-28 05:12:12 -0600 commented answer Trouble setting up OpenCV (unhandeled exeptions & missing files)

Thanks! I already thought about that, but it seems like a bad hack to me, because the prebuilt package is version 2.4.3 and the one from git is 2.4.9 Also I don't get why there are no include files in the source i grabed from git... there has to be!

2012-11-27 16:55:44 -0600 asked a question Trouble setting up OpenCV (unhandeled exeptions & missing files)

Hello everybody,

I want to use OpenCV for a project, so I downloaded the precompiled binarys. (Working on Windows 7 with MinGW (gcc 4.7.2)) I installed everything and the sample project I set up compiled fine, but whenever I tried to execute the program I got an unexpected exception 0xc0000005. I played around, but nothing worked. So I thought it might be because the .dlls were compiled with an older version of gcc (maybe 4.6 or something)

So I downloaded the source and set everything up. It took a long while, but it finally compiled. So now I have (hopefully working) .dlls, but as I tried to test them with a sample project, I got the error: "opencv2/core/core_c.h: No such file or directory" when I use #include <opencv2/opencv.hpp> but the include directory from the git repository is definitely included in the project...

I am really lost at this point. I would love to use the precompiled binarys, but I am also willing to compile my own from source. I just need something that works :)

Please help me I would love to use this awesome library! Thanks in advance, Foaly