Android alternative to java.awt (BufferedImage and Raster)

后端 未结 2 2181
無奈伤痛
無奈伤痛 2021-02-09 14:55

for my final year project I am developing an android app that can capture the image of a leaf and identify what type of tree it came from. I have a nearly completed PC version

2条回答
  •  长发绾君心
    2021-02-09 15:34

    You can convert a BufferedImage to a PNG or JPEG, then send it via HTTP to Android which can then convert the PNG or JPEG back to a Bitmap and use it. When Android needs to send any image, send it as PNG or JPEG via network, and then convert the PNG to BufferedImage and use it in your program.

提交回复
热议问题