tssa8 / camerawithgooglevisionapi Goto Github PK
View Code? Open in Web Editor NEWGoogle Vision with camera2 api
Google Vision with camera2 api
Real time face detection is working slower with Camera2 than Camera1. Did you improve the performance of your code?
I test this on samsung and motorola. It's working fine but not working on oppo and vivo. Can you please help or tell me what may be the issue so I can work on that.
java.lang.IllegalArgumentException: Invalid image data size.
at com.google.android.gms.vision.Frame$Builder.setImageData(com.google.android.gms:play-services-vision-common@@19.1.3:25)
at com.example.barcodestudy.others.Camera2Source$FrameProcessingRunnable.run(Camera2Source.java:1357)
at java.lang.Thread.run(Thread.java:764)
Issue from code block:
outputFrame = new Frame.Builder()
.setImageData(
ByteBuffer.wrap(mPendingFrameData)
, stream1Size.getWidth()
, stream1Size.getHeight()
, ImageFormat.NV21)
.setId(mPendingFrameId)
.setTimestampMillis(mPendingTimeMillis)
.setRotation(getDetectorOrientation(mSensorOrientation))
.build();
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.