window name doesn't match

asked 2013-08-11 04:47:13 -0500

rockinfresh gravatar image

updated 2013-08-12 09:25:19 -0500

Hi all,

I been facing this problem for a long time and still have yet to solve it. As you can see in the image link=, the windows name is something like "-ka" BUT my program clearly named the window as "My Image".

I am now already doing more adavance stuff like splitting of image, etc, but my project supervisor asking me about this, yet I do not know the reason behind it. Can anyone help? Thanks.

edit retag flag offensive close merge delete


btw, stick to the c++ api, prefer imread() over cvLoadImage()

berak gravatar imageberak ( 2013-08-11 04:53:27 -0500 )edit

Try to change to Release and also the *.libs (for example change opencv_corexxxd.lib --> opencv_corexxx.lib)

albertofernandez gravatar imagealbertofernandez ( 2013-08-12 02:22:14 -0500 )edit

@albertofernandez, many thanks. That was the solution. It was also the solution to why I couldn't use imread but have to use cvLoadImage() in the first place. Is there any place where I can learn about the difference between both debug and release mode? Thanks!!!

rockinfresh gravatar imagerockinfresh ( 2013-08-13 03:17:25 -0500 )edit

This cannot be the correct solution in my opinion. I have working code in debug and in release mode, with correct working namedWindows. Also the imread function works perfectly. Can you state your system, configuration, openCV version, ... ?

StevenPuttemans gravatar imageStevenPuttemans ( 2013-08-13 03:20:51 -0500 )edit

@StevenPuttemans, sorry for the late reply. That is weird, my problem was solved after running in release mode. My system is Windows 8, I am using OpenCV 2.3 and MS Visual Studio C++.

Do you have any idea what could be the reason? So that I can learn and improve myself to help others next time.

rockinfresh gravatar imagerockinfresh ( 2013-10-06 12:35:22 -0500 )edit

Actually, if this error persists, then a bug report should be created at the development page. However, using OpenCV2.3 is asking for problems, we are at version 2.4.6 now which contains tons of bugfixes, also one which should solve this problem. So please before posting a bugreport, go get the latest version and see if it persists. You should always use latest stable release when possible. I have windows 7 x64, visual studio 2010 and openCV 2.4.6 and it works in both release and debug mode without errors.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-10-07 02:45:31 -0500 )edit

@StevenPuttemans, Noted with thanks. Will sudden change in the version affect my previous programs? I just have to update all my include, library directory, etc, only right?

rockinfresh gravatar imagerockinfresh ( 2013-10-11 02:06:00 -0500 )edit

If your program is done correctly, changing versions should have almost zero effect. There are only a few cases where some functionality has changed module.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-10-14 01:41:12 -0500 )edit