Skip to content

Commit

Permalink
Merge pull request #8 from developmentseed/dev/sam
Browse files Browse the repository at this point in the history
Segment Anything Service  Integration
  • Loading branch information
yunica authored Oct 3, 2023
2 parents b4740d5 + 211c8ae commit e47ba21
Show file tree
Hide file tree
Showing 30 changed files with 2,058 additions and 264 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,7 @@ bin/

### Other ###
osmjar/

*.env
### constants
./src/**/utils/Constants.java
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Josm Magic Wand
# DS-annotate plugin for Java OpenStreetMap Editor

Plugin created for the [JOSM](https://josm.openstreetmap.de/), allows you to select areas to label using a range of
colors, it is also possible to add areas and subtract selected areas.
The DS-annotate plugin is an extension for the Java OpenStreetMap Desktop Editor (JOSM). Built upon ds-annotate, this plugin utilizes the [Segment Anything Service](https://github.com/developmentseed/segment-anything-services), which leverages Generative AI. Additionally, it allows users to label areas using a spectrum of colors, similar to a magic wand tool, enabling faster and more accurate mapping.

![Peek 2022-11-09 16-53](https://user-images.githubusercontent.com/12978932/200950045-179c72d5-600c-4012-b2a4-3ceb1345ea25.gif)

Expand Down
28 changes: 15 additions & 13 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,26 @@ plugins {
}

group = "org.openstreetmap.josm.plugins.devseed.JosmMagicWand"
version = "1.2.0"
version = "1.2.2"

java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(11))
}
}

tasks.jar {
duplicatesStrategy = DuplicatesStrategy.INCLUDE // O DuplicatesStrategy.EXCLUDE si deseas excluir duplicados
}
// Repositories Configuration
allprojects {
repositories {
mavenLocal()
mavenCentral()
}
}
configurations { create("externalLibs") }

repositories {
mavenCentral()
}

// Source Sets Configuration
sourceSets {
create("libs") {
java {
Expand All @@ -42,18 +43,20 @@ sourceSets {
}
}
}
val libsImplementation: Configuration by configurations.getting {
extendsFrom(configurations.implementation.get())

configurations {
create("externalLibs")
}

dependencies {
// Libraries to be packed into the JAR
packIntoJar("org.locationtech.jts:jts-core:1.19.0")
packIntoJar("org.locationtech.jts.io:jts-io-common:1.19.0")
packIntoJar("org.openpnp:opencv:4.7.0-0")
libsImplementation("org.locationtech.jts:jts-core:1.19.0")
libsImplementation("org.openpnp:opencv:4.7.0-0")
packIntoJar("com.fasterxml.jackson.core:jackson-databind:2.15.2")
packIntoJar("com.squareup.okhttp3:okhttp:4.10.0")
}


josm {
pluginName = "josm_magic_wand"
debugPort = 1729
Expand All @@ -68,5 +71,4 @@ josm {
website = URL("https://github.com/developmentseed/JosmMagicWand")
minJavaVersion = 11
}

}
}
99 changes: 99 additions & 0 deletions images/cursor/modifier/magic-wand-sam.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions images/dialogs/magic-wand-encode.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
113 changes: 113 additions & 0 deletions images/dialogs/magicwand-info.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit e47ba21

Please sign in to comment.