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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Licensed to the Apache Software Foundation (ASF) under one | |
* or more contributor license agreements. See the NOTICE file | |
* distributed with this work for additional information | |
* regarding copyright ownership. The ASF licenses this file | |
* to you under the Apache License, Version 2.0 (the | |
* "License"); you may not use this file except in compliance | |
* with the License. You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 |
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 [http://Infragram.org]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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 & Shoot cameras</a></td> | |
<td><a class="btn btn-primary" id="preset_ndvi_red">Basic</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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 } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
isLoadedFromFile: function() { | |
if (FileUpload.file) { | |
return true; | |
} else { | |
return false; | |
} | |
}, | |
getFilename: function() { | |
return FileUpload.serverFilename; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"bootstrap": "~4.6.0", |
NewerOlder