Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: pyautogui.screenshot region is not working
Post: RE: pyautogui.screenshot region is not working

I just changed this part : out = cv2.VideoWriter("output.avi", fourcc, 8.0, (500, 150)) but the problem is somehow remained. Still it is inconsistent. Like three times out of five times it saves the ...
alexlu General Coding Help 6 6,538 Jun-04-2020, 10:46 AM
    Thread: pyautogui.screenshot region is not working
Post: RE: pyautogui.screenshot region is not working

The problem was this part and changing the last two parameters solved the problem. out = cv2.VideoWriter("output.avi", fourcc, 20.0, (SCREEN_SIZE))
alexlu General Coding Help 6 6,538 Jun-04-2020, 10:23 AM
    Thread: pyautogui.screenshot region is not working
Post: RE: pyautogui.screenshot region is not working

Here is the full code import cv2 import numpy as np import pyautogui # display screen resolution, get it from your OS settings import tkinter as tk root = tk.Tk() screen_width = root.winfo_screenwidt...
alexlu General Coding Help 6 6,538 Jun-04-2020, 08:53 AM
    Thread: pyautogui.screenshot region is not working
Post: pyautogui.screenshot region is not working

When I try to capture a video screenshot of my screen in a region suddenly the .avi output file becomes a 7kb. The is no error, so I do not know how to fix this The output video is fine before selecti...
alexlu General Coding Help 6 6,538 Jun-04-2020, 08:03 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020