Questions tagged [capture]
capture is the process of converting a set of pixels on a screen into a bitmap image stored in memory
1,436
questions
0
votes
0
answers
20
views
How to capture a screenshot out of an overlay on Android in Java
I coded an Java-pplication for android the last days. It should take a bitmap of the screen when a user clicks the overlay button. The permissions are all fine, the overlay works as intendet but when ...
0
votes
0
answers
14
views
Could not capture image?
I am using zwo ASI178MC to capture data using python. The camera works fine on laptop but when I try to use it on other system e.g. system, then after collecting 10 to 20 images it says "ZWO ...
0
votes
0
answers
25
views
How to install mitmproxy on Android7
I installed mitmproxy on centos7 to capture a network packet of an APP in Android7.0, and the result met my expectations.
But I want to install mitmproxy directly on Android7.0. In theory, I can ...
0
votes
0
answers
10
views
Root cmd enable Screen/Broadcast/media protection/capture
please tell me the name of the system variable or how to enable this permission, if I am editing something system, I have not found the system settings related to tags:
overlay, media, projection, ...
0
votes
0
answers
115
views
How to use CATIA CatScript macro to capture a specific view of a part?
I am tasked to find a way to help our design team to screen capture a specific position of a part. However, I don't know how to customize my own position.
I tried looking at some codes on the internet ...
1
vote
1
answer
37
views
Why Flutter can't find the new API toImageSync for RenderRepaintBoundary class?
The method 'toImageSync' was recently added to Flutter for RenderRepaintBoundary. As shown in this link.
https://api.flutter.dev/flutter/rendering/RenderRepaintBoundary/toImageSync.html
However, it ...
0
votes
0
answers
30
views
Motion Detection on my Monitor with MouseClick on it
hi StackOverFlow Community,
i am try to code a Fast Motion Recognition of my Screen/Monitor.
Lets say: every hour(not specified time) a thing appears on my Screen for just One Second!, Python should ...
0
votes
0
answers
36
views
MAUI multiple capture photo
is it possible to take several photos in a row in MAUI? it wants confirmation after each photo. Does this task have a solution? Thanks for any direction to go
1
vote
1
answer
86
views
Why is "this" in lambda capture treated differently than pointer to the same object?
If I capture the "this"-ptr in a lambda I can call member functions without problems. However, when I instead capture the pointer explicitely (without mentioning "this"), it stops ...
0
votes
0
answers
21
views
how i can take screenshot of specific Other software window in java?
i just try to take screenshot of a specific software every amount of time i found a way to take screenshot for active window but i need to take it for specific windows altough is not active .
thanks ...
0
votes
0
answers
17
views
How to capture the backbuffer that has been rendered in another thread
I'm making a function that captures the screen within a game.
I implemented it like this.
void somecapture()
{
d3dDevice->GetBackBuffer(0, D3DBACKBUFFER_TYPE_MONO, &backbuffer);
...
0
votes
0
answers
46
views
How can I capture photo from built-in or connected camera to PC?
I am trying to capture photos using a laptop built-in camera or connected mobile phone to my pc with a jQuery plugin.
I am working on Ubuntu 18.04 LTS desktop OS with a virtual host i.e. abc.edu.pk. I ...
0
votes
0
answers
21
views
I am trying to capture still images from RTSP feed in Python; however the image keeps 'hanging/freezing'
So I've been scouring GitHub looking for answers but haven't yet found the solution, so I will be grateful for any help!
I am trying to make a DIY trail camera; and I have an IP camera providing me an ...
0
votes
1
answer
53
views
Can't take a screenshot from a shiny app with background image to use it as a report
I have this simplified app:
library(shiny)
library(shinyWidgets)
library(shinyscreenshot)
library(capture)
my_ids <- LETTERS[1:13]
ui <- fluidPage(
#background image
tags$img(
src = &...
0
votes
2
answers
98
views
Python "ValueError: I/O operation on closed file" for a text file. But opened
I needed to a library specific output and, so I tired it like this way. But I got "ValueError: I/O operation on closed file." Error.
Here the code example that I tried...
import sys
def ...
0
votes
1
answer
100
views
C# - Capture Screenshot - 60FPS
I need to capture the screen faster:
I'm using Visual Studio C# Windows Form (.Net 6.0) - 1440p Screen Resolution
Iv tried bellow and a few others and they all seem to take 30+ms for CopyFromScreen to ...
1
vote
0
answers
24
views
Liquid Numeric Sort
I am trying to sort an array from small to large in liquid. Currently the output is [100, 2000, 250, 500]. I read that when using capture its creating a string and that you should try to convert it to ...
0
votes
0
answers
20
views
Getting sound data as trigger; in python
so I want to start small project in Python, but I am not sure about one of its aspects.
So what I want to do is:
On a browser, on one of the tabs there would be specific sound playing (let's call it &...
1
vote
2
answers
36
views
How to trigger a script when I see that I get a SNMP Set packet
I have a something that is sending an SNMP set command to my server. I can see the packet in wireshark, and I know that I'm getting the packet. Once I get this packet I need to decode it and do an ...
-1
votes
1
answer
54
views
What is the regex expression to find everything between --[[ and ]]? [duplicate]
I'm trying to clean up some Lua code files using a Python script and regex by removing comments. I'm using the following regular regular expression to find multiline comments: "--\[\[[^]\]]+"...
2
votes
2
answers
70
views
How to define a lambda function to be able to capture the 'this' pointer of a class?
I have a time class which tracks the time.
I want my other classes to be able to register a callback function if the day changes.
I have this working snippet:
#define MAX_CB_CHANGE_FUNCTIONS 50
...
-1
votes
1
answer
229
views
How to record video rtsp and save video for 5 minutes using python and opencv
How to record video rtsp and save video for 5 minutes using python and opencv
i m using to record some of the code but for 5 minutes using clas and function video is very tuff to download for 5 ...
2
votes
2
answers
61
views
Regex. I want everything BUT a specific pattern
I have data that looks this:
Key: [36;1m2848761038914979188[0m
Partition: 0
Offset: 33443
Timestamp: 2022-09-27 15:57:57.693 -0400 EDT
Key: [36;1m2039734487331374643[0m
...
0
votes
0
answers
6
views
Clipping Image from screen - MFC in C++
I have several applications which want to capture a portion of the screen into a CImage.
I have been doing it by creating a CImage the size of the screen and copying the screen into it. I then create ...
0
votes
0
answers
184
views
html element caputre using html2canvas error
Hi I'm making a code using mediapipe javascript and I want to capture the output canvas
which has the landmarks and line, so I'm trying to use html2canvas but I'm having some errors could you guys ...
0
votes
1
answer
464
views
Unable to clone canvas as it is tainted, html2canvas
I am stuck at this issue. Tainted Canvas, when I am clicking my Snapshot button inside my HTML, enter image description here, I already tried adding crossorigin="anonymous" on my script.
...
0
votes
1
answer
30
views
Can I get a captured image from the Android device information screen?
Intent setting = new Intent(Settings.ACTION_DEVICE_INFO_SETTINGS);
You can display the Android device information screen with the above code.
But when I run the code that captures the screen and ...
1
vote
1
answer
143
views
Use node to capture stdout of function call
I have a function myFunc that writes to stdout when called. Is it possible in node.js to capture this output and store it in a variable, and make sure the output does not appear in the terminal?
1
vote
0
answers
36
views
how to execute events in symfony?
I am new to symfony and I would like to capture the events of the following elements, where and how could I do it?
<div class="search-container">
<input class="form-...
2
votes
1
answer
105
views
Show external process debug output
I'm working on an application that is a sound editor for a video game.
This application has an option to test the sounds in the game, to do this I use Process.Start with some special parameters to ...
0
votes
1
answer
68
views
Why does capturing by value in lambda work although object is deleted?
Why does this code work?
// Online C compiler to run C program online
#include <cstdio>
#include <vector>
#include <functional>
#include <memory>
#include <iostream>
...
0
votes
1
answer
239
views
How to get image of specific size using python?
I am trying to get pictures from my camera using open cv I am using this code to access camera and save images in a folder.
import cv2
i = 0
#i = int(input(" "))
cap = cv2.VideoCapture(0)
...
0
votes
2
answers
100
views
Why cpp std::function can hold capture-lambda, while function pointer cannot?
I've got this code snippet:
int x = 3;
auto fauto = [=](){ cout<<'x'; };
function<void()> func{fauto};
func();
void (*rawPf)() = fauto; // fail to compile
rawPf();
...
1
vote
2
answers
75
views
What does "+" mean in cpp lambda declaration "auto fun1 = +[](){};" [duplicate]
I've seen in stackoverflow, people write lambda like this:
int main() {
auto f1 = +[](){};
auto f2 = [](){};
return 0;
}
(1) What does the + acturelly do in f1 expression?
I tried to ...
0
votes
1
answer
17
views
Synchronizing TWEEN, CCapture, and THREE.js rendering code to all be on the same clock
I'm using a library called CCapture to capture equally time-spaced frames. This code seems to be able to hook the clock and control it so that is slows down my rendering loop when it is capturing. My ...
0
votes
0
answers
31
views
Does anyone know how to capture http requests of a nodejs program?. Please tell me, thank you very much
For example, I want to capture the http request of this program.
0
votes
0
answers
203
views
How to configure prescaler and interrupt for the Timer used in the capture function of the ESP32's MCPWM module?
I am working on a project where every 50ms I need to send a 15us pulse from a microcontroller port, to discharge a capacitor. During the counting of these 50ms, this capacitor is charged again, ...
0
votes
1
answer
138
views
c++20: how to move capture a class instance
I want to construct a factory function for a class B, which needs a callback. The factory function gives a lambda to B, but this lambda needs an instance of another class A, which I want to create ...
1
vote
3
answers
126
views
C++11/14/17 Lambda reference capture [&] doesn't copy [*this]
Refer to this thread: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0806r2.html
It says:
In other words, one default capture ([&]) captures *this in the way that would be redundant ...
2
votes
2
answers
72
views
C++11 lambda: when do we need to capture [*this] instead of [this]?
For a quick sample we could see:
class Foo {
std::string s_;
int i_;
public:
Foo(const std::string& s, int i) : s_(s), i_(i) {}
void Print() {
auto do_print = [this](){
std::...
7
votes
1
answer
153
views
Why do lambda functions need to capture [this] pointer explicitly in c++20?
Pre-c++20, the this pointer is captured in [=] implicity. So what's the reason that c++20 decided that user should write [=, this] to capture this pointer explicitly, I mean, without this change, the ...
-1
votes
1
answer
175
views
R - Extract String between two strings
I want to take a string variable that has a lot of text in it, search until it finds a match "UpperBoundery" and then searches until it sees text after that upper boundary until it finds ...
7
votes
1
answer
92
views
No matching function compile error when passing lambda expression to a templated caller function?
Code:
#include <iostream>
template <class FunctorType>
void caller(const FunctorType& func) {
func();
}
int main() {
double data[5] = {5., 0., 0., 0., 0.};
auto peek_data = [...
-1
votes
2
answers
251
views
Camera4Kivy capture video
I was trying to capture a video in kivy/android using camera4kivy. but it seems that this function won't work. I tried capture video with location, subdir and filename (kwarg**) but still nothing ...
1
vote
0
answers
72
views
Why is TIM1 PWM Generation CH1 triggering input compare on TIM3
I'm very new to embedded SW development and I'm trying to understand as much as possible by realizing simple code for a STM32G031C6T6 MCU, so probabily this is a stupid question but I can't find the ...
0
votes
1
answer
304
views
HTML5 capture back facing camera
I am trying to capture an image from the back facing camera, the code works as expected the phone opens in either front or back, but using the back facing camera I get empty $_FILES["fileToUpload&...
0
votes
0
answers
97
views
How to install openflow dissector plugin for wireshark on Ubuntu?
I would like to capture openflow packets generated by Mininet using Wireshark. I installed Wireshark (3.6.0), but I don't see openflow plugin in the plugins tab of Wireshark. I searched the Internet ...
1
vote
1
answer
42
views
Regex for home automation
I am trying to split a feedback response from a Bluesound Node 2i, but I am struggling to work out how to achieve this. The software only accepts one capture group, the format of the response is x the ...
0
votes
1
answer
83
views
How to take a screenshot with Selenium in python in the actual moment of the page?
I'm trying to take a screenshot with Selenium of my project in python, the thing is that Selenium only takes the screenshot when the page loads, and I would like to take it in the moment after it ...
1
vote
0
answers
21
views
Capturing a session with an application for debugging purposes (linux)
I would like to record all interaction with a (linux) application to disk, capturing the UI and events like keystrokes and mouse clicks. Ideally this could weightless, always-on, scoped to a specific ...