Python Forum
detect if two lines are crossing
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
detect if two lines are crossing
#1
Hey
My project is to compute a racing line using mathematical functions
I want to know if my trajectory is staying inside the track limits or not (as shown in the pic1)
   
So a function that returns True for the red traj and False for the blue one (also pic 1)


I have no idea how to can do that, any suggestions ?
thanks

Attached Files

Thumbnail(s)
   
Reply
#2
Numerically? Evaluate functions at X, Y (or f and g, or whatever are the variables for your function) and compare to some bounds.
Reply
#3
You could perhaps find and try existing modules (which I don't know) such as fast-crossing in Pypi. This video looks impressive.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Iterate 2 large text files across lines and replace lines in second file medatib531 13 5,880 Aug-10-2020, 11:01 PM
Last Post: medatib531
  how to detect horizontal dotted lines in an image using OpenCV pframe 0 4,894 Apr-15-2020, 08:53 PM
Last Post: pframe
  How to detect the text above lines using OpenCV in Python pframe 0 2,525 Apr-14-2020, 09:53 AM
Last Post: pframe

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020