ra1nty / DXcam

A Python high-performance screen capture library for Windows using Desktop Duplication API
MIT License
457 stars 67 forks source link

TypeError: 'float' object cannot be interpreted as an integer #75

Open Zynth9999 opened 7 months ago

Zynth9999 commented 7 months ago
Traceback (most recent call last):
  File "C:\Users\Janek\OneDrive\Pulpit\AI-Aimbot-main\main.py", line 250, in <module>
    main()
  File "C:\Users\Janek\OneDrive\Pulpit\AI-Aimbot-main\main.py", line 115, in main
    camera.start(target_fps=120, video_mode=True)
  File "C:\Users\Janek\OneDrive\Pulpit\AI-Aimbot-main\venv\Lib\site-packages\dxcam\dxcam.py", line 126, in start
    self.__frame_buffer = np.ndarray(
                          ^^^^^^^^^^^
TypeError: 'float' object cannot be interpreted as an integer
any fix?