Ask Your Question
0

Tutorials for OpenCV 3.x please and not for 2.x?

asked 2016-01-09 08:59:03 -0600

Flavien gravatar image

Hello,

I just installed OpenCV 3.1 with Visual Studio 2013 on Windows 7 (64-bit). Where can I find tutorials running on this version of OpenCV please? Even the official examples do not work, for example: http://docs.opencv.org/3.0-beta/doc/t... returns -1. However, this example works fine: http://docs.opencv.org/2.4/doc/tutori....

Thank you,

Flavien

edit retag flag offensive close merge delete

Comments

1

if the display_image sample returns -1, it simply means, it did not find your image, nothing to do with opencv versions.

maybe you give it another try: just drop an image onto display_image.exe, and it will just work !

berak gravatar imageberak ( 2016-01-09 09:03:49 -0600 )edit
1

http://docs.opencv.org/ <-- pick your choice !

berak gravatar imageberak ( 2016-01-09 09:04:35 -0600 )edit

Thank you for your answer.

Yes it can not open the image but even by specifying the path of another image which is located in the same folder, the program does not.

Moreover the original image is in the right place (C:\opencv\sources\samples\data\HappyFish.jpg).

Flavien gravatar imageFlavien ( 2016-01-09 09:21:51 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-01-09 12:37:54 -0600

LorenaGdL gravatar image

Use / or \\ instead of \ in your image paths.

edit flag offensive delete link more

Comments

Thank you for your answer.

Indeed the image appears. But I hope the tutorials will be updated with the new features of OpenCV 3.x.

Good day,

Flavien

Flavien gravatar imageFlavien ( 2016-01-10 02:07:32 -0600 )edit
1

@Flavien most of them are already updated, including the one you linked

LorenaGdL gravatar imageLorenaGdL ( 2016-01-10 02:41:07 -0600 )edit

Okay. Thank you.

Flavien gravatar imageFlavien ( 2016-01-10 03:11:22 -0600 )edit

To add to the remark of @LorenaGdL, this is OS specific and has nothing to do with OpenCV itself. Windows has a bad habbit of using backslashes as escape characters and thus if you do not use a double slash, you will read C:\opencv\sources\samples\data\HappyFish.jpg as C:pencvourcesamplesataappyFish.jpg, which does not exist. This is because it ignores the characters behind the slashes, since they fall together with official commands for parsing a series of characters.

StevenPuttemans gravatar imageStevenPuttemans ( 2016-01-11 06:54:49 -0600 )edit
1

Good morning, Thank you so much for this additional information. Flavien

Flavien gravatar imageFlavien ( 2016-01-14 02:26:56 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-01-09 08:59:03 -0600

Seen: 143 times

Last updated: Jan 09 '16