Lane follower algorithm using CUDA C++ without OpenCV

Hello,

Is there any Lane follower algorithm that can work in real-time using CUDA C++ without OpenCV?
The need is to make it compatible with Jetson-inference pednet algorithm as Gstreamer is used to read camera input in Jetson-inference.
Are there any links I can refer to learn more about image processing using CUDA C++ without OpenCV?
Topics are -reading the input data from camera, BGRtoGRAY, BGRtoHSV, Canny edge detector, Hough transformation

Kindly help.
Thanks.

Hi,

Have you checked VisionWorks samples before?
VisionWorks also use GStreamer as backend frameworks and it’s recommended to give it a try first.

Thanks.

Hello AastaLLL,

Thanks for your response.

Yes I did check the VisionWorks sample. How can i integrate this with jetson-inference?

Thanks

Hi,

Jetson-inference use GStreamer as back-end frameworks.

Currently, we don’t enable the path between VisionWorks and GStreamer.
So there is some required memory copy when interpretation if you want to use both framework.

Thanks.

Hi Pratosha,

You may found interesting the following information about the GstCUDA framework, I think that is exactly what you are looking for. Below you will find a more detailed description, but in summary, it consists of a framework that allows to easily and optimally interface GStreamer with CUDA, guaranteeing zero memory copies. It also supports several inputs.

GstCUDA is a RidgeRun developed GStreamer plug-in enabling easy CUDA algorithm integration into GStreamer pipelines. GstCUDA offers a framework that allows users to develop custom GStreamer elements that execute any CUDA algorithm. The GstCUDA framework is a series of base classes abstracting the complexity of both CUDA and GStreamer. With GstCUDA, developers avoid writing elements from scratch, allowing the developer to focus on the algorithm logic, thus accelerating time to market.

GstCUDA offers a GStreamer plugin that contains a set of elements, that are ideal for GStreamer/CUDA quick prototyping. Those elements consist in a set of filters with different input/output pads combinations, that are run-time loadable with an external custom CUDA library that contains the algorithm to be executed on the GPU on each video frame that passes through the pipeline. GstCUDA plugin allows users to develop their own CUDA processing library, pass the library into the GstCUDA filter element that best adapts to the algorithm requirements, executes the library on the GPU, passing upstream frames from the GStreamer pipeline to the GPU and passing the modified frames downstream to the next element in the GStreamer pipeline. Those elements were created with the CUDA algorithm developer in mind - supporting quick prototyping and abstracting all GStreamer concepts. The elements are fully adaptable to different project needs, making GstCUDA a powerful tool that is essential for CUDA/GStreamer project development.

One remarkable feature of GstCUDA is that it provides a zero memory copy interface between CUDA and GStreamer on Jetson TX1/TX2 platforms. This enables heavy algorithms and large amounts of data (up to 2x 4K 60fps streams) to be processed on CUDA without the performance caused by copies or memory conversions. GstCUDA provides the necessary APIs to directly handle NVMM buffers to achieve the best possible performance on Jetson TX1/TX2 platforms. It provides a series of base classes and utilities that abstract the complexity of handle memory interface between GStreamer and CUDA, so the developer can focus on what actually gives value to the end product. GstCuda ensures an optimal performance for GStreamer/CUDA applications on Jetson platforms.

You can find detailed information about GstCUDA on the following link:
[url]http://developer.ridgerun.com/wiki/index.php?title=GstCUDA[/url]

I hope this information can be useful to you.

Best regards,
-Daniel