app package

app module

timbr wood classification flask app

app.index()[source]

flask index.html endpoint

app.predict(fullpath=None)[source]

predicts the material type of provided image

Parameters:fullpath (str) – fullpath of image file
Returns:dict of results
Return type:dict
app.save_histogram(source, destination, colorspace='rgb')[source]

saves rgb or hsv hostograms of source image to destination

Parameters:
  • source (str) – fullpath of source image
  • destination (str) – fullpath of destination image
  • opt (colorspace) – colorspace of histogram acceptable values: ‘rgb’, ‘hsv’ default: ‘rgb’
Returns:

None

Return type:

None