Giter VIP home page Giter VIP logo

Comments (6)

tj27-vkr avatar tj27-vkr commented on May 31, 2024 2

Refer config.py for the image dimension (IMAGE_MAX_DIM, IMAGE_MIN_DIM)

from rcnn-vehicle-tracking-lane-detection.

tj27-vkr avatar tj27-vkr commented on May 31, 2024 1

The problem is with the crop points to get the area of interest, which is currently hardcoded in process_image.py file. For now, you can modify the crop points with Y min to be 2/3rd of image height and X min, max to be 2/5th and 3/5th of the image width respectively. Will update with the patch soon.

from rcnn-vehicle-tracking-lane-detection.

athityakumar avatar athityakumar commented on May 31, 2024

I tried changing the dimension config over a variety of ranges (min-max), but that didn't work for me and I'm not sure what config is exactly expected for this to be robust and working for all image sizes.

For example, what would be the dimension config for input/test4.jpg? In my specific case, I have images of dimension 640x480.

from rcnn-vehicle-tracking-lane-detection.

athityakumar avatar athityakumar commented on May 31, 2024

Ping @tj27-vkr - Sorry, forgot to mention you ^ 😅

from rcnn-vehicle-tracking-lane-detection.

Mojzaar avatar Mojzaar commented on May 31, 2024

Hi,
I want to change the size of the input picture but I cannot! I changed the process image file and config file as you said and I will receive the following errors:
Traceback (most recent call last): File "main.py", line 137, in <module> a, img_result = findLane(img_arr) File "main.py", line 104, in findLane left_fit, right_fit, _ = ip.slidingWindow(masked_image) File "/home/mojzar/Desktop/RCNN-Vehicle-Tracking-Lane-Detection-master/process_image.py", line 140, in slidingWindow left_fit = np.polyfit(lefty, leftx, 2) File "/usr/local/lib/python3.6/dist-packages/numpy/lib/polynomial.py", line 550, in polyfit raise TypeError("expected non-empty vector for x") TypeError: expected non-empty vector for x

It means your code would not able to work with images which have different size but 1280 720 pixels?

The problem is with the crop points to get the area of interest, which is currently hardcoded in process_image.py file. For now, you can modify the crop points with Y min to be 2/3rd of image height and X min, max to be 2/5th and 3/5th of the image width respectively. Will update with the patch soon.

from rcnn-vehicle-tracking-lane-detection.

robogeekcanada avatar robogeekcanada commented on May 31, 2024

That's correct once the matrix is adjusted, we can use different size pictures. Thank you.

from rcnn-vehicle-tracking-lane-detection.

Related Issues (8)

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.