Skip to content

Instantly share code, notes, and snippets.

View Forchapeatl's full-sized avatar
🎯
Focusing

FORCHA PEARL Forchapeatl

🎯
Focusing
View GitHub Profile
@Forchapeatl
Forchapeatl / GSOC2022.md
Last active September 12, 2022 16:58
Google Summer of Code Report 2022

Name: Forcha Pearl Fri
Gitter: forchapeatl
Email: forchapearl1@gmail.com
Github: forchapeatl
Location: Cameroon, Buea
Time Zone: UTC+01:00
Mentors: Jeffrey Yoo Warren, Tilda Udufo

Overview : Full-screen UI and video upload on Infragram.org

Name: Forcha Pearl Fri
Gitter: forchapeatl
Github: forchapeatl
Location: Cameroon, Buea
Time Zone: UTC+01:00
Mentors: Jeffrey Yoo Warren, Tilda Udufo

Overview : Full-screen UI and video upload on [http://Infragram.org]

<tr>
<td><b>NDVI for <span style="color:blue;">BLUE</span> filters</b></td>
<td>basic plant analysis for <a href="http://store.publiclab.org/product/infragram-diy-filter-pack">Infragram filter packs</a> and <a href="http://store.publiclab.org/product/infragram-webcam">webcams</a></td>
<td><a class="btn btn-primary" id="preset_ndvi_blue">Basic</a>
<a class="btn btn-success" id="preset_ndvi_blue_color">Colorized</a></td>
</tr>
<tr>
<td><b>NDVI for <span style="color:red;">RED</span> filters</b></td>
<td>basic plant analysis for <a href="http://store.publiclab.org/products/infragram-point-shoot-plant-cam">Infragram Point &amp; Shoot cameras</a></td>
<td><a class="btn btn-primary" id="preset_ndvi_red">Basic</a>
//media resolutions
const resolutionMap = {
"8k": { width:7680, height:4320},
"4k": { width:3840, height: 2160},
"hd": {width: 1920, height: 1080 },
"720p": { width: 1080, height: 720 },
"480p": { width: 854, height: 480 },
"vga": { width: 640, height: 360 },
"qvga": { width: 426, height: 240 }
<hr style="clear:both;">
<h2>Q&A</h2>
<p>Ask and answer questions to peer-troubleshoot this system:</p>
<iframe style="border:none;" width="100%" height="900px" src="//publiclab.org/embed/grid/question:infragram?"></iframe>
function updateImage(img) {
var ctx, height, imgCanvas, width;
imgCanvas = document.getElementById("image");
ctx = imgCanvas.getContext("2d");
width = img.videoWidth || img.width;
height = img.videoHeight || img.height;
ctx.drawImage(img, 0, 0, width, height, 0, 0, imgCanvas.width, imgCanvas.height);
image = ctx.getImageData(0, 0, imgCanvas.width, imgCanvas.height);
return set_mode(mode);
}
isLoadedFromFile: function() {
if (FileUpload.file) {
return true;
} else {
return false;
}
},
getFilename: function() {
return FileUpload.serverFilename;
module.exports = function Fullscreen(options) {
var fullscreen = false;
$(".fullscreen").click(function() {
if (fullscreen) {
$("#image").css("display", "inline");
$("#image").css("position", "relative");
$("#image").css("height", "auto");
$("#image").css("left", 0);
$("#backdrop").hide();
"bootstrap": "~4.6.0",
"bootstrap": "~3.4.0",