This work presents a new methodology based on video processing for recording and counting vehicles in intersections and urban roads, allowing the control and management of urban traffic and support to inspection of public road security in large cities. The aim of this work is to show the viability of computer vision techniques for the construction of a portable equipment able to perform urban vehicles flow counting and classification into routes in an automatic way and in real time. Image processing techniques, such as background subtraction, definition and tracking of object features are used in the prototype development and implementation. The obtained results show the viability of use of the proposed portable monitoring system in real-time, achieving correct rates in the vehicle counting of about 96% for simple roads and 72% at complex intersections.