GMU:Bots 'n' Plots/Natalia Martínez: Difference between revisions

From Medien Wiki
(clean up + add comments)
No edit summary
 
(24 intermediate revisions by 2 users not shown)
Line 9: Line 9:
----
----


==== Twitter Bot ====
==== Final Twitter Bot ====


'''Pasting Faces of animals on top of the faces on the picture'''
''Pasting Faces of animals on top of the human faces on the picture''
 
The first idea for creating this bot was inspired by some pictures I saw of a Japanese needle- felting expert Housety Sato and his gigant cat head. I also love cats so at first the idea was using only cats, but why stop with cats I cropped the animal faces on photoshop and saved them with a transparent background to make a cooler effect. There is also an application in the iTunes store that does a similar work on photos (Animal Face- IG Selfie Editor & Stickers for Pictures).
 
*I added another feature to the bot. It writes a random quote from a specific file. I made a list of animal quotes to continue with the theme.
 
[[File:Example_nm.jpg|300px|thumb|left]]
<br style="clear:both">
 
===== Link to Github Repository =====
 
[https://github.com/nataliamartinez/Animal-Face.git link to Github] <br> 
----
 
===== Screenshots =====
 
[[File:feed.png|300px|thumb|left]]
<br style="clear:both">
 
[[File:feed1.png|300px|thumb|left]]
<br style="clear:both">
 
[[File:feed2.png|500px|thumb|left]]
<br style="clear:both">
 
===== Code =====
 
[http://pastebin.com/Hgxs9CRd link to the code] <br>
 
===== About =====
 
This bot was presented on the Summary SS2015. The bot made new images recognising human faces and placing random animal faces from an specific directory. After a couple of hours the problem was that twitter suspended the writing actions of the bot and the bot can't respond to any tweet.
 
----
 
==== Midterm Twitter Bot ====


===== Screenshots =====
===== Screenshots =====
Line 23: Line 58:
===== Code =====
===== Code =====


[https://www.behance.net link to the bot], [http://pastebin.com/Z0DyDjaY link to the code] <br>  
[http://pastebin.com/Z0DyDjaY link to the code] <br>  


===== About =====
===== About =====
Line 39: Line 74:
I have cleaned up your page a bit and added a comment section.
I have cleaned up your page a bit and added a comment section.
Everybody else, please do the same with your pages. <br>
Everybody else, please do the same with your pages. <br>
You get the "Images do not match" error because the images and the rectangle you pass to the paste method don't match. If you use the `paste` method with the correct box size it should work. <br>
You get the "Images do not match" error because the images and the rectangle you pass to the paste method don't match.<br>
If you use the *paste* method with the correct box size it should work. <br>
[[User:Ms| — Martin Schneider]] 12:53, 17 June 2015 (UTC)
[[User:Ms| — Martin Schneider]] 12:53, 17 June 2015 (UTC)



Latest revision as of 23:31, 17 October 2015

Hello | Hallo | Hola

-Graphic Designer studying Media Art and Design (M.F.A.)-

Behance Portfolio


Final Twitter Bot

Pasting Faces of animals on top of the human faces on the picture

The first idea for creating this bot was inspired by some pictures I saw of a Japanese needle- felting expert Housety Sato and his gigant cat head. I also love cats so at first the idea was using only cats, but why stop with cats I cropped the animal faces on photoshop and saved them with a transparent background to make a cooler effect. There is also an application in the iTunes store that does a similar work on photos (Animal Face- IG Selfie Editor & Stickers for Pictures).

  • I added another feature to the bot. It writes a random quote from a specific file. I made a list of animal quotes to continue with the theme.


Link to Github Repository
link to Github 

Screenshots




Code
link to the code 
About

This bot was presented on the Summary SS2015. The bot made new images recognising human faces and placing random animal faces from an specific directory. After a couple of hours the problem was that twitter suspended the writing actions of the bot and the bot can't respond to any tweet.


Midterm Twitter Bot

Screenshots



Code
link to the code 
About

"This was the bot I was working on but got stuck because the images did not match "


link to the code


Comments

No Eyes Bot is still great. Huge effect with little code!
I have cleaned up your page a bit and added a comment section. Everybody else, please do the same with your pages.
You get the "Images do not match" error because the images and the rectangle you pass to the paste method don't match.
If you use the *paste* method with the correct box size it should work.
— Martin Schneider 12:53, 17 June 2015 (UTC)


Processing Bot

Source Code
"""
My Robot
"""
# Set up canvas

eye = 15

def setup():
    size(400,400)
    background (255)

    noStroke()

def draw():

    #color change background
    R = random(10,200)
    G = random(10,150)
    B = random(200,200)
    background(R,G,B)
    
    
    # Head
    fill(50,100,255)
    rect(100, 50, 170, 150)
    
    # # Glasses
    fill(255)
    rect (170, 110, 50, 3)
    rect(120, 100, 50, 30)
    rect(200, 100, 50, 30)

    #line(170, 110, 200, 110)
    


    # increase eyes
    eye = 10 + 5 * sin(frameCount * 0.1)
    
    # arm movement
    #position1 = up1,

    #Right Eye
    fill(100)
    ellipse(220,120,eye,eye)
    
    #Left Eye
    ellipse(150,120,eye,eye)
    
    # Body
    fill(50,200,255)
    rect(155, 200, 60, 150)

    #Right foot
    fill(150,70,190)
    ellipse(200,350,25,25)
    
    #Right foot
    ellipse(170,350,25,25)
    
    #Right Arm
    fill(50,200,255)
    #rotate (-TWO_PI /8)
    #translate(-215,100)
    rect(220, 200, 20, 90)
    
    #Left Arm
    #translate(100,100)
    rect(130, 200, 20, 90)
    

    
    #saveFrame('robot_1.jpg')
    saveFrame('myrobot_###.jpg')
Screenshots


Animated Gif