def fetch_image(i=0):
#reading in an image from test
images = ['test_images/solidWhiteCurve.jpg',
'test_images/solidWhiteRight.jpg',
'test_images/solidYellowCurve.jpg',
'test_images/solidYellowCurve2.jpg',
'test_images/solidYellowLeft.jpg',
'test_images/whiteCarLaneSwitch.jpg',
'test_images/challenge/test-14.jpg']
if(i > 6):
i = 6
if(i<0):
i=0
image = mpimg.imread(images[i])
return image
# In[120]:
project3.py 文件源码
python
阅读 26
收藏 0
点赞 0
评论 0
评论列表
文章目录