Search found 16 matches

by steven.pyae
Fri Dec 20, 2019 2:43 am
Forum: C++ Development
Topic: wxBitmap + OpenCV video file display
Replies: 6
Views: 519

Re: wxBitmap + OpenCV video file display

Hi DoubleMax Appreciate your reply and there were no more flickering There is one more issue the wx_Bitmap is shown in the video in the link below. I am guessing that wx_bitmap is not deleting the original bitmap frame when it is receiving a new bitmap or it has like an array that needs to be repain...
by steven.pyae
Thu Dec 19, 2019 8:53 am
Forum: C++ Development
Topic: wxBitmap + OpenCV video file display
Replies: 6
Views: 519

Re: wxBitmap + OpenCV video file display

To add on with my Previous Post,
Ì have also looked at buffered PaintDC, double buffered paintdc and Image Panel.
Tested with the code and it doesn't give me the result I needed.
by steven.pyae
Thu Dec 19, 2019 8:44 am
Forum: C++ Development
Topic: wxBitmap + OpenCV video file display
Replies: 6
Views: 519

Re: wxBitmap + OpenCV video file display

Hello Doublemax and Everyone seeing this. I have improved on my code and tried to convert to bitmap frame by frame. wxImage cShowVideo::wx_from_mat(Mat& img) { Mat im2; if (img.channels() == 1) { cvtColor(img, im2, CV_GRAY2RGB); } else if (img.channels() == 4) { cvtColor(img, im2, CV_BGRA2RGB); } el...
by steven.pyae
Thu Dec 19, 2019 8:13 am
Forum: C++ Development
Topic: Displaying Image and Videos on my Parent Frame cMain
Replies: 16
Views: 1012

Re: Displaying Image and Videos on my Parent Frame cMain

@Laurent Berger
Hello and Thanks for sharing. I made some more progress by displaying video file and cast into wxPanel.
The thread is here
viewtopic.php?f=1&t=46670
by steven.pyae
Wed Dec 18, 2019 9:05 am
Forum: C++ Development
Topic: wxBitmap + OpenCV video file display
Replies: 6
Views: 519

wxBitmap + OpenCV video file display

Hi All and Doublemax, Sorry for being absent for a while. I have successfully created the image panel, it was due to my lack of knowledge on Child Frames and Parent Frames. I also created a new cpp file to get the file path and convert the input file into wxBitmap using appropriate channel. The tuto...
by steven.pyae
Thu Dec 12, 2019 1:46 am
Forum: C++ Development
Topic: Any Alternative for Using "this"?
Replies: 2
Views: 193

Re: Any Alternative for Using "this"?

Yes ONEEYMAN, I agree with you that it is more like a C++ question. On a SIte note, I have resolved it after following a tutorial online The steps are as follows. First to Create new class cpp file and header files and Link the headers. Pass the Parent frame, or optional wxString Name to to the new ...
by steven.pyae
Wed Dec 11, 2019 7:22 am
Forum: C++ Development
Topic: Any Alternative for Using "this"?
Replies: 2
Views: 193

Any Alternative for Using "this"?

Hi All, I am quite new to wxWidgets I have the following code. under cMain.cpp cMain::cMain() : wxMDIParentFrame(parent, window::id::Main_ID, "Test Program", wxPoint(30, 30), wxSize(1200, 1200)) { m_list1 = new wxListBox(this, wxID_ANY, wxPoint(700, 100), wxSize(300, 300)); m_offline = new wxCheckBo...
by steven.pyae
Wed Dec 11, 2019 3:07 am
Forum: C++ Development
Topic: Displaying Image and Videos on my Parent Frame cMain
Replies: 16
Views: 1012

Re: Displaying Image and Videos on my Parent Frame cMain

Hi Doublemax and Oneeyeman, I have found http://larryo.org/work/information/wxopencv/index.html to reference to OpenCV. However, my Programming is not that strong and currently I have a lot of lines in my cMain.cpp For example, I have created another class named cTest.cpp and cTest.h wxMDIParentFram...
by steven.pyae
Tue Dec 10, 2019 8:00 am
Forum: C++ Development
Topic: Displaying Image and Videos on my Parent Frame cMain
Replies: 16
Views: 1012

Re: Displaying Image and Videos on my Parent Frame cMain

Hi Doublemax, I have another question.

Is it possible to make a child frame of the Main Parent Frame using OpenCV imshow?
This is to clean up the code by making another class to display the images.
If so, Any references?
Thanks a bunch
by steven.pyae
Tue Dec 10, 2019 2:36 am
Forum: C++ Development
Topic: Displaying Image and Videos on my Parent Frame cMain
Replies: 16
Views: 1012

Re: Displaying Image and Videos on my Parent Frame cMain

Hi Doublemax, So far I have used StaticBitMap to display a single image. Is there such a thing called dynamic bitmap? or How can I display the video in my current output? My code for displaying is this wxStaticBitmap* sbmp = new wxStaticBitmap(this, wxID_ANY, wxNullBitmap, wxPoint(20, 100), wxSize(4...
by steven.pyae
Mon Dec 09, 2019 6:39 am
Forum: C++ Development
Topic: Displaying Image and Videos on my Parent Frame cMain
Replies: 16
Views: 1012

Re: Displaying Image and Videos on my Parent Frame cMain

Hi DoubleMax,

Thank you so much for the input. I am considering Bitmapping option to process the video images frame by frame.
For a Start, I want to show a single image in the parent window
I followed the Image Panel example but I did not want to show in the New frame,
Is it possible?
by steven.pyae
Fri Dec 06, 2019 8:44 am
Forum: C++ Development
Topic: Displaying Image and Videos on my Parent Frame cMain
Replies: 16
Views: 1012

Re: Displaying Image and Videos on my Parent Frame cMain

An Update is that I got the video to load in my frame however, I need to use the controls to play the video. Is there a way to do it so that it automatically plays the video? My code currently looks like this void cMain::FilePathShowVideo() { wxString Filter = "avi|*.avi|mp4|*.mp4"; //TO:DO Select M...
by steven.pyae
Fri Dec 06, 2019 7:55 am
Forum: C++ Development
Topic: Displaying Image and Videos on my Parent Frame cMain
Replies: 16
Views: 1012

Re: Displaying Image and Videos on my Parent Frame cMain

Hi doublemax, Ultimately, I want to show the video on the Main Parent Frame. I have written the following code. However, it is not playing my ".avi" file. I tried searching the documentations for supported media files for wxWidgets but I could not find any. I have referred to the following document ...
by steven.pyae
Thu Dec 05, 2019 9:00 am
Forum: C++ Development
Topic: Displaying Image and Videos on my Parent Frame cMain
Replies: 16
Views: 1012

Displaying Image and Videos on my Parent Frame cMain

HI, I am using OpenCV together with wxWidgets From OpenCV, I have stored the Image in cv::Mat Test from the image read from the selectedfilepath. Conversions were done as well. However, cv::imshow Opens another window to display. Can I use the cv::Mat Test to show in wxwidgets? If it is a repeated t...
by steven.pyae
Thu Dec 05, 2019 1:23 am
Forum: C++ Development
Topic: Application-wide cleanup code
Replies: 4
Views: 254

Re: Application-wide cleanup code

Hi ONEEYEMAN,
Which 'Mimimal" example are you talking about?

Hi doublemax, Thank you for the answer, I will try it out.