-
Notifications
You must be signed in to change notification settings - Fork 53
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
Web browser stream #72
Comments
Yes, it is possible: With new IC Imaging Control 4 released, we should consider rewriting this Python sample. You may think about using webRTC. https://webrtc.org/?hl=en. Maybe the driver of your camera must be limited to show only RGB24, because webRTC does not like the mono formats of your camera. I would show, how to do that, but I do not know, which camera model (GigE or USB) you use. Stefan |
Thank you very much stefan. |
Hello
Stefan |
Hey Stefan, Thank you. |
Hi A happy new year to you! Good to know, webRTC works fine.
I am sorry, but this webRTC is not a software from us, thus, we can not interfere too much. But you can load a previously, with IC Capture 2.5 exported Device-State xml file with a small Python script: import ctypes
import tisgrabber as tis
ic = ctypes.cdll.LoadLibrary("./tisgrabber_x64.dll")
tis.declareFunctions(ic)
ic.IC_InitLibrary(0)
hGrabber = ic.IC_CreateGrabber()
ic.IC_LoadDeviceStateFromFile(self.hgrabber, tis.T("camera.xml"))
ic.IC_ReleaseGrabber(hGrabber) This sets all properties except video format and frame rate, which is set again by webRTC. (Working with Linux you could use the startup behavior properties of the camera. The restored settings are overwritten in Windows by the driver, which saves the last used properties in the registry and restores them.) I hope, this helps. |
Hey TheImagingSource,
Thank you very much for your packages and the support.
I was wondering if you know a way I could video stream from the camera to the browser in windows?
I saw an official example from TIS but unfortunately it only supports linux.
https://github.com/TheImagingSource/Linux-tiscamera-Programming-Samples/blob/master/python/webserver/tcam_webserver.py
Is it possible to implement it in windows?
Thanks.
The text was updated successfully, but these errors were encountered: