开发者

Extracting image pixel values in google appengine

开发者 https://www.devze.com 2023-01-23 12:40 出处:网络
I am working on google appengine to create a 开发者_Go百科tool for comparing image similarity. I need to extract the pixel values of each image to perform this.

I am working on google appengine to create a 开发者_Go百科tool for comparing image similarity. I need to extract the pixel values of each image to perform this. Unfortunately appengine does not support the java image libs.So I am unable to proceed.

Is there any appengine safe image library in java capable of extracting image data? I saw some techniques in python but dont want to switch to python if I can do it in java somehow...


GAEJ has its own graphic library with fairly limited features and java.awt.image.BufferedImage is a restricted class (ie, java.awt.Image is not supported and still not present in the Jre Class White List ).

There's an open issue here, that you might want to star.

EDIT:
Somebody has patched pngj to work with InputStream.(You could use it to read a PNG pixel by pixel)


The new version of pngj now an alternative pngj-sandbox.jar that only references whitelisted classes, it should run in google-app-engine.


can https://github.com/witwall/appengine-awt help to you? i believe it willbe enough to add theis lib as dependency to the project to make BufferedImage working (but havent' tried this yet)

0

精彩评论

暂无评论...
验证码 换一张
取 消