Community
cancel
Showing results for 
Search instead for 
Did you mean: 
MHawa1
Beginner
1,329 Views

on Edison, with OpenCV, function imshow() results in error "cannot open display"

Jump to solution

Hello, I'm hoping someone can shed some light on an issue I'm seeing when I'm running an OpenCV program using the Edison development board.

I ran a tutorial of OpenCV (using C++ Visual Studio). I'm successful with running the tutorial application by uploading it to Edison, and I can read images, process them and generate output images. After my program completes, to examine my images, I use the web browser on my host. That all works fine (though a bit cumbersome).

However, I want to change my program to see if I can have it create a window and display the image itself. So, I added this line to my program

imshow( imageName, image );

but now, when I run this program on Edison, I get an error :

"(izzy.jpg:1179): Gtk-WARNING **: cannot open display: "

I don't think this is an OpenCV issue, rather my guess it's an environment issue of my Linux (i'm not sure).

(FYI: to learn what my edison sw version is I did:

% configure_edison --version

159

)

Any help on this issue is much appreciated. Thank you.

0 Kudos
1 Solution
idata
Community Manager
54 Views

Hi M.Hawana,

Thank you for contacting us.

I was investigating about your issue, and I have found that it is not possible to use the function imshow(), because the Edison doesn't have a video output, an error will occur as you call functions related to display on the screen ( https://software.intel.com/en-us/articles/opencv-300-beta-ipp-tbb-enabled-on-yocto-with-intel-edison).

You can also check this thread as reference: https://communities.intel.com/thread/106870 https://communities.intel.com/thread/106870, maybe it can be helpful for you.

Have a nice day.

Regards,

Leonardo R.

View solution in original post

3 Replies
idata
Community Manager
55 Views

Hi M.Hawana,

Thank you for contacting us.

I was investigating about your issue, and I have found that it is not possible to use the function imshow(), because the Edison doesn't have a video output, an error will occur as you call functions related to display on the screen ( https://software.intel.com/en-us/articles/opencv-300-beta-ipp-tbb-enabled-on-yocto-with-intel-edison).

You can also check this thread as reference: https://communities.intel.com/thread/106870 https://communities.intel.com/thread/106870, maybe it can be helpful for you.

Have a nice day.

Regards,

Leonardo R.

View solution in original post

MHawa1
Beginner
54 Views

Thank you Leonardo,

since there is no video output, then I'll have to keep using my work-around (of using the browser on my host) to see my images. thanks for research you've done.

Have a nice day.

idata
Community Manager
54 Views

Hi M.Hawana,

 

 

That's great, at least you have that workaround.

 

 

Feel free to contact us when you have doubts.

 

 

Have a nice day.

 

 

Regards,

 

Leonardo R.
Reply