I am working on google appengine to create a 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.
我正在研究谷歌appengine创建一个比较图像相似性的工具。我需要提取每个图像的像素值来执行此操作。不幸的是,appengine不支持java image libs.So我无法继续。
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...
java中是否有能够提取图像数据的appengine安全图像库?我在python中看到了一些技术,但是如果我能在java中以某种方式完成它,就不想切换到python ...
3 个解决方案
#1
2
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 ).
GAEJ有自己的图形库,功能相当有限,java.awt.image.BufferedImage是一个受限制的类(即java.awt.Image不受支持,仍然不存在于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)
编辑:有人修补了pngj与InputStream一起工作。(你可以用它来逐像素地读取PNG)
#2
1
The new version of pngj now an alternative pngj-sandbox.jar that only references whitelisted classes, it should run in google-app-engine.
pngj的新版本现在是另一个pngj-sandbox.jar,它只引用列入白名单的类,它应该在google-app-engine中运行。
#3
0
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)
可以https://github.com/witwall/appengine-awt帮助你吗?我相信将libs作为依赖项添加到项目中可以使BufferedImage正常工作(但尚未尝试过)
#1
2
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 ).
GAEJ有自己的图形库,功能相当有限,java.awt.image.BufferedImage是一个受限制的类(即java.awt.Image不受支持,仍然不存在于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)
编辑:有人修补了pngj与InputStream一起工作。(你可以用它来逐像素地读取PNG)
#2
1
The new version of pngj now an alternative pngj-sandbox.jar that only references whitelisted classes, it should run in google-app-engine.
pngj的新版本现在是另一个pngj-sandbox.jar,它只引用列入白名单的类,它应该在google-app-engine中运行。
#3
0
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)
可以https://github.com/witwall/appengine-awt帮助你吗?我相信将libs作为依赖项添加到项目中可以使BufferedImage正常工作(但尚未尝试过)