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 Error: Could not capture image".
I would like to have a suggestion how I can avoid this error.
Related
I'm trying to do some screen capturing on Mac OS using the standard CGDisplayStreamCreateWithDispatchQueue API, however I keep getting a NULL stream Ref when I call the API, and there is apparently no error information so I can't figure ut why it is failing.
I have tried code from these two sources (with minor tweaks when needed):
Capture screen with CGDisplayStream
https://github.com/diederickh/screen_capture/blob/master/src/test/test_mac_api_research.m
I have also tried CGDisplayStreamCreate(), and using a variety of resolutions and pixel formats. I have also confirmed CGGetActiveDisplayList is returning back one CGDirectDisplayID which I am passing to the API call.
Can anyone suggest what might be causing this silent failure?
Thanks.
I figured out the problem. It appears either I had accidentally clicked 'No' to the screen sharing permissions, or it hadn't come up. In any case, using the command in this question I was able to reset things and now it works.
How to trigger screen recording permission system modal dialog on macOS Catalina
Is there a way to detect when a webcam is being used.
When I join a video call or use Photo Booth, the leds on my Logitech C920 (usb) webcam turn on, I would like to be able to detect that so I can automatically change the color of my "smart" lights.
Either through command line or something that I code, I have done some research but haven't found anything that seems to work.
You can use the is-camera-on-cli package from the CLI.
Example:
$ is-camera-on
✔ Camera is on
I am using TensorBoard 2.2.0 to visualize my input image to a neural network in PyTorch. After running the code and I try to go through the recorded image data. However, when I try to browse it the image slider automatically jumps from the current step to the last step after some time. Any reason why this could be happening.
I am launching the tensorboard using this command -
tensorboard --logdir runs --samples_per_plugin images=0
I fell through a similar dilemma. You could turn off the relead after 30s option from settings in the tensorboard. GitHub issue on the same
I am trying to take 15 Megapixel images with a Logitech c920.
The camera supports full-HD (2.1 MP) video, and 15MP static images.
Using the supplied Logitech Software, I can indeed save 15MP images. But if I access the camera directly via DirectShow, I can at most get the full-HD resolution. It seems like the camera is stuck in "video" mode.
I tried various examples for accessing webcams, namely RobotEyez, VLC, NirSoft WebCamImageSave.
I am beginning to suspect that the default interfaces for webcams under windows are only designed for video, and that there is no official way to tell the camera to take still images in higher resolution than the video stream.
How can I access such a device under windows in order to capture the full 15MP resolution supported for still images?
Whats the best and easiest way to play an incoming live video stream in a c++ windows application (visual studio 2010) and write some notes (eg. this is a blue ball) on the stream display? ActiveX? DirectX? Flash?
I have Windows SDK 7.1 installed. Do I need to install any other software?
Appreciate any pointers.
In simplest, you can do everything you ask with just directshow. There is directshow.net managed library that wraps it for you.
So - try to find an example that just gets video from capture device to the renderer. Then, insert SampleGrabber filter in between those, and modify frame data accordingly. I am using such technique to draw timestamp on the recorded video in my recorder, I am even drawing it with simple GDI+ calls.
Thing to consider: you'll have to watch out for PICTURE format - some webcams have YUY2 as default or ONLY format. You'll want RGB24 format to be able to wrap Bitmap then Graphics around it.