- ported the HybridBinarizer from Java for improved 2D binarization
- updated BinaryBitmap to report if it supports cropping and rotation
- test binary updates to compare both binarizers like it used to
git-svn-id: https://zxing.googlecode.com/svn/trunk@1489 59b500cc-1b3d-0410-9834-0bbf25fbcc57
It takes a block of greyscale data, width, height, and cropping parameters, and provides a LuminanceSource interface, with rotation (although only 1D is supported for the rotated object at the moment.)
git-svn-id: https://zxing.googlecode.com/svn/trunk@1488 59b500cc-1b3d-0410-9834-0bbf25fbcc57
Make sure the ssid we are connected to is not null. This happens when
a network has been updated/removed while we are still connected to it.
Make errorCount an instance variable.
git-svn-id: https://zxing.googlecode.com/svn/trunk@1474 59b500cc-1b3d-0410-9834-0bbf25fbcc57
- BitArray.reverse() was inverting, not reversing, bits.
- OneDReader wasn't reversing x coordinates of the result points.
- OneDReader wasn't catching Binarizer exceptions properly.
Issue 470 can be closed by this.
git-svn-id: https://zxing.googlecode.com/svn/trunk@1472 59b500cc-1b3d-0410-9834-0bbf25fbcc57
connection fails, an alert message is displayed, and connection
attempts cease. Retrying with a correct barcode works. Not perfect
yet, but in my testing I have found this version much better than the
previous setup: at least errors are detected and the user is informed.
git-svn-id: https://zxing.googlecode.com/svn/trunk@1470 59b500cc-1b3d-0410-9834-0bbf25fbcc57
variables into finals. Change the UI to display network name and type
more clearly.
git-svn-id: https://zxing.googlecode.com/svn/trunk@1469 59b500cc-1b3d-0410-9834-0bbf25fbcc57
When a 64 bit hex password is entered, wpa_supplicant fails with the
error:
"wpa_supplicant (pid) Line 0: Invalid passphrase length 64 (expected:
8..63)"
The fix is to not quote 64 char long hexadecimal passwords. Tested
dd-wrt on a 64 char hex password.
git-svn-id: https://zxing.googlecode.com/svn/trunk@1468 59b500cc-1b3d-0410-9834-0bbf25fbcc57
- Fixed two crashes on low DPI devices because of missing/stale views in layout-ldpi/capture.xml.
- Added support for apps on SD card on Froyo.
- Updated SDK to 8.
- Tweaked some font sizes.
- Updated the What's New page.
git-svn-id: https://zxing.googlecode.com/svn/trunk@1464 59b500cc-1b3d-0410-9834-0bbf25fbcc57
literals.
2. Using a very handy script for this purpose, and checking it
into utils/ since it saved me some headache.
3. Turned tabs -> spaces for WifiResultHandler.
4. Better error handling on network types: look for exact matches
rather than substrings.
git-svn-id: https://zxing.googlecode.com/svn/trunk@1456 59b500cc-1b3d-0410-9834-0bbf25fbcc57
2. More error checking:
a. Missing SSID
b. Incorrect network type (hey, it's just a string, and the user could get creative)
TODOs:
1. Localize the strings this is introducing.
2. Errors not handled:
a. Tell if network not found.
b. Incorrect SSID codes still crash the app: WIFI:S:winders;T:WPA;P:secret;badjunk;;
c. For an open network, giving a password crashes: WIFI:S:winders;T:nopass;P:secret;;
3. When connected, it should say, "Connected to <ssid>".
git-svn-id: https://zxing.googlecode.com/svn/trunk@1455 59b500cc-1b3d-0410-9834-0bbf25fbcc57
- Fixed a potential ANR - we can never sleep on the main thread.
- Bumped the version number.
- Minor cleanup and 100 columns fixes.
git-svn-id: https://zxing.googlecode.com/svn/trunk@1447 59b500cc-1b3d-0410-9834-0bbf25fbcc57
Still to be done:
1. Rename 'nopass' to something cleaner, so it looks crisp in Android's Barcode Scanner UI.
git-svn-id: https://zxing.googlecode.com/svn/trunk@1441 59b500cc-1b3d-0410-9834-0bbf25fbcc57
TODO:
1. Document the encoding.
2. Test out the interaction with appspot.com with escaped semicolons and colons
git-svn-id: https://zxing.googlecode.com/svn/trunk@1440 59b500cc-1b3d-0410-9834-0bbf25fbcc57
TODO:
1. Semicolons need to be escaped
2. In the android code, need much better error checking. Incorrect barcodes crash Barcode Scanner!
3. Add network type NOPASS to the android code. This is ready, and will be a separate checkin.
git-svn-id: https://zxing.googlecode.com/svn/trunk@1439 59b500cc-1b3d-0410-9834-0bbf25fbcc57