Text this: An Adaptive Extraction Method for Knitted Patterns Based on Bayesian-Optimized Bilateral Filtering.