Comments (6)
Hum... Nobody ?
I also notice that sample given with the library crash for the same reason.
Launch it (portrait mode is ok), change the phone's orientation and... Force close with "java.lang.IllegalArgumentException: Crop rectangle does not fit within image data."
from zxingfragmentlib.
Hi!
It's working now, but the preview rectangle is a little bit off. I'm working on that, but it scans :)
from zxingfragmentlib.
up stair id correct , perfect .i resolve my trubel
from zxingfragmentlib.
in PlanarYUVLuminanceSource 49 line
if (left + width > dataWidth || top + height > dataHeight) { throw new IllegalArgumentException("Crop rectangle does not fit within image data."); }
i change rect calculate
int cameraWidth = cameraManager.getCameraResolution().y; int cameraHeight = cameraManager.getCameraResolution().x;
to
int cameraWidth = isVertical?cameraManager.getCameraResolution().y:cameraManager.getCameraResolution().x; int cameraHeight = isVertical?cameraManager.getCameraResolution().x:cameraManager.getCameraResolution().y;
it worked. :)
from zxingfragmentlib.
Upstairs, your "int cameraWidth = cameraManager.getCameraResolution().y; int cameraHeight = cameraManager.getCameraResolution().x;" in which file, is customized or Zxing comes with๏ผ
from zxingfragmentlib.
I had similar issue. Using zxing-android-embedded (https://github.com/journeyapps/zxing-android-embedded).
Zxing greater version 3.3.0 bring this issue to some users of my app.
Downgrading to 3.3.0 fix it.
dependencies {
implementation('com.journeyapps:zxing-android-embedded:3.6.0')
{ transitive = false }
implementation 'com.google.zxing:core:3.3.0'
}
This version is even compatible down to API level 14.
from zxingfragmentlib.
Related Issues (20)
- Lint error in CameraConfigurationManager HOT 2
- BarcodeScannerFragment Skipped 63 Frames! when swiping between 3 fragments HOT 3
- change frame size HOT 2
- Exception switching to landscape orientation HOT 1
- Add license HOT 1
- Adjust viewfinder size in relation to the fragment
- Scanning 1D codes in portrait is not working HOT 2
- Update gradle and Android sdk HOT 1
- Autofocus stops working when flashlight turns on HOT 1
- AmbientLightManager HOT 3
- Application goes blank for couple of seconds then resumes to normal when the camera is initiated HOT 3
- advanced history handling HOT 1
- Scanning only in landscape HOT 3
- How Add Library to Android Studio as a dependency? explain with details please
- this lib work well but there is some problem
- Display Image distorted
- How to use front camera?
- Failed to resolve com.google.zxin.core:3.1.0
- Blurred screen while scanning
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 zxingfragmentlib.