OpenCV/Python - Check if objects are to the right or left of a line
OpenCV/Python - Check if objects are to the right or left of a line
I have a list of 20 bounding boxes for objects that are at random places in an image. I want to put a diagonal line (I already have the angle function done) in the middle and check to see how many objects are on either side, and keep moving left or right until there are 10 on each side.
Is this possible? Thanks in advance
I honestly have no clue why I hadn't thought it through that way...I feel really dumb now. Thanks for the help though!
– LotaMaster
Jul 2 at 19:59
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Isn't that just a very simple matter of checking coordinates?
– Nyerguds
Jul 2 at 19:45