-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stylizeImage 这个方法只能接收一个正方形的图片吗?我换了长方形的Bitmap,就会崩溃。 #5
Comments
java.nio.BufferOverflowException |
我在tensoflow的项目下,找到的实现方式也是正方形。请问一下,您这边又没有测试过这个问题。 |
感谢! |
在使用bitmap之前调用了createScaledBitmap,这个函数里我写死了数组格式,所以是默认正方形的。 |
经测试 把接收结果的数组 人为扩大两倍,就可以避免崩溃的问题。但是处理后的图片效果很差。猜测应该是原模型文件做了限制。同样使用TensorflowInterface的API,运行其他模型文件,可以正常处理其他尺寸图片。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: