Moving Cursor using mouse_event()
i am trying to move mouse cursor by capturing finger coordinate in opencv. i am not able to move the cursor to maximum screen size which is 1366*768. my webcam resolution is 640*480. my mouse pointer moves only to half of the screen. i do not know why.This is my code segment. mouse_pointer.x and mouse_pointer.y are the coordinate of my fore-finger.The Mouse_move is not an opencv function.
this is the function call:
void Mouse_Move(DWORD dx,DWORD dy)
event = MOUSEEVENTF_ABSOLUTE|MOUSEEVENTF_MOVE;
mouse_event(event, dx*65535/Get_ScreenWidth(), dy*65535/Get_ScreenHight(), 0, 0);