deltacv / EOCV-Sim

Develop, test, and tune your EasyOpenCV pipelines directly on your computer with a simple GUI !
https://docs.deltacv.org/eocv-sim/
MIT License
54 stars 20 forks source link

Make EOCV-Sim a module #78

Closed AkarJosh closed 1 year ago

AkarJosh commented 2 years ago

Our team uses kotlin so we cloned the eocv-sim repo as a separate branch in our repo.

Make EOCV-Sim a module like meepmeep.

serivesmejia commented 2 years ago

Apologies for the delayed response, apparently github doesn't like to email me

That's a great idea actually! It's quite simple because EOCV-Sim is already hosted in the same repo where meepmeep is, so you would follow the same instructions for creating a java-library module like meepmeep, and you can just pull EOCV-Sim as a dependency like

repositories {
     maven { url 'https://jitpack.com/' }
}

dependencies {
     implementation 'com.github.deltacv:EOCV-Sim:EOCV-Sim:3.3.2'
}

Then you can create a main function and initialize eocv sim in a single line:

fun main() = EOCVSim().init()

From there you just need to run that main function and it will automatically find your OpenCvPipeline-s in the module. I will add proper docs for this feature in the future, thanks so much for the idea!

AkarJosh commented 2 years ago

seems like .start() is private im using version 3.4.0 btw.

serivesmejia commented 2 years ago

seems like .start() is private im using version 3.4.0 btw.

Oh yeah my bad, it's .init() I edited my first response as well

AkarJosh commented 2 years ago

Now im getting this error

Exception in thread "main" java.lang.NoClassDefFoundError: org/opencv/core/Size at com.github.serivesmejia.eocvsim.EOCVSim.(EOCVSim.kt:63) at MainKt.main(Main.kt:3) at MainKt.main(Main.kt) Caused by: java.lang.ClassNotFoundException: org.opencv.core.Size at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) ... 3 more

serivesmejia commented 1 year ago

Apologies for the lack of tracking on my end. If you still need help please open a new issue