OpenCV and creating GUIs

前端 未结 4 1704
夕颜
夕颜 2021-01-11 12:37

Can I use OpenCV to create GUIs that contain buttons, list boxes, ...etc for example?

Thanks.

4条回答
  •  鱼传尺愫
    2021-01-11 12:56

    On windows, you may use cvGetWindowHandle to obtain window handle (HWND). With that handle you may call CreateWindow from WinAPI and put WinAPI controls on that window.

    But you will also need to override or hook the WindowProc that was set by OpenCV for that window. Hooking and overriding explained here Multiple WndProc functions in Win32

提交回复
热议问题