may be my question already answered, but unfortunately I didn’t find is on the forum.
I’m using “Running the Live Camera Segmentation Demo” on Jetson Nano from here (dusty-nv):
The program is working & great.
I would like to take to the next level and use for simple navigation.
As a logical step I would like to take out one particular horizontal line (for example: y=50, x=0…100) from the mask image and use for navigation purpose.
I’m usign Python with “DeepScene” dataset:
./segnet.py --network=fcn-resnet18-deepscene /dev/video0
I assume I have to modify in this code and take out the pixel information:
After generating the mask in row# 83-85:
if buffers.mask: net.Mask(buffers.mask, filter_mode=opt.filter_mode)
The segmented picture stored here: buffers.mask
How can I access the pixels & colors ? Especially the brown color for the ‘trail’:
or just get the class IDs (for example number ‘0’ for the ‘trail’) in a particular horizontal line ?
(Just for into, the planned navigation process: If in a particular line on the left side are more brown pixel than on the right, then I can instruct the robot to turn left.)
I hope I was clear. If not, please get in touch.
Thank You very much for Your help in advance.
Have a nice day ahead :-)