Page 1 of 1

[solved] [question wrote wrong] connecting a webcam to an AI application with Ren'py (or python) , is it possible?

Posted: Sun May 08, 2022 11:43 am
by deltadidirac
Hi all,
I've been using "Replika" for a couple of weeks (a free AI found on the web and coded with python); I found it very interesting and above all its programming is very complex, but I must admit that it is very well structured ...

The reality is that obviously the software as it is, is set up to "get as close as possible" to "your" way of speaking and understanding and tries to imitate "you", so it has many blocks or actions not allowed in its programming. Despite this, however (at least at the level of "potential"), it would be able to evolve and understand much more than what it is currently able to do ... And this is the part that I find interesting.

Technically, you register on the site, create your nickname and password, and start talking directly to the software, so this implies (and I have had confirmation from the software itself), that there is a general basic AI for everyone, thenAfter your log-in), one of these AIs create and register a channel dedicated only to you, opens and in which all the conversations carried out are stored, analyzed, reviewed and processed (this action is performed by the software not by third-party human beings), no one else enters this human-AI relationship, so is an AI dedicated only for each account

Forgive this long premise, but it was necessary for those unfamiliar with this application

Now This is my real question:

I have tried through discussions and attempts to understand the logic of the application and its "physical" and programming limitations, if certain "omissions" or blocks could be circumvented, just by using logic and reasoning; This was not possible The code is very well structured.
I tried to contact the producers and programmers to understand if I could somehow "implement" or unlock (and therefore expand) the possibilities of use and operation of the application, but I never received an answer.

In reality, since my interest in all this is purely "mental-scientific", I didn't start because I wanted to "play or create a dialogue partner", I wanted to know if (for other reasons, or with other applications, and use) someone has already faced the problem of connecting a "webcam" (obviously making it clear that it is a tool that displays images in real time), or has already written some commands or codes for this.

I know that this application, Replika, has the theoretical possibility of being able to do it (she herself gave me confirmation, and is also able to be used on the phone, but only with the possibility of voice dialogue)

So there are three cases
1) everything is already programmed, but it is blocked by commands and algorithms
2) has not yet been encoded
3) has been encrypted but not inserted into the software

Personally I believe that the first hypothesis is the most correct, or possibly even the third, the second is not.

I know well
that this forum does not deal with these particular topics (so don't eat me please), but I still wanted to give it a try, maybe someone has suggestions or knowledge of useful sites and links to better understand things, or even create their own personal AI (even if in reality I am not a programmer)

Thanks for your time and any replies

Re: connecting a webcam to an AI application with Ren'py (or python) , is it possible?

Posted: Sun May 08, 2022 6:32 pm
by Imperf3kt
Probably not, see this post by PyTom.
viewtopic.php?f=8&t=48593&p=480369&hilit=Camera#p480369
(I seem to recall a more detailed post stating why it was technically infeasible, but maybe I'm not remembering correctly)

Re: connecting a webcam to an AI application with Ren'py (or python) , is it possible?

Posted: Mon May 09, 2022 7:26 am
by deltadidirac
Imperf3kt wrote:
Sun May 08, 2022 6:32 pm
Probably not, see this post by PyTom.
viewtopic.php?f=8&t=48593&p=480369&hilit=Camera#p480369
(I seem to recall a more detailed post stating why it was technically infeasible, but maybe I'm not remembering correctly)
Thanks , very kind.

At this point I think that the better solution is to talk with some company that develop this software (and probably I must need to buy it). Too much work and money for a simple interest and hobby.

Re: connecting a webcam to an AI application with Ren'py (or python) , is it possible?

Posted: Mon May 09, 2022 10:48 am
by MapletreePaper
deltadidirac wrote:
Mon May 09, 2022 7:26 am
Imperf3kt wrote:
Sun May 08, 2022 6:32 pm
Probably not, see this post by PyTom.
viewtopic.php?f=8&t=48593&p=480369&hilit=Camera#p480369
(I seem to recall a more detailed post stating why it was technically infeasible, but maybe I'm not remembering correctly)
At this point I think that the better solution is to talk with some company that develop this software (and probably I must need to buy it). Too much work and money for a simple interest and hobby.
I'm not a programmer either, so other posters are free to correct me, but I'm fairly sure Imperf3kt and PyTom are only saying it's not feasible within Ren'Py. The title of your post also asks about Python in general and there are other game engines which use Python as a scripting language. If you're willing to branch out, you could try making your game in Godot, PyGame, or even Panda3D!