Skip to content

cookt/mmdxJS

 
 

Repository files navigation

Troubleshooting:

  1. Degrees of rotation that do not work: 350, 290

Hardcoded constants:

  1. isRed in helpers:

    (hue<=360 && hue >=357) || (hue <=20)) && hsl.s > .7 && hsl.l>.1 && hsl.l<.85

  2. checkIfRotated in main: the image is said to be rotated, if the points of the detected rectangle (obtained from tracking.js and adjusted after application of Harris operator) have a ratio of red/nonRed < .1

  3. removeMarkers in main: padding = 10px; removes markers 10px more towards the innner part of the marker

External libraries used:

  1. Tracking.js http://trackingjs.com/

  2. Cornerdetect.js (Harris operator, MIT License) https://github.com/wellflat/javascript-labs/tree/master/cv/corner_detection

About

javascript for mmdx

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 70.0%
  • HTML 25.3%
  • Java 4.5%
  • CSS 0.2%