Django and OpenCV

52 views
Skip to first unread message

odinukw...@gmail.com

unread,
Dec 15, 2018, 9:25:30 PM12/15/18
to Django users
Can I wrap opencv app inside the Djanngo framework, to build an object detection app. If yes please tell me how

PASCUAL Eric

unread,
Dec 19, 2018, 3:59:06 AM12/19/18
to Django users

Hi,


What do you mean exactly by "opencv app" ?

If you are referring to some kind of interactive app popping up windows to display results of processing, or using the associated event loop, there are great chances you cannot for obvious reasons (number one being that there is no graphical desktop environment on servers).

But if you mean "use image processing algos from the OpenCV lib", then the answer is "it depends". If the involved OpenCV features do not depend on stuff provided by, or depending on, the desktop environment and which cannot be installed out of this context, there are chances you'll be able to. For instance, a lot of people have developed OpenCV based apps for targets such as a RaspberryPi running with the headless (aka "server") version of Raspbian (the Debian RaspberryPi flavor)

Try googling with "opencv headless" or "opencv server" and you'll get a good deal of information. A guy has posted an article titled "Turn your OpenCV Code into a Web API in under 10 minutes" (https://www.learnopencv.com/turn-your-opencv-code-into-a-web-api-in-under-10-minutes-part-1/). It should provide you interesting stuff too (I didn't watch at it at it is 3 years old now, so I can't say if it is really valuable or not nowadays).
Let’s lay down the goals of this tutorial first. We will create a Web API that allows a user to call your OpenCV code. We will build a simple example in under 10 minutes.

HTH

Regards

Eric


From: django...@googlegroups.com <django...@googlegroups.com> on behalf of odinukw...@gmail.com <odinukw...@gmail.com>
Sent: Sunday, December 16, 2018 3:09:06 AM
To: Django users
Subject: Django and OpenCV
 
Can I wrap opencv app inside the Djanngo framework, to build an object detection app. If yes please tell me how

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/dbdeadbf-e18b-4028-b6ad-72b01579139b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages