|
|
|
|
|
|
|
|
FrameData data = processing.calculateLineSegments(processedImage, roi); |
|
|
FrameData data = processing.calculateLineSegments(processedImage, roi); |
|
|
processing.filterReflections(data); |
|
|
processing.filterReflections(data); |
|
|
processing.calcAngles(data, originalImage.cols, originalImage.rows, left); |
|
|
processing.calcAngles(data, originalImage.cols, originalImage.rows, left); |
|
|
|
|
|
|
|
|
|
|
|
controlModule.calcSpeeds(1,1, data.angle); |
|
|
|
|
|
|
|
|
processedImage = provideOutput(originalImage, processedImage, data, roi); |
|
|
processedImage = provideOutput(originalImage, processedImage, data, roi); |
|
|
|
|
|
|
|
|
result.rawImage = originalImage; |
|
|
result.rawImage = originalImage; |
|
|
result.processedImage = processedImage; |
|
|
result.processedImage = processedImage; |
|
|
result.data = data; |
|
|
result.data = data; |
|
|
|
|
|
result.motorSignals = controlModule.readMotors(); |
|
|
} |
|
|
} |
|
|
catch(std::exception const &ex) |
|
|
catch(std::exception const &ex) |
|
|
{ |
|
|
{ |