Comments (2)
@owahltinez How is the fit of the camera image into the preview view determined? Fit the image (centered) into the view and crop anything sticking out (i.e. https://developer.android.com/reference/android/graphics/Matrix.ScaleToFit#CENTER)?
from mlkit.
It is center-cropped (like you described). Currently you have to translate the coordinates yourself after accounting for the cropping, but this is something the team is actively working on and soon it will be much easier for developers to achieve WYSIWYG behavior. We might also see the ability to do letter-boxing (black bars instead of center-cropping) coming to PreviewView but I don't think that's very high priority right now.
from mlkit.
Related Issues (20)
- Model runtime takes longer than expected HOT 4
- Cant update firebase latest version HOT 7
- [Bug report] Failed to initialize detector when use object-detection:17.0.0 HOT 2
- [Bug report] Demo app barcode AutoZoom not working for CameraXLivePreview in Kotlin
- Subject segmentation with ML Kit for Android HOT 4
- [Bug report] cannot scan with phone facing an angle of 30-45 degrees (iOS) HOT 3
- [Bug report] Relatively poor performance for Code 128-B
- [Bug report] MLKIT Face Detection Model failed to download on Android 14 HOT 9
- [Bug report] crash with image-labeling,device android 9,x86_4 HOT 3
- [Feature request] Recommended hardware and USB Camera HOT 1
- [Feature request] The state of MLKit DigitalInkRecognition
- [Bug report] InputImage.getBitmapInternal() returns null HOT 1
- [Feature request] MLKit and Apple’s new Privacy Manifests HOT 2
- Issues in frame processing using MLKit
- [Feature request] Disable logging for DigitalInkRecognition on iOS HOT 4
- MLKit running on GPU? HOT 7
- Request for Swift Package Manager support HOT 1
- Upcoming third-party SDK requirements in iOS:Support App Privacy Manifest HOT 1
- [Feature request] Request for adding face mesh textures
- [Bug report] Progress only updates when the download is complete
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mlkit.