Giter Club home page Giter Club logo

Comments (3)

jywarren avatar jywarren commented on August 11, 2024

So we found that is_cfl maybe is not even used??? Because the line of code actually run is observe_contrast() which checks the average amount of "steepness" or contrast in the data every half second. I bet this run faster and more reliably than actually checking if the data matched a fluorescent light pattern, which is interesting:

https://github.com/publiclab/spectral-workbench.js/blob/4e3c9f65d51d3dacd4a831ab2aebf39181620db8/examples/capture/api.js#L41-L64

So, that should be something we can integrate here!

from spectral-workbench.

jywarren avatar jywarren commented on August 11, 2024

Here's where it's used in the legacy code:

jQuery(document).ready(function() {
$W.observe_contrast(
false,
function() {
$('#cfl-detect i').css('color','red');
},
function() {
$('#cfl-detect i').css('color','white');
}
)
})

from spectral-workbench.

jywarren avatar jywarren commented on August 11, 2024

And here it is in the new capture code. Is it actually running?

$W.observe_contrast(
false,
function() {
$('#cfl-detect i').css('color','red');
},
function() {
$('#cfl-detect i').css('color','white');
})

from spectral-workbench.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.