Feature extraction is important step to extract the useful and valuable information from the electromyography (EMG) signal. However, the process of feature extraction requires prior knowledge and expertise. In this paper, a featureless EMG pattern recognition technique is proposed to tackle the feature extraction problem. Initially, spectrogram is employed to transform the raw EMG signal into time-frequency representation (TFR). The TFRs or spectrogram images are then directly fed into the convolutional neural network (CNN) for classification. Two CNN models are proposed to learn the features automatically from the spectrogram images without the need of manual feature extraction. The proposed CNN models are evaluated using the EMG data acquired from the publicly access NinaPro database. Our results show that CNN classifier can offer the best mean classification accuracy of 88.04% for the recognition of the hand and wrist movements.