Mouse event handling with cvSetMouseCallback

前端 未结 2 555
长情又很酷
长情又很酷 2021-01-12 17:47

I am writing a code for eye tracker using OS X / X Code / OpenCV 2.2. As part of the Eye Tracker training process, I am using cvSetMouseCallback to capture the data as per f

2条回答
  •  Happy的楠姐
    2021-01-12 18:09

    try to remove this line:

    cvSetMouseCallback( "video", my_mouse_callback, (void*) img);
    

    from the loop and place it immediately after:

    cvNamedWindow( "video", 1 );
    

    Regards !

提交回复
热议问题