This article analyzes different architectures with which a neural network can be developed using computer vision with the objective of detecting traffic accidents. For the development of the software, the Java Script programming language was used, reaching the conclusion that the best architecture to use is a Convolutional Neural Network since it has the capabilities of detecting features within the images. At the same time, a database was developed with the necessary characteristics for the functioning of the neural network.