User:Golubjevaite/hackpact: Difference between revisions

From XPUB & Lens-Based wiki
Line 23: Line 23:


<br>[[File:webfilter1.jpeg|600px]] [[File:webfilter2.gif|600px]]
<br>[[File:webfilter1.jpeg|600px]] [[File:webfilter2.gif|600px]]
== IRC bot ==
Using Michaels reverse bot as a base
<pre>
import irc.bot
import requests # to get image from the web
import shutil # to save it locally
import re
</pre>
== image blend with PIL ==
<pre>
# alpha-blend the images with varying values of alpha
alphaBlended1 = Image.blend(image5, image6, alpha=.8)
alphaBlended2 = Image.blend(image5, image6, alpha=.2)
</pre>

Revision as of 21:01, 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

import irc.bot
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)