journal article·2021-04-07Open access

Learning Local Descriptor for Comparing Renders with Real Images

Pamir Ghimire, Igor Jovančević, Jean-José Orteu

Applied Sciences· Volume 11· Issue 8

Abstract

We present a method to train a deep-network-based feature descriptor to calculate discriminative local descriptions from renders and corresponding real images with similar geometry. We are interested in using such descriptors for automatic industrial visual inspection whereby the inspection camera has been coarsely localized with respect to a relatively large mechanical assembly and presence of certain components needs to be checked compared to the reference computer-aided design model (CAD). We aim to perform the task by comparing the real inspection image with the render of textureless 3D CAD using the learned descriptors. The descriptor was trained to capture geometric features while staying invariant to image domain. Patch pairs for training the descriptor were extracted in a semisupervised manner from a small data set of 100 pairs of real images and corresponding renders that were manually finely registered starting from a relatively coarse localization of the inspection camera. Due to the small size of the training data set, the descriptor network was initialized with weights from classification training on ImageNet. A two-step training is proposed for addressing the problem of domain adaptation. The first, “bootstrapping”, is a classification training to obtain good initial weights for second training step, triplet-loss training, that provides weights for extracting the discriminative features comparable using l2 distance. The descriptor was tested for comparing renders and real images through two approaches: finding local correspondences between the images through nearest neighbor matching and transforming the images into Bag of Visual Words (BoVW) histograms. We observed that learning a robust cross-domain descriptor is feasible, even with a small data set, and such features might be of interest for CAD-based inspection of mechanical assemblies, and related applications such as tracking or finely registered augmented reality. To the best of our knowledge, this is the first work that reports learning local descriptors for comparing renders with real inspection images.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Industrial Vision Systems and Defect Detection · Advanced Image and Video Retrieval Techniques · Domain Adaptation and Few-Shot Learning

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

DIOTASOFT, 31670 Labège, France

Institut Clément Ader (ICA), Université de Toulouse, CNRS, IMT Mines Albi, INSA, UPS, ISAE, Campus Jarlard, 81013 Albi, France

References (36)

Show source-provided references
1. Rosten, E., and Drummond, T. (2006, January 7–13). Machine learning for high-speed corner detection. Proceedings of the European Conference on Computer Vision, Graz, Austria.10.1007/11744023_34 ↗
2. Cad-guided inspection of aeronautical mechanical parts using monocular vision
3. Automated exterior inspection of an aircraft with a pan-tilt-zoom camera mounted on a mobile robot10.1117/1.JEI.24.6.061110 ↗
4. Computer vision systems for industrial inspection and assembly10.1109/MC.1980.1653613 ↗
5. Schonberger, J.L., Hardmeier, H., Sattler, T., and Pollefeys, M. (2017, January 21–26). Comparative evaluation of hand-crafted and learned local features. Proceedings of the 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA.10.1109/CVPR.2017.736 ↗
6. Zagoruyko, S., and Komodakis, N. (2015, January 7–12). Learning to compare image patches via convolutional neural networks. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Boston, MA, USA.10.1109/CVPR.2015.7299064 ↗
7. Han, X., Leung, T., Jia, Y., Sukthankar, R., and Berg, A.C. (2015, January 7–12). Matchnet: Unifying feature and metric learning for patch-based matching. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Boston, MA, USA.
8. Discriminative learning of local image descriptors10.1109/TPAMI.2010.54 ↗
9. Imagenet large scale visual recognition challenge10.1007/s11263-015-0816-y ↗
10. Balntas, V., Riba, E., Ponsa, D., and Mikolajczyk, K. (2016, January 19–22). Learning local feature descriptors with triplets and shallow convolutional neural networks. Proceedings of the BMVC, York, UK.10.5244/C.30.119 ↗
11. Simo-Serra, E., Trulls, E., Ferraz, L., Kokkinos, I., Fua, P., and Moreno-Noguer, F. (2015, January 7–13). Discriminative learning of deep convolutional feature point descriptors. Proceedings of the IEEE International Conference on Computer Vision, Santiago, Chile.10.1109/ICCV.2015.22 ↗
12. Raia, H., Chopra, S., and LeCun, Y. (2006, January 17–22). Dimensionality reduction by learning an invariant mapping. Proceedings of the 2006 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR’06), New York, NY, USA.
13. Parkhi, O.M., Vedaldi, A., and Zisserman, A. (2015, January 7–10). Deep face recognition. Proceedings of the BMVC, Swansea, UK.10.5244/C.29.41 ↗
14. Peng, X., Sun, B., Ali, K., and Saenko, K. (2015, January 7–13). Learning deep object detectors from 3d models. Proceedings of the IEEE International Conference on Computer Vision, Santiago, Chile.10.1109/ICCV.2015.151 ↗
15. Hinterstoisser, S., Lepetit, V., Wohlhart, P., and Konolige, K. (2017). On pre-trained image features and synthetic images for deep learning. arXiv.
16. Ros, G., Sellart, L., Materzynska, J., Vazquez, D., and Lopez, A.M. (2016, January 27–30). The synthia dataset: A large collection of synthetic images for semantic segmentation of urban scenes. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA.10.1109/CVPR.2016.352 ↗
17. A kernel method for the two-sample-problem
18. Ganin, Y., and Lempitsky, V. (2014). Unsupervised domain adaptation by backpropagation. arXiv.
19. Rad, M., Oberweger, M., and Lepetit, V. (2018, January 18–23). Feature mapping for learning fast and accurate 3D pose inference from synthetic images. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA.10.1109/CVPR.2018.00490 ↗
20. Gupta, S., Hoffman, J., and Malik, J. (2016, January 27–30). Cross modal distillation for supervision transfer. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA.10.1109/CVPR.2016.309 ↗
21. Massa, F., Russell, B., and Aubry, M. (2016, January 27–30). Deep exemplar 2D–3D detection by adapting from real to rendered views. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA.10.1109/CVPR.2016.648 ↗
22. Hinterstoisser, S., Lepetit, V., Ilic, S., Holzer, S., Bradski, G., Konolige, K., and Navab, N. (2012, January 5–9). Model based training, detection and pose estimation of texture-less 3D objects in heavily cluttered scenes. Proceedings of the Asian Conference on Computer Vision, Daejeon, Korea.10.1007/978-3-642-33885-4_60 ↗
23. Lim, J.J., Pirsiavash, H., and Torralba, A. (2013, January 1–8). Parsing IKEA objects: Fine pose estimation. Proceedings of the IEEE International Conference on Computer Vision, Sydney, Australia.10.1109/ICCV.2013.372 ↗
24. Sun, X., Wu, J., Zhang, X., Zhang, Z., Zhang, C., Xue, T., Tenenbaum, J.B., and Freeman, W.T. (2018, January 18–22). Pix3D: Dataset and methods for single-image 3D shape modeling. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA.10.1109/CVPR.2018.00314 ↗
25. Hodan, T., Haluza, P., Obdržálek, Š., Matas, J., Lourakis, M., and Zabulis, X. (2017, January 24–31). T-LESS: An RGB-D dataset for 6D pose estimation of texture-less objects. Proceedings of the 2017 IEEE Winter Conference on Applications of Computer Vision (WACV), Santa Rosa, CA, USA.10.1109/WACV.2017.103 ↗
26. Unity Technologies (2018, February 01). Unity Development Platform. Available online: http://unity3d.com.
27. Simonyan, K., and Zisserman, A. (2014). Very deep convolutional networks for large-scale image recognition. arXiv.
28. Wang, L., Xiong, Y., Wang, Z., and Qiao, Y. (2015). Towards good practices for very deep two-stream convnets. arXiv.
29. Schroff, F., Kalenichenko, D., and Philbin, J. (2015, January 7–12). Facenet: A unified embedding for face recognition and clustering. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Boston, MA, USA.10.1109/CVPR.2015.7298682 ↗
30. Buda, M., Maki, A., and Mazurowski, M.A. (2017). A systematic study of the class imbalance problem in convolutional neural networks. arXiv.10.1016/j.neunet.2018.07.011 ↗
31. Visualizing data using t-SNE
32. Mokhtari, N.I. (2018). Application of State of the Art Machine Learning to Various Industrial Visual Inspection Problems. [Master’s Thesis in Computer Vision, Université de Bourgogne].
33. Illumination for computer generated pictures10.1145/360825.360839 ↗
34. Imani, M., Ghoreishi, S.F., Allaire, D., and Braga-Neto, U.M. (February, January 27). MFBO-SSM: Multi-fidelity Bayesian optimization for fast inference in state-space models. Proceedings of the AAAI Conference on Artificial Intelligence, Honolulu, HI, USA.
35. Mahdi, I., Ghoreishi, S.F., and Braga-Neto, U. (2018, January 3–8). Bayesian Control of Large MDPs with Unknown Dynamics in Data-Poor Environments. Proceedings of the NeurIPS, Montreal, QC, Canada.
36. Yi, K.M., Trulls, E., Lepetit, V., and Fua, P. (2006, January 7–13). Lift: Learned invariant feature transform. Proceedings of the European Conference on Computer Vision, Graz, Austria.