User:Golubjevaite/2proto: Difference between revisions

From XPUB & Lens-Based wiki
(Created page with "= HACKPACT = This is just the prototyping I did to get familliar with tools. 400px|thumbnail|right | starting point == getUserMedia == > Webca...")
 
No edit summary
Line 2: Line 2:


This is just the prototyping I did to get familliar with tools.
This is just the prototyping I did to get familliar with tools.
[[File:seventhemodule.jpg|400px|thumbnail|right | starting point]]


== getUserMedia ==
== getUserMedia ==

Revision as of 14:02, 24 November 2020

HACKPACT

This is just the prototyping I did to get familliar with tools.

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})


rgbSplit

















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)
kittenblend