Characterising the mechanical properties of flowing microcapsules is important from both fundamental and applied points of view. In the present study, we develop a novel multilayer perceptron (MLP)-based machine learning (ML) approach, for real-time simultaneous predictions of the membrane mechanical law type, shear and area-dilatation moduli of microcapsules, from their camera-recorded steady profiles in tube flow. By MLP, we mean a neural network where many perceptrons are organised into layers. A perceptron is a basic element that conducts input–output mapping operation. We test the performance of the present approach using both simulation and experimental data. We find that with a reasonably high prediction accuracy, our method can reach an unprecedented low prediction latency of less than 1 millisecond on a personal computer. That is the overall computational time, without using parallel computing, from a single experimental image to multiple capsule mechanical parameters. It is faster than a recently proposed convolutional neural network-based approach by two orders of magnitude, for it only deals with the one-dimensional capsule boundary instead of the entire two-dimensional capsule image. Our new approach may serve as the foundation of a promising tool for real-time mechanical characterisation and online active sorting of deformable microcapsules and biological cells in microfluidic devices.