NetLogo / NetLogo/Vid-Extension

Using redundant camera libraries

Open
#32 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Scala
Stars
1
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Per the new docs:

Both libraries do camera capture, it's true. The issue is that JavaCV depends on OpenCV for its functionality, and OpenCV doesn't provide camera discovery on all platforms (Windows only). OpenImaj does support camera discovery on all platforms we care about, but it has lots of trouble running successfully on macOS. The latest version of OpenImaj I tested crashed randomly but regularly in normal usage of the camera capture functionality. However the OpenImaj camera discovery feature works just fine, no crashes. Hence we use both. If ever OpenImaj improves its macOS support or if JavaCV supports camera discovery, we could eliminate one or the other.

There are actually a few options/actions we could take on our own without waiting for one or the other of those libraries to update:

  1. Work was started in JavaCV to use FFmpeg to do this, but not completed. We could try to complete that work.
  2. We could try to rip out just the bits of OpenImaj that does the camera enumeration, and pull those out into some kind of package usable with JavaCV. Probably if we did this we'd drop BridJ (the C++ interop that OpenImaj uses) in favor of JavaCPP (the one JavaCV uses) if at all possible (along with as many other extraneous deps OpenImaj pulls in). The result of this could be a PR for JavaCV, or it could just be a standalone package that we maintain.

Either way, we should be able to also avoid issue #31 entirely witht his work, by using JavaCV only (which doesn't use the VC++ lib) or by updating the VC++ version used if we use the OpenImaj code.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with BUILDING.md and the linked JavaCV and OpenIMAJ issue discussions. Compare the proposed options for camera discovery and capture, including their dependency implications. Done means the redundant camera libraries are reduced or eliminated and issue #31 is avoided.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, opencv, scala
Domain
computer-vision, desktop
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.