Comments (5)
Thanks! Soo fast response, it worked. Appreciate your work.
If possible, I will suggest to add this function to lib.
from flashcap.
@squirrelfeng I have added a new sample console application called FlashCap.OneShot
for you to look at. This should suit your needs, as it is simple console-based code without any GUI fragments.
The central design is as follows:
- Select a device and its characteristics.
- Open the device and specify a callback. In the callback, use
TaskCompletionSource<byte[]>
to copy the first image data obtained and pass it to subsequent processing. - Start capturing, wait for
TaskCompletionSource<byte[]>
to complete, and close it. - Save the obtained image data to a file.
from flashcap.
Added TakeOneShotAsync()
in feature/32 branch. Did you want a method like this?
from flashcap.
@squirrelfeng OK, I will merge to main branch :)
from flashcap.
1.5.0 is being deployed, contains this feature.
from flashcap.
Related Issues (20)
- Capture Error event handler HOT 1
- SET the power line frequency property HOT 1
- After running StartAsync() on linux, executing StopAsync() and then StartAsync(), pixelBufferArrived will not be executed again. HOT 4
- VideoCharacteristics not detected HOT 17
- Typo in Linux device enumeration HOT 3
- Reversed logic when enumerating Linux device capabilities HOT 3
- 执行OpenAsync时发生异常 HOT 1
- Elgato CamLink 4K DirectShow Pixel Format HOT 4
- Capture works first time on Linux, but not subsequent times HOT 4
- How to do shrink memory when capturing from WebCam to WPF HOT 2
- Avalonia aot 启动失败
- Is there a camera snapshot event handler? HOT 1
- AutoPixelBufferScope set PixelBuffer to null, cause allocate new PixelBuffer for every frame HOT 3
- Possible leaks in AsyncLock HOT 1
- Desktop Screen Capture Support HOT 1
- Support for camera module/ CSIconnector on Pi Zero 2W HOT 3
- OnPixelBufferArrived can not get new YUYV buffer in v1.10.0 (v1.9.0 is ok) HOT 5
- Support for AV to USB HOT 3
- 当同时连接多个摄像头(比如6个)的时候,数据返回会缺失 (When multiple cameras are connected simultaneously (such as 6), data return will be missing) HOT 2
- Verified Capture Cards HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flashcap.