Showing 4 of 23 total issues
Function readFrame
has 122 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var readFrame = function () {
cam.read(function(err, mat){
mat.convertGrayscale();
motion.process(mat, 0.000001, 2.0, -10.0, 0);
mat = mat.flip(1);
File space.js
has 273 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* global console,angular,require */
(function () {
'use strict';
angular.module(
'wdt.controllers.space', [])
Function onkeydown
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
document.onkeydown = function (e) {
switch (e.keyCode) {
case 38: // up
$scope.threshold = Math.min(255, $scope.threshold + 3);
$scope.showOSD();
Function onkeydown
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
document.onkeydown = function (e) {
switch (e.keyCode) {
case 38: // up
$scope.weight = Math.min(1.0, $scope.weight + 0.005);
$scope.showOSD();