integrate facial recognition (model trained in python) in advance java projects - python

I want to develop a WEb-based voting system in java. The system has facial recognition and OTP verification. I have a a facial recognition code in python and the model is 85% accurate. How can I implement facial recognition in my web based voting system?

You can call the python function in your Java code via ProcessBuilder, but it's not recommended unless you are confident in the robust of your python code and you are sure it's easy to maintain in this way.
My advice is to build a python backend service (using Flask, for example, it's a light-weighted framework for python web services) and call your python service via HTTP request in your Java code. By doing this, the two programs are decoupled and might be reused conveniently.

Related

Appropriate Framework or Library in python for agent based or actor model algorithm service

Which Framework or Library in python suitable for agent based or actor model algorithm service?
I've worked on develop new algorithmic trading platform which tend to active 24/7 for multiple crypto markets. I use django as a platform's framework but I don't know which framework or library are suitable for design agent-based or actor-based services.
I used to django framework as a my framework to develop my algorithmic trading platform. But for scale up project I faced some problems to choose right framework

How do I run a set of Python NLP algorithms and export the results to an Angular application?

I have the following at hand to work with:
a front-end Angular mobile-optimised application that displays the sentiments of a set of comments on a user-specified YouTube video, with the sentiments being calculated from various sentiment analysis packages.
a publicly available set of Python sentiment analysis tools (available here) which will be used to process the sentiments.
My question is since the app uses Angular (TypeScript) and the sentiment analysis packages use Python, what is the best way that I can build a connection from the user input (YouTube URL) to the Python packages? Should I use Django, Flask or another backend library, or will that not be required? The Angular application is already fully functional with JavaScript-based sentiment analysis tools; now I have to integrate the Python-based tools into it.

how to build an deep learning image processing server

I am building am application to process user's photo on server. Basically, user upload a photo to the server and do some filtering processing using deep learning model. Once it's done filter, user can download the new photo. The filter program is based on the deep learning algorithm, using torch framework, it runs on python/lua. I currently run this filter code on my local ubuntu machine. Just wonder how to turn this into a web service. I have 0 server side knowledge, I did some research, maybe I should use flask or tornado, or other architecture?
I'd recommend using Django if you are comfortable with python and working with an AWS serviced database! It is pretty intuitive, and a lot of resources and examples are available on the web. For example, here is the file upload documentation.
It does make sense to look at the whole task and how it fits to your actual server, Nginx or Lighttpd or Apache since you are serving static content. If you are going to call a library to create the static content, the integration of your library to your web framework would be simpler if you use Flask but it might be a fit for AWS S3 and Lambda services.
It may be worth it to roughly design the whole site and match your content to the tools at hand.

How to Build a Browser Interface for a Numpy/Opencv Based Python Application

I have an application written in Python using numpy and OpenCV. Currently I am using OpenCV's GUI functionality; however, I'm finding it has various issues and behaves differently across platforms. I would like to build a browser interface. The application includes a live video feed and its state is updated about once every 1/15th of a second-- I would need the browser display to update at this rate. What is a good tool to accomplish this? I have built small apps in EmberJS but I think that getting it to communicate with Python is too much overhead.
You probably want to connect your app to a Python web framework like Flask so that you can make a restful interface. You could then build a frontend app in Angular or Backbone that queries the server for every update.

Can i use apache mahout with django application

I am building the web application in python/django.
I need to apply some machine learning algorithms on some data. I know there are libraries available for python. But someone in my company was saying that Mahout is very good toll for that.
i want to know that can i use it with python/django. or i should do that with python libraries only
I think you could build an independent application with mahout, and you python application is just a client.

Categories