Skip to content
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

Crop screen fixes #103

Draft
wants to merge 129 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
129 commits
Select commit Hold shift + click to select a range
b013347
Remove flutter_scanner_cropper to replace with android native channels
veejayts Jun 25, 2021
9f101ae
Refactor gradle files and introduce java
veejayts Jun 25, 2021
dc8b324
Add opencv 3.4.13
veejayts Jun 25, 2021
25a3900
Fix opencv sdk versions in build.gradle
veejayts Jun 25, 2021
4ba0fa1
upgrade gradle version
veejayts Jun 25, 2021
50d9110
custom crop screen
Jun 26, 2021
26fbf8c
Fix recrop bug and refactor
veejayts Jun 26, 2021
e9365ea
Navigation to View refactored
Jul 5, 2021
26ee0dc
Merge branch 'dev_v3' of https://github.com/Ethereal-Developers-Inc/O…
Jul 5, 2021
044a71c
Crop fixed
veejayts Jul 9, 2021
b63911e
Upgrade image_picker, android manifest for api 30
veejayts Jul 19, 2021
6e1e5a0
Refactored view
Aug 11, 2021
5cd91c2
Merge branch 'dev_v3' of https://github.com/Ethereal-Developers-Inc/O…
Aug 13, 2021
f58e051
- code refactored
Aug 17, 2021
658c2b4
- code refactored
Aug 17, 2021
42c2b87
- code refactored
Aug 17, 2021
869118d
testing view setstate bug
Aug 18, 2021
54e1420
Delete Classes.dart
vikram0230 Aug 18, 2021
0759760
Merge branch 'bloc_tester' of https://github.com/Ethereal-Developers-…
Aug 18, 2021
ee48fc2
added models
Aug 18, 2021
2a23c33
refactored utils
Aug 18, 2021
1954dcd
updated imagePicker
Aug 18, 2021
3739a62
- cropper
Aug 22, 2021
5858aa7
image crop optimized
Aug 22, 2021
80b4658
delete Image
Aug 23, 2021
d5beaef
delete image
Aug 23, 2021
b52ab81
scan options enabled
Aug 25, 2021
7dfbcd0
boiler plate code ready
Sep 16, 2021
bdb1646
BLoC worked!!!
Sep 16, 2021
43e8c8b
added image cubit
Sep 21, 2021
e2eda1d
removed image cubit
Sep 26, 2021
0295ade
altered theme
Sep 26, 2021
fb2b02b
icons rounded
Sep 27, 2021
7ecdb15
removed comments
Sep 29, 2021
e808c20
Merge pull request #69 from Ethereal-Developers-Inc/bloc_tester
vikram0230 Sep 29, 2021
3176d94
Merge branch 'dev_v3' of https://github.com/Ethereal-Developers-Inc/O…
Sep 29, 2021
a36c105
updated appbar
Sep 29, 2021
a304527
image selection
Sep 30, 2021
bfdddc4
reorder, image index
Oct 2, 2021
5ee238c
migrate to null-safety
Oct 4, 2021
7247df0
generalised rename, delete dialog
Oct 8, 2021
018afbe
fixed bottomsheet
Oct 21, 2021
a55809b
got the points !!!
Oct 24, 2021
5331299
Change license to AGPL
veejayts Oct 27, 2021
759d787
added in-app camera
Oct 28, 2021
ff59de7
added gyroscope
Oct 31, 2021
bcbff94
fix andoird embedding bug
veejayts Feb 13, 2022
97ba697
package updates
Feb 13, 2022
e542547
Merge branch 'dev_v3' of https://github.com/Ethereal-Developers-Inc/O…
Feb 13, 2022
bc4cae1
view changed
Feb 13, 2022
666e358
upgrade for new version compatibility
veejayts Feb 13, 2022
e6e5ccd
Merge branch 'dev_v3' of https://github.com/Ethereal-Developers-Inc/O…
Feb 13, 2022
b4bc26f
gradle version changes
veejayts Feb 13, 2022
c78499f
Merge branch 'dev_v3' of https://github.com/Ethereal-Developers-Inc/O…
veejayts Feb 13, 2022
5cdab08
added translation config files
Mar 5, 2022
83846fa
added en localizations
Mar 6, 2022
9a09dfb
added en localizations
Mar 6, 2022
0963a58
Add Polish translation
PatrykMis Mar 31, 2022
35ad402
Merge pull request #80 from PatrykMis/polish-lng-v3
vikram0230 Apr 2, 2022
7dacd09
updated rename dialog
Apr 24, 2022
9eb2f5d
updated bottomsheet
Apr 24, 2022
0cc9594
refactor java image util methods
veejayts Apr 24, 2022
644c1e3
refactor for image size return type
veejayts Apr 24, 2022
0dcdc4d
added export bottomsheet
Apr 30, 2022
0515d54
Create app_el.arb
VasilisKos May 7, 2022
a324926
Merge pull request #82 from VasilisKos/patch-2
vikram0230 May 8, 2022
6a271ab
fixed url launcher
Jun 25, 2022
b4d2674
export bottomsheet updates
Jun 25, 2022
b33d7d6
image cropping update
veejayts Jun 25, 2022
4781277
plotting points
Jun 25, 2022
ef82ff9
plotting points from canny
Jun 25, 2022
f902ccd
remove if for opencv initdebug as it is already statically initialised
veejayts Jun 25, 2022
505321a
updated image viewer
Jul 2, 2022
af16e42
splash screen changes in xml
veejayts Jul 2, 2022
7d7fce7
image zoom animation =)
Jul 6, 2022
4183e81
updated packages, added description
vikram0230 Sep 25, 2022
aead47b
bug fix, description
vikram0230 Sep 25, 2022
cc20b95
updated cropper
vikram0230 Sep 25, 2022
c15dfe7
added filters
vikram0230 Oct 30, 2022
54314d6
Add Hungarian translation
meskobalazs Oct 31, 2022
a9ff22a
Merge remote-tracking branch 'origin/master' into dev_v3
vikram0230 Nov 6, 2022
176c5ba
removed scanlib
vikram0230 Nov 6, 2022
c34d67b
Merge pull request #87 from meskobalazs/dev_v3
vikram0230 Nov 6, 2022
bfa9119
Added Filter Cubit
vikram0230 Nov 6, 2022
202e4f0
opencv final fixes #86
vikram0230 Dec 4, 2022
bf5e433
designed android splash screen
vikram0230 Dec 18, 2022
b5bfa2c
fixed demo flow
vikram0230 Dec 18, 2022
eddfd05
update pdf packages and fix pdf export
veejayts Dec 28, 2022
9944067
change dependency open_file -> open_filex to remove playstore warning…
Jan 1, 2023
61b324a
implement compression feature
veejayts Jan 2, 2023
1106bc6
implement compression feature
veejayts Jan 2, 2023
097d25c
back button action in select mode exit select mode
veejayts Jan 8, 2023
4688db2
edge points rotation #70
vikram0230 Jan 8, 2023
c055979
Merge branch 'dev_v3' of https://github.com/ethereal-developers/OpenS…
veejayts Jan 8, 2023
431b383
image rotation animation #70
vikram0230 Jan 29, 2023
b8a9fd8
util method for cropimage
veejayts Feb 5, 2023
ae1954c
fix int parsing while calling android native compress method
veejayts Feb 5, 2023
eac7a7e
restructured crop module
vikram0230 Feb 5, 2023
2f35166
Merge branch 'dev_v3' of https://github.com/Ethereal-Developers-Inc/O…
vikram0230 Feb 5, 2023
0cf6d10
updated cropper algo
vikram0230 Feb 12, 2023
a791fa3
cropper UI updates
vikram0230 Feb 12, 2023
7891536
readme updates
vikram0230 Feb 19, 2023
1bc965a
readme
vikram0230 Feb 19, 2023
e27f7c6
readme
vikram0230 Feb 19, 2023
a0818ad
readme
vikram0230 Feb 19, 2023
ce0ba4d
rotate image util
veejayts Feb 19, 2023
37c012a
reduced filter time
vikram0230 Feb 26, 2023
9432885
fixed filter image flicker
vikram0230 Mar 5, 2023
0aea180
cropper bug fixes
vikram0230 Mar 7, 2023
c2a6fe6
crop backend fix
vikram0230 Mar 12, 2023
0aa8a7d
added magnifier #48 #25
vikram0230 Mar 19, 2023
6e9e7ea
selective delete bug fix
vikram0230 Apr 30, 2023
bc80d90
Merge branch 'master' of https://github.com/ethereal-developers/OpenS…
veejayts Mar 18, 2024
fd21f00
Fix static compiler issues
veejayts Mar 18, 2024
34af250
remove opencv files
veejayts Mar 18, 2024
6d1de9d
import opencv via build.gradle
veejayts Mar 18, 2024
5315724
init opencv once, ui color change in home screen and remove problemat…
veejayts Mar 18, 2024
a54e919
remove problematic print statement
veejayts Mar 19, 2024
eb6bc9f
remove problematic debugprint statement
veejayts Mar 19, 2024
b73df53
remove rotate from crop screen and clean up unrequired variables from…
veejayts Mar 20, 2024
02fade5
Add names to buttons and refactor the buttons to reflect the function…
veejayts Mar 20, 2024
fa2f8a6
Fix cropper not saving images and UI state update fixes
veejayts Mar 21, 2024
9da8db2
add toast for showing detection status and fix reset points and detct…
veejayts Mar 24, 2024
4dfce6e
remove toast for showing document detected and fix logic for cropping
veejayts Mar 24, 2024
6f4420d
Fix image render box caculation occuring after crop done is called
veejayts Mar 24, 2024
67073d4
Fix normal scan image paths
veejayts Mar 25, 2024
96ac99d
change text for reset to no crop and update icon for the same
veejayts Mar 25, 2024
ce9e261
Fix normal scan file saving and display points not detected only when…
veejayts Mar 25, 2024
e3267f7
crop screen refactor and rotation fix using exif data
veejayts Mar 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/
.vscode/

# Flutter/Dart/Pub related
**/doc/api/
Expand All @@ -42,6 +42,8 @@ app.*.map.json
# Exceptions to above rules.
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages

.gitignore
key.properties
android/app/key.jks
local.properties
.vscode
687 changes: 661 additions & 26 deletions LICENSE

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# OpenScan
<p align="center">
<img src="https://github.com/Ethereal-Developers-Inc/OpenScan/blob/master/assets/scan_g.jpeg" height=300>
</p>

An open source app that enables users to scan hardcopies of documents or notes and convert it to a PDF file. No ads. No data collection. We respect your privacy.
<H1 align='center'> OpenScan </H1>
<H3 align='center'>Reclaim your Privacy</H3>
<br>

# PSA
OpenScan is currently **NOT** under active development due to life happening right now. PRs and enhancements are welcome. If you are planning to contribute checkout the dev_v3 branch.
Expand All @@ -13,15 +17,11 @@ To rectify this situation would mean to update the dependency which in-turn has

---


[<img src="https://github.com/Ethereal-Developers-Inc/OpenScan/blob/master/gplay%20badge.png" alt="Get it on Google Play" height="80">](https://play.google.com/store/apps/details?id=com.ethereal.openscan)

[<img src="https://gitlab.com/IzzyOnDroid/repo/-/raw/master/assets/IzzyOnDroid.png" alt="Get it on IzzyOnDroid" height="80">](https://apt.izzysoft.de/fdroid/index/apk/com.ethereal.openscan)

<p align='center'>
<a href="https://play.google.com/store/apps/details?id=com.ethereal.openscan" alt="Get it on Google Play"><img src="https://github.com/Ethereal-Developers-Inc/OpenScan/blob/dev_v3/assets/Playstore.png" width=200></a>
<a href="https://apt.izzysoft.de/fdroid/index/apk/com.ethereal.openscan" alt="Get it on IzzyOnDroid"><img src="https://gitlab.com/IzzyOnDroid/repo/-/raw/master/assets/IzzyOnDroid.png" width=200></a>
<br>
(Build instructions present at the bottom of the file)

<p align="center">
<img src="https://github.com/Ethereal-Developers-Inc/OpenScan/blob/master/assets/scan_g.jpeg" height=400>
</p>

# About this app
Expand Down
28 changes: 28 additions & 0 deletions android/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>android</name>
<comment>Project android created by Buildship.</comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
</natures>
<filteredResources>
<filter>
<id>1633349142600</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>
13 changes: 13 additions & 0 deletions android/.settings/org.eclipse.buildship.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
arguments=
auto.sync=false
build.scans.enabled=false
connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
connection.project.dir=
eclipse.preferences.version=1
gradle.user.home=
java.home=C\:/Program Files/Java/jdk-16.0.1
jvm.arguments=
offline.mode=false
override.workspace.settings=true
show.console.view=true
show.executions.view=true
11 changes: 7 additions & 4 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ if (localPropertiesFile.exists()) {

def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '4'
flutterVersionCode = '6'
}

def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '2.2'
flutterVersionName = '3.0'
}

def keystoreProperties = new Properties()
Expand Down Expand Up @@ -52,7 +52,7 @@ android {

defaultConfig {
applicationId "com.ethereal.openscan"
minSdkVersion 19
minSdkVersion 21
targetSdkVersion 33
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
Expand All @@ -69,6 +69,7 @@ android {
buildTypes {
release {
signingConfig signingConfigs.release
minifyEnabled true
}
}
}
Expand All @@ -77,4 +78,6 @@ flutter {
source '../..'
}

dependencies {}
dependencies {
implementation 'com.quickbirdstudios:opencv:4.3.0'
}
3 changes: 1 addition & 2 deletions android/app/src/debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.ethereal.openscan">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
Expand Down
2 changes: 1 addition & 1 deletion android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.CAMERA" />

</manifest>
</manifest>
Loading