使用deepstream中的ds-example插件,开发自定义插件,实现将视频图像分发到ros,然后可以通过ros接受到实时的数据,然后进行其他车道线等识别的功能
源代码如下:
我测试的时候保存图是没问题的就是在线视频有问题,最后测试发现是mat转rosimg的问题
/**
* Copyright (c) 2017-2021, NVIDIA CORPORATION. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyr