On Thu, Mar 3, 2016 at 6:25 AM, Neha Chhattani <neha.chhattan...@gmail.com>
wrote:

> hello
> i want to create a website that will do image processing in real time. i
> want to load large tiff images i.e. images used in remote sensing and
> satellite images. I want to do processing on satellite images. is it
> possible to do this processing in website using django? If yes, how to
> start with? what are the requirements for this?
>

Not sure what you are intending with 'real-time'. Django can easily handle
the front-end operations for collecting the images, etc., but I doubt you
would use it directly for the image manipulation. That would be better
suited for a set of purpose-built libraries and a background batch
processor such as Celery. A user would submit a set of images to Django,
who would store them and pass the job information off to Celery for
processing. Once the job is finished, Django can manage the other tasks
associated with the processed images.

https://realpython.com/blog/python/asynchronous-tasks-with-django-and-celery/
http://docs.celeryproject.org/en/latest/django/first-steps-with-django.html

You may not need a background processor if the image manipulation can be
done quickly within Django (sub-second), but if it takes any longer than
that, you'll likely need to implement something like Celery, otherwise your
site will crumble if you have any sort of substantial traffic to your site.
If Django is directly responsible for manipulating the images, the
threads/processes used by Django will be held in use and will not be
available for processing other incoming requests. Celery will keep the jobs
in a queue and is not dependent on the request/response cycle and end-user
expectations for responsiveness. ;-)

-James

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/CA%2Be%2BciXpYhFJoomEeAu97kh9o5jxgOvHp6-TH-J0Z-u7YzrKFw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to