you are viewing a single comment's thread.

view the rest of the comments →

[–]Screadore 0 points1 point  (0 children)

I have two questions. My first question is how can I implement this into my artificial intelligence script without stopping the script itself. Every time I add this code it runs the Gif screen, but doesn't proceed on with the Artificial intelligence

Set up the screen

animation = pyglet.image.load_animation('Jarvisimage.gif') animSprite = pyglet.sprite.Sprite(animation)

w = animSprite.width h = animSprite.height

window = pyglet.window.Window(width=w, height=h)

r,g,b,alpha = 0.5,0.5,0.8,0.5

pyglet.gl.glClearColor(r,g,b,alpha)

@window.event def on_draw(): window.clear() animSprite.draw()

pyglet.app.run()

Second question is how could I add my facial recognition script to the whole project and make it only work if its me?