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

Add Java demo-Text Detection, Object Tracking #264

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

bluehatch
Copy link

This PR is about creating Java demos (#251). The implementation model is as follows:

  • Text Detection
  • Object Tracking

The Java demo used OpenCV's java implementation JavaCV.

I will continue developing Java demos for other models in the future.

Copy link
Member

@fengyuentau fengyuentau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for contribution 👍


I never use Java with Maven before. Could you explain what thoese pom.xml files are? Are they needed by Maven? How are they generated if needed?


Also I propose to submit a demo for a model in a PR. So could you split this one into two?

@bluehatch
Copy link
Author

Thank you for contribution 👍

I never use Java with Maven before. Could you explain what thoese pom.xml files are? Are they needed by Maven? How are they generated if needed?

Also I propose to submit a demo for a model in a PR. So could you split this one into two?

pom.xml is a file that contains Maven build information. It is usually written directly by the developer.
You can install Maven here. For convenience, let's consider including a maven wrapper that can be used without installing Maven.

As requested, I will split the PR into two models and include a demo for each.

import com.beust.jcommander.UnixStyleUsageFormatter;
import org.bytedeco.javacpp.BytePointer;
import org.bytedeco.opencv.global.opencv_dnn;
import org.bytedeco.opencv.opencv_core.*;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

org.bytedeco.opencv

This doesn't look as original OpenCV Java API.

/cc @asmorkalov

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it's 3rdparty package. We do not distribute pre-built Java package with Maven Central.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do not distribute pre-built Java package with Maven Central

So there is nothing for Java like Python does (pip install then use out-of-the-box)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants