GithubHelp home page GithubHelp logo

Comments (2)

SamDecrock avatar SamDecrock commented on May 24, 2024

I've not tested the code, but from the looks of it I think you can fix it by replacing image_bigger with IM_BIGGER which changed name in the major update commit.

Update: I've run the code and you will need a few more changes:

# Initialize size of rectangle to crop for search matches
sw = 100 * IM_BIGGER  # default search rectangle Width
sh = 45 * IM_BIGGER  # default search rectangle height
crop_x_L = (MO_CROP_X_LEFT + 10) * IM_BIGGER
crop_x_R = (MO_CROP_X_RIGHT - 10) * IM_BIGGER
crop_y_U = (MO_CROP_Y_UPPER + 10) * IM_BIGGER
crop_y_D = (MO_CROP_Y_LOWER - 10) * IM_BIGGER

Not sure it works though as responds with:

Loading Target Search Image media/search/speed-5-20240323-1504239.jpg
ERROR: Problem Extracting search_rect from media/search/speed-5-20240323-1504239.jpg
ERROR: Problem Creating Search Rectangle.
       Cannot Search Match media/search/speed-5-20240323-1504239.jpg

from speed-camera.

brewtide avatar brewtide commented on May 24, 2024

Hey, I appreciate it. I kind of rambled in my above original question, but like you, I had done those additional variable changes and ended up with the same result, which is where I was left stumped. (Not really a programmer). I didn't paste that output as I had done it a week before and couldn't fully remember the 'new error' I was getting.

I'll likely poke at this again this evening to see if I can figure it out -- Or I may just try to use one of the older versions (with old variables) but feed it my 'dataset'.

I was stuck at that point as well, and couldn't quite figure out steps beyond!

from speed-camera.

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.