opencv+wxpython MenuBar very slow

18 views
Skip to first unread message

mamik

unread,
Mar 23, 2012, 9:12:11 PM3/23/12
to wxpytho...@googlegroups.com
i get code face detection from this site http://www.lucaamore.com/?p=638
and i have edited and combine with wxpython.
why the MenuBar very slow to show like this Screen Shot?
http://imageshack.us/photo/my-images/29/wxpythonopencv.png/

Robin Dunn

unread,
Mar 26, 2012, 1:22:46 PM3/26/12
to wxpytho...@googlegroups.com


Probably because the face detection library is blocking the event loop
so the menu (and other things) are not able to process their paint events.

http://wiki.wxpython.org/LongRunningTasks
http://wiki.wxpython.org/Non-Blocking_Gui
http://wiki.wxpython.org/CallAfter

--
Robin Dunn
Software Craftsman
http://wxPython.org

Reply all
Reply to author
Forward
0 new messages