×
INDI Library v1.8.7 Released (21 Nov 2020)

Nov. 2020 Release brings significant improvements to streaming and recording videos. Support for new drivers including Estatto focuser and Pegasus falcon rotator.

How to catch stream from indiserver with openCV

3 months 4 weeks ago
Stefie1987
Fresh Boarder
Fresh Boarder
Posts: 11
More
Topic Author
How to catch stream from indiserver with openCV #57742
I would like to catch a live stream from a ZWO ASI camera with openCV.
I kind of figured out how to use indiserver to connect to the camera and I found the stream option.
However, I have no idea where the stream is going or how to catch the stream, since there seems to be no object like /dev/video created by Indi_setprop "... STREAM=On".
Has anyone figured that out?

Please Log in or Create an account to join the conversation.

3 months 4 weeks ago
knro
Administrator
Administrator
Posts: 8567
Karma: 51
How to catch stream from indiserver with openCV #57824
You need to get the BLOB from CCD1 property and then process it.

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
The following user(s) said Thank You Stefie1987

Please Log in or Create an account to join the conversation.

3 months 3 weeks ago 3 months 3 weeks ago by Stefie1987.
Stefie1987
Fresh Boarder
Fresh Boarder
Posts: 11
More
Topic Author
How to catch stream from indiserver with openCV #57904
Thank you for the quick response.

My CCD is the ZWO CCD ASI130MM.
I would set the BLOB mode to the following.
indiclient.setBLOBMode(EMPTY, 'ZWO CCD ASI130MM', "CCD1")
What do I set for the EMPTY argument? 1 or PyIndi.B_ALSO or ?


Following the tutorial indilib.org/develop/indi-python-bindings.html :

I get the following error when taking an exposure:
read message ZWO CCD ASI130MM '[ERROR] Exposure failed after 3 attempts
'
2020-08-08T03:37:59: Client 0: queuing <message device='ZWO CCD ASI130MM' name=''>
2020-08-08T03:37:59: Driver indi_asi_ccd: read setNumberVector ZWO CCD ASI130MM CCD_EXPOSURE Alert
CCD_EXPOSURE_VALUE='0.098330020904541015625'
2020-08-08T03:37:59: Client 0: queuing <setNumberVector device='ZWO CCD ASI130MM' name='CCD_EXPOSURE'>
2020-08-08T03:37:59: Client 0: sending msg copy 1 nq 2:
<message device="ZWO CCD ASI130MM" timestamp="2020-08-08T03:37:59" message="[ERROR] Exposure failed after 3 attempts."/>

2020-08-08T03:37:59: Client 0: sending msg copy 1 nq 1:
<setNumberVector device="ZWO CCD ASI130MM" name="CCD_EXPOSURE" state="Alert" timeout="60" timestamp="2020-08-08T03:37:59">
<oneNumber name="CCD_EXPOSURE_VALUE">
0.098330020904541015625
</oneNumber>
</setNumberVector>

Please Log in or Create an account to join the conversation.

3 months 3 weeks ago
Stefie1987
Fresh Boarder
Fresh Boarder
Posts: 11
More
Topic Author
How to catch stream from indiserver with openCV #57905
Ok, never mind.
The error mentioned in my last post is not related to PyClient but appears to be a driver or firmware issue as mentioned with similar cameras here www.indilib.org/forum/ccds-dslrs/1861-he...ed-0.html?start=%1$d

I also found a script that does pretty much what I want it to do:
github.com/GuLinux/indi-lite-tools/blob/...ence-shell/README.md

Please Log in or Create an account to join the conversation.

Time to create page: 0.903 seconds