So I've recently became very interested in machine learning, and have been using tensorflow
(python) in some of my projects at work.
However, I've now found a use for digit classification in one of my web projects which is all written in PHP for server-side code. Ideally, I'd like to be able to upload a picture via a Javascript interface, and on the PHP receiving end process the picture, slide a window to find the set of digits I'm looking for, and then process this through my trained neural network. I guess I'll summarise in one question: is this possible? Thank you!
Tensorflow provides serving project for communication, so you need to implement gRPC client for PHP, then use it to talk to Tensorflow serving environment.
That's how I work with Ruby and Tensorflow, it should be working for you as well!
You can try one of these PHP extensions:
https://github.com/absalomedia/tensile
https://github.com/wan2land/php-tensorflow
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With