Autonomous Flight with a Camera: Horizon Detection Algorithm

Autonomous Flight with a Camera: Horizon Detection Algorithm

Tim Huff

1 год назад

8,126 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@farkhodkhikmatov4738
@farkhodkhikmatov4738 - 30.01.2023 18:04

Can you please show us your electronics set up?

Ответить
@jeffreyhiggason4004
@jeffreyhiggason4004 - 30.01.2023 22:34

Super cool! Thank you for sharing!!

Ответить
@Koroleva_O_A
@Koroleva_O_A - 31.01.2023 01:50

And where exactly is he flying? What is the ultimate goal and who assigns it?

Ответить
@Vindolin
@Vindolin - 09.02.2023 12:01

Great presentation, thanks for sharing.
Just out of curiosity, does findContours() really have a different return values for windows/linux?

Ответить
@nacorti
@nacorti - 15.02.2023 21:06

Great code review, very clear and concise.

I think segmentation would definitely give you better perception outputs, but would depend on how quickly you could perform inference. What HZ do you get out of your control loop right now?

Depending on that, you might be able to get away with using a USB compute stick attached to the raspberry pi to augment processing power.

Ответить
@Someonefromplanetearth
@Someonefromplanetearth - 21.02.2023 00:50

Great work!

Ответить
@swarnamohanchandrakanth5243
@swarnamohanchandrakanth5243 - 24.02.2023 10:21

great work

Ответить
@carlphilippgottliebvonclau9706
@carlphilippgottliebvonclau9706 - 27.02.2023 01:09

Ok, what about night? I assume that the algorithm not will be working fine, because of camera with night mode return back images in different colours.

Ответить
@Pystro
@Pystro - 01.03.2023 13:36

One thing that you could easily play with is how you do the rgb-to-greyscale conversion. There's a reason why we say "the sky is blue", so taking the greyscale value as the usual 33%red+33%green+33%blue seems to not be the smartest way to go about this.
What makes this complicated is that 0%red+0%green+100%blue might not be optimal either, especially when there's blue lakes in the picture. Since lakes will also have some blue tone, but a less overexposed kind of blue.

Maybe you can compare the color of your sky with the color of the most problematic (brightest) patches of ground. (Which I define as any bright areas on the "ground" side of your horizon line.)
Step A: Take the average sky color minus the average problem patch color (And since the sky is the sky, you can probably get away with sampling only every 10x10 pixels of your downscaled image).
Step B: Normalize the resulting RGB space vector - by which I mean to a sum of 1, not an euclidian length of 1. (Problems can occur when the problem patches are brighter than the sky itself, see the first fix idea below.)
Step C: Use those numbers as the mixing ratio for the greyscale conversion.
You'll probably need to come up with a way to obtain a representative sample of problem patches, despite them appearing (by design) only rarely.
My first idea would be to not use the same threshold as for your actual horizon detection, but 90% or so of it (to pick up on darker patches that COULD become problematic with a slightly changed sky color.) And my second idea would be to keep a record of past patch colors across several seconds of footage, and average over those.

Ответить
@MaxLevine
@MaxLevine - 02.03.2023 00:38

wow , we did it with ardupilot 10 years ago :) but cool work anyway

Ответить
@BooDevil65
@BooDevil65 - 04.03.2023 18:15

Cool stuff!

What happens in a steep dive, when the sky is out of view?

Ответить
@MrDavidHearn
@MrDavidHearn - 01.05.2023 02:18

This is awesome

Ответить
@StuartRobinson123
@StuartRobinson123 - 24.07.2023 20:28

really cool - thank you for walking through the code here. awesome work

Ответить
@pranavk1646
@pranavk1646 - 07.08.2023 23:33

How did you perform testing of the code and the airplane in general? Did you use simulation software to model the plane and test the code?

Ответить
@SteveWrightNZ
@SteveWrightNZ - 19.12.2023 02:09

Was flying the clubs' C172 one day and the turn coordinator ball was way the hell out the side, very odd.. I did everything in my power to center it, but my head wouldn't let me, so I went instrument only for ten seconds and the ball magically centered. Eyes outside again, and as if by some black magic the damn ball headed off to the side again! What was it? A cloud on the horizon was on an angle.... You will need some checks on your algorithm - I did on mine.

Ответить
@erdum
@erdum - 21.01.2024 19:52

Very informative.❤

Ответить
@someDude809
@someDude809 - 10.06.2024 15:03

Interesting approach to this problem. There are some downsides to using visuals for such a vital system. Is this just meant as a proof of concept, because for production a simple IMU would probably be faster and less complex on the software side. But nevertheless, great video 👍

Ответить
@jamesaddison81
@jamesaddison81 - 20.06.2024 12:35

Is there another video in this series coming?

Ответить
@DarpaProperty
@DarpaProperty - 28.08.2024 03:50

What kind of hardware did you use? Camera type and connections? Does this mean that you used RP Camera? Thank you.

Ответить
@waseemhnyc
@waseemhnyc - 03.09.2024 03:06

Great video. Is there a reason or an advantage to using cameras for this instead of an IMU?

Ответить
@HousseinAlDroubi
@HousseinAlDroubi - 08.09.2024 12:13

Welcome.

Ответить