User:Golubjevaite/hackpact: Difference between revisions

From XPUB & Lens-Based wiki
Line 27: Line 27:
== IRC bot ==
== IRC bot ==


Using Michaels reverse bot as a base [https://pzwiki.wdka.nl/mediadesign/Building_an_IRC_bot_in_python / link]
> Using Michaels reverse bot as a base [https://pzwiki.wdka.nl/mediadesign/Building_an_IRC_bot_in_python / link]


<pre>
<pre>
import irc.bot
import irc.bot
</pre>
> Downloading an img from a url into a folder
<pre>
import requests # to get image from the web
import requests # to get image from the web
import shutil # to save it locally
import shutil # to save it locally

Revision as of 22:26, 31 October 2020

PROJECT PROPOSAL

WHAT

HOW

WHY

HACKPACT

getUserMedia

> Webcam filters
> Take photo button + clear button
> Canvas
> rgbSplit
> Javascript
> navigator.mediaDevices.getUserMedia() / link

// Get media stream
navigator.mediaDevices.getUserMedia({video: true, audio: false})


File:Webfilter1.jpeg File:Webfilter2.gif


IRC bot

> Using Michaels reverse bot as a base / link

import irc.bot

> Downloading an img from a url into a folder

import requests # to get image from the web
import shutil # to save it locally
import re

image blend with PIL

# alpha-blend the images with varying values of alpha
alphaBlended1 = Image.blend(image5, image6, alpha=.8)
alphaBlended2 = Image.blend(image5, image6, alpha=.2)