How to Detect Lanes with NXP Vision Toolbox

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to Detect Lanes with NXP Vision Toolbox

4,216件の閲覧回数
dumitru-daniel_
NXP Employee
NXP Employee

Lane Detection

The following livescript uses MATLAB functionalities to simulate the lane detection application.
Read input image.
inImgPath = 'data/lane_detection.jpg';
inImgUMat = nxpvt.imread(inImgPath);
if isempty(inImgUMat)
    fprintf('Failed to open input image: %s.', inImgPath);
    return;
end
nxpvt.imshow(inImgUMat);
pastedImage_1.png
Create resize object.
ratio = 1;
resizeObj = nxpvt.apexcv.Resize();
Apply Lanemarking algorithm to grayscale image.
laneVerticesAlgorithm = lanemarking_Algorithm(inImgUMat);
Add results on to the original image.
laneImageAlgorithm = nxpvt.cv.insertLines(inImgUMat, laneVerticesAlgorithm);
laneImageAlgorithm = Process(resizeObj, laneImageAlgorithm, ratio);
nxpvt.imshow(laneImageAlgorithm);
pastedImage_2.png
ラベル(1)
0 返答(返信)