However, I am going to start by assuming that you have OpenCV setup and installed. The goal here is that if you were to run the commands presented at each of the steps below, along with copy-and-paste the code snippets into the appropriate Django project files, that your face detection API would be up and running on your local system within 5 minutes. Creating a face detection API with Python and OpenCV (in just 5 minutes)Īfter getting a ton of awesome reader feedback on the step-by-step tutorial on installing OpenCV on your Raspberry Pi 2/B+, I decided to take the same approach to this tutorial - I’ve created 8 simple, bite size steps to get your own face detection API up and running. In order to run this example, you’ll need Python 2.7 and OpenCV 2.4.X. Looking for the source code to this post? Jump Right To The Downloads Section And of course, feel free to port this implementation into whichever framework best fits your own personal needs and preferences.Īnyway, in the rest of this tutorial I’ll be demonstrating how to create your own face detection API in only 5 minutes!Īnd as a bonus at the end of this article, I’ll give you a sneak peak of what’s on deck for next week - the unveiling of the (free) PyImageSearch web API. And while it’s a bit of overkill for a small example project like this (especially when compared to a micro-framework such as Flask), I still think it’s an excellent choice. I’ve done a ton of work with Django in the past and loved every minute of it. With more and more services heading to the cloud, your users, customers, and fellow developers are likely expecting an easy to consume web API (and probably in JSON format).Ĭreating a computer vision web API is actually not as hard as you think - I’ll go as far as to say it’s unbelievably easy to wrap your application in a consumable API using a Python web framework such as Django or Flask. So the big question is… how do you wrap your computer vision app in an easy to use web API? Or maybe your computer vision app can identify the covers of top selling books, all while displaying the latest reader reviews and the cheapest websites online to purchase them. Or maybe your app can recognize prescription pills in photos. So you’ve just built your first awesome computer vision app. Click here to download the source code to this post
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |