Depthai: Edge Detection

Created on 20 Oct 2020  路  15Comments  路  Source: luxonis/depthai

Start with the why:

Edge detection is a useful building block in many CV/AI pipelines and the DepthAI hardware has hardware acceleration for this feature.

Move to the how:

Implement the edge detection hardware acceleration as a node in the Gen2 pipeline builder (https://github.com/luxonis/depthai/issues/136).

Move to the what:

Support hardware-accelerated edge detection as a pipeline node.

enhancement Gen2

Most helpful comment

First version of the hardware block in DepthAI being used is below:

DepthAI Edge Filter

All 15 comments

I have seen this feature mentioned now on the store. So is it really in yet?

It says there:

image

Hi @matanster ,

Sorry about these not being implemented yet. We planned to have these out in December, but have been behind.

This is among 10 features we planned to release in December in conjunction with our bulk shipment of devices, but have not been finished yet.

For these 10 not-yet-started features, and also then others that are in-progress and finished, see here:
https://github.com/orgs/luxonis/projects/2

Anyway, we're more than happy to issue a full refund on the device here if you would like. I'm not immediately sure on the timing to get these out. Right now we're heads-down on fixing a subpixel crash (https://github.com/luxonis/depthai-python/pull/147) that can occur in some cases and getting full-rate IMU support out (in addition to Gen2 calibration improvements, and scripting capability https://github.com/luxonis/depthai/issues/207#issuecomment-813478224).

Thoughts?

Sorry about this not being out yet.

-Brandon

(Accidentally hit the close button, just reopened.)

All cool.

Hi @matanster ,

So these are always famous last words, but I think we should be able to have both of these at least initially released this month, if all goes well:

  • Edge Detector (Canny Filter, specifically).
  • Harris Filter (Corner detector).

Thoughts?

Thanks,
Brandon

I would by no means re-prioritize the workflow just due to one Github question ;-)

Hi @matanster @Luxonis-Brandon I published an unofficial example of Edge Detection using Harris filtering today, so you can try it out -
https://github.com/dhruvsheth-ai/gen2-api-depth-experiments/tree/main/edge-harris

I'll be adding a demo for canny edge detection too, this week.

Also, in case you face any issue, you can open an issue on the repo or here.

Thanks!

I would by no means re-prioritize the workflow just due to one Github question ;-)

Sounds good. Actually we ran into an issue with the latest Raspberry Pi OS that we need to debug (https://github.com/luxonis/depthai/issues/354). So will jump on that first.

And thanks @dhruvsheth-ai !

We're still working on this as a firmware module, but in the meantime Kunal implemented this as a node that runs on DepthAI here, using the technique from here.

image

First version of the hardware block in DepthAI being used is below:

DepthAI Edge Filter

melike!

note: deadlink. is this example published?

Hi @matanster @Luxonis-Brandon I published an unofficial example of Edge Detection using Harris filtering today, so you can try it out -
https://github.com/dhruvsheth-ai/gen2-api-depth-experiments/tree/main/edge-harris

I'll be adding a demo for canny edge detection too, this week.

Also, in case you face any issue, you can open an issue on the repo or here.

Thanks!

Those ones were host-side versions of those; not running on DepthAI.

The example Szabi made is using a hardware bock in DepthAI. And this one is using the OpenVINO technique to run on DepthAI, using the SHAVES probably.

note: deadlink. is this example published?

Hi @matanster @Luxonis-Brandon I published an unofficial example of Edge Detection using Harris filtering today, so you can try it out -
https://github.com/dhruvsheth-ai/gen2-api-depth-experiments/tree/main/edge-harris
I'll be adding a demo for canny edge detection too, this week.
Also, in case you face any issue, you can open an issue on the repo or here.
Thanks!

Sorry for the trouble @eric-schleicher . Thanks for the PR. Since I migrated the example to a different folder, the link might have gone broken.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

domef picture domef  路  3Comments

Zumbalamambo picture Zumbalamambo  路  10Comments

luiscastro1995 picture luiscastro1995  路  6Comments

LucaBonfiglioli picture LucaBonfiglioli  路  7Comments

NguyenTuan-Dat picture NguyenTuan-Dat  路  5Comments