screen-capture

Continue recording with getDisplayMedia on page after reload

我只是一个虾纸丫 提交于 2021-02-10 14:26:54
问题 I'm recording my screen on a webpage with navigator.mediaDevices.getDisplayMedia . But when I reload the page, it stops. I'd like to automatically continue recording. Is it possible? Maybe I could use the localstorage somehow, that the reloaded page would try to record again, but then the prompt to choose the screen to record appears again, but I'd like to have picked the same screen to record automatically as before, so that the users aren't bothered after every page reload. Is there any way

Regular window screen capture using openGL

不问归期 提交于 2021-02-08 10:55:38
问题 I'm trying to my desktop image capture. (All images, including the desktop output to the monitor) It's easy using window API (BitBlt or CImageClass) and it's not the way I want. I want do it using opengl. so I found glReadPixel funtion and window TRANSPARENT. But it just read pixel own Windows application screen.(Save as bmp file and check) Initialize() glfwSetErrorCallback(errorCallback); if (!glfwInit()) { std::cerr << "Error: GLFW " << std::endl; exit(EXIT_FAILURE); } glfwWindowHint(GLFW

How to capture full web page using QtWebEngine?

此生再无相见时 提交于 2021-02-07 10:04:53
问题 I use the following code in a QWebEngineView object to capture a web page to an image: image=new QImage(w,h, QImage::Format_ARGB32); painter = new QPainter(image); render(painter); image->save(imagefilename); Unfortunately, it only renders part of the web page that is shown on the widget to the image. How to render the whole page to the image? 回答1: It is possible to hide webview and resize it to show the whole web page. I'm using PyQt5 (version 5.12), but the idea should apply to C++ Qt as

PowerShell Screen Capture

为君一笑 提交于 2021-02-04 06:50:45
问题 I have been stuck on this for last day or so and I think its something small that I just can't see. To summarize the code: Powershell script that will run every 60 seconds to take a screen capture. On Windows Server 2012 this works perfectly fine. While on Windows 7, only first screen shot is taken and then all after are "blank" with just white space the size of dimensions. Any Ideas why this happens? I also attempted to remove the bigger while loop and do a scheduled task that runs every 5

Problems while taking screenshots of a window and displaying it with OpenCV

别说谁变了你拦得住时间么 提交于 2021-01-28 20:10:52
问题 When i run this code on my desktop pc it runs fine. but when i run it op my laptop something goes wrong when i set the bounding box for the image grab to the bounding box of the windows calculator and the screen recording of the window and places it self a little up and to the left. import cv2 import numpy as np from PIL import ImageGrab import win32gui def windowGrab(window_title=None): if window_title: global hwnd hwnd = win32gui.FindWindow(None, window_title) if hwnd: win32gui

Disable running screen capture software in Java app

柔情痞子 提交于 2021-01-28 07:09:42
问题 I found similar questions here, but not with this approach and problem. I have a program which does some mathematics. At the moment, results are written in .doc file. But, this file can be shared through network. I want to disable it by writing results in label. But, again, screen can be captured. So, I found many ideas for preventing this, but the most interesting to me is that to detect and disable all screen capture software running on the system, and periodically (if it is possible)

WebRTC cannot record screen

我的梦境 提交于 2021-01-28 04:58:15
问题 I'm trying to make screen sharing app using WebRTC. I have code that can get and share video stream from camera. I need to modify it to instead get video via MediaProjection API. Based on this post I have modified my code to use org.webrtc.ScreenCapturerAndroid, but there is no video output shown. There is only black screen. If I use camera, everything works fine (I can see camera output on screen). Could someone please check my code and maybe point me in right direction? I have been stuck on

Force to use integrated (Intel) graphic card on Microsoft Hybrid system

廉价感情. 提交于 2021-01-21 10:50:13
问题 I use Microsoft Desktop Duplication API and if my code runs on the Integrated (Intel) graphic card then everything works fine. But if I run on the dedicated card, I get an error. I found that Microsoft does not support this usage on a dedicated card on Microsoft Hybrid system DXGI_ERROR_UNSUPPORTED Similar questions without solution for my needs: DirectX11 Desktop duplication not working with NVIDIA Desktop Duplication API & switchable graphics The workaround is to launch the program on the

Force to use integrated (Intel) graphic card on Microsoft Hybrid system

本秂侑毒 提交于 2021-01-21 10:49:26
问题 I use Microsoft Desktop Duplication API and if my code runs on the Integrated (Intel) graphic card then everything works fine. But if I run on the dedicated card, I get an error. I found that Microsoft does not support this usage on a dedicated card on Microsoft Hybrid system DXGI_ERROR_UNSUPPORTED Similar questions without solution for my needs: DirectX11 Desktop duplication not working with NVIDIA Desktop Duplication API & switchable graphics The workaround is to launch the program on the

Force to use integrated (Intel) graphic card on Microsoft Hybrid system

不问归期 提交于 2021-01-21 10:48:08
问题 I use Microsoft Desktop Duplication API and if my code runs on the Integrated (Intel) graphic card then everything works fine. But if I run on the dedicated card, I get an error. I found that Microsoft does not support this usage on a dedicated card on Microsoft Hybrid system DXGI_ERROR_UNSUPPORTED Similar questions without solution for my needs: DirectX11 Desktop duplication not working with NVIDIA Desktop Duplication API & switchable graphics The workaround is to launch the program on the