Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connecting ThorLabs Camera to DeepLabStream for Live Experiment #125

Open
KemalOz21 opened this issue Jul 7, 2024 · 1 comment
Open

Comments

@KemalOz21
Copy link

To whom it may concern,
First of all, congratulations on publishing and developing DeepLabStream. The paper was intriguing for me to read. I want to import my models to DeepLabStream in order to perform a live experiment. Currently, I am having an issue on connecting a Thorlabs camera to the DeepLabStream program using the opencv option. In my DeepLabStream environment, I can activate the camera using a code script that my lab wrote. However, when I open the DeepLabStream app and click "Start Stream", it detects the camera but does not display the video properly. I attached below a couple of files which include the settings configuration file as a txt document, what the current camera detection should look like, and what does the program currently show. What parameters should be used when setting up the "settings" text file so that the camera can be read properly from the program?

Thank you,
Kemal Ozdemirli

Camera_Detection
Camera_Look
Camera_Activation_Terminal
settings_file.txt

@coder-miguel
Copy link

To follow up with @KemalOz21 's post. The camera we are using is the OBS Virtual Camera.

I tested the opencv code used to capture the frames from the virtual camera (found in /utils/generic.py), and was able to get the frames correctly, but for some reason when I tried debugging the code in DeepLabStream, the frames were mostly black, and I couldn't actually get a breakpoint on /utils/generic.py.

The only thing I can suspect is that it might have something to do with the threading, but it is only a suspicion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants