Ask Your Question
0

Use GUI to display the images in C++

asked 2017-12-20 01:37:26 -0600

mhdhmi gravatar image

hello dears please can use help me to display the image (after process in OpenCV v3.3) in GUI using Microsoft visual C++ language.

best regards

edit retag flag offensive close merge delete

Comments

what have you already try.? Have you read tutorials ?

LBerger gravatar imageLBerger ( 2017-12-20 02:09:40 -0600 )edit

are you asking: "how to use winforms to draw an image" ?

(then the answer would be: please don't do that, because you would have to mix opencv code and managed c++, which is the straight road to hell, especially, if you're a noob !)

berak gravatar imageberak ( 2017-12-20 08:43:53 -0600 )edit

yes I was tried car counting using openCV in c++ , but i want to display the picture and the counter in windows form.

mhdhmi gravatar imagemhdhmi ( 2017-12-21 02:29:00 -0600 )edit

can we somehow convince you, just to use imshow() / waitKey() ? (at least for now.)

again, managed c++ uses an entirely different programming model, orthogonal to opencv's RAII concept.

there's a ton of subtle pitfalls, if you mix both,

save yourself the trouble, and build a nice car detection first. form follows function, right ?

berak gravatar imageberak ( 2017-12-21 03:14:16 -0600 )edit
1

.my friend thank for you good advice. my car detection and counting program are complete, all I need now a way to display the result and some commands buttons to open the video.

mhdhmi gravatar imagemhdhmi ( 2017-12-21 04:19:27 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-12-21 05:35:42 -0600

Shivanshu gravatar image

updated 2017-12-21 05:38:33 -0600

You and use GTK+ UI library for developing UI along with c++ core logic. see here https://www.gtk.org/development.php To show image from opencv you can use pixleBuffer in GTK or either first you write opencv image to a directory then read the same via GTK ui .

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-12-20 01:37:26 -0600

Seen: 1,051 times

Last updated: Dec 21 '17