spiraltechnica / spout-for-python Goto Github PK
View Code? Open in Web Editor NEWA modified Spout library using Boost::Python to enable Spout texture sharing using Python.
A modified Spout library using Boost::Python to enable Spout texture sharing using Python.
I'm getting an Import Error when attempting to run spout_NST_sender_receiver.py: No Module named 'transform.'
Where does this module originate from?
Hey, I managed to run everything except if I try to capture the signal from my webcam with opencv and then send it. Then I just get a black screen. I tried to change the resolution and also use the right webcam ID. With cv.imshow(x, frame) I can see the livestream, but in the Spout Sender Window it is just black. Maybe someone can help me.
Thanks a lot!
what is my problem?
File "D:\Spout\Examples\spout_sender_example.py", line 121, in main
spoutSender.SendTexture(senderTextureID, GL_TEXTURE_2D, spoutSenderWidth, spoutSenderHeight, True, 0)
Boost.Python.ArgumentError: Python argument types in
SpoutSender.SendTexture(SpoutSender, numpy.uint32, IntConstant, int, int, bool, int)
did not match C++ signature:
SendTexture(class SpoutSender {lvalue}, unsigned int, unsigned int, unsigned int, unsigned int, bool, unsigned int)
Hi guys when i run hello.py i get error "import SpoutSDK. How can i import it in python?
Hello, thanks for this code.
I am having trouble using Spout in my Windows 10 machine running an RTX3070 and trying to run the FBO example. I also tried to go simple and instantiate the spoutSender.CreateSender('Spout Python Sender', spoutSenderWidth, spoutSenderHeight, 0)
but it gives me the error:
λ python35 ok.py
loadFBOextensions fail
Spout::CreateSender - OpenSpout failed
<SpoutSDK.SpoutSender object at 0x000001CA772D6148>
So the OpenSpout thingy failed and when trying to run the FBO example I get:
λ python35 spout_FBO_sender_example.py
pygame 2.0.3 (SDL 2.0.16, Python 3.5.2)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "spout_FBO_sender_example.py", line 144, in <module>
main()
File "spout_FBO_sender_example.py", line 137, in main
spoutSender.SendTexture(senderTextureID, GL_TEXTURE_2D, spoutSenderWidth, spoutSenderHeight, True, 0)
Boost.Python.ArgumentError: Python argument types in
SpoutSender.SendTexture(SpoutSender, numpy.uintc, IntConstant, int, int, bool, int)
did not match C++ signature:
SendTexture(class SpoutSender {lvalue}, unsigned int, unsigned int, unsigned int, unsigned int, bool, unsigned int)
I didn't compile this project and to be honest I don't even use Visual Studio or Windows but I really need this to work. Any help?
Thanks!
hi, i've seen some activity over here recent months (glad to face it after ~3 yrs of silence).
does anybody have an idea how to use this lib with multi-card setup?
there's SetAdapter feature in SpoutSDK, would be ultracool to have it operating in python lib too (or to know how to call it, if it's there already)
I am running the repo on python3.7. When running the repo with the receiver I get an intergelop error (directX/openGL), but it is not needed for my implementation.
When running the receiver part of the code, the window opens but it stays black. When checking with Arena and the SpoutReceiver demo it does receive an image. There is also no image when using the SpoutSender demo. I am sure to run arena and python37 on the high-performance nvidea card of my laptop. I also tried to to enable CPU sharing to see if that fixes the problem, which it does not.
Any ideas on what could cause this? Any help is greatly appreciated!
Great job!!, thank you for sharing, would this library work for linux?
I am trying
image=spoutReceiver.receive()
and I am getting
File "C:\Users\me\project\Library\Spout.py", line 140, in receive
if self.receiverWidth[id] != self.spoutReceiver[id].GetWidth(self.receiverName[id]) or self.receiverHeight[id] != self.spoutReceiver[id].GetHeight(self.receiverName[id]):
TypeError: 'int' object is not subscriptable
With Spout Receiver.
Code does not return any error but shows me a black screen. Also 'data' array full of '0'
Is there a way to check if it connected to the sender or not?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.