Open ghost opened 7 years ago
Are you using the code from the newest master? We had to make a fix a few weeks ago. The zip download no longer works, and I need to get it updated.
We're seeing the same problem. Evidently the opencv-jni-3.2.0-linux-arm-raspbian jar was not built and is not available in the maven repository. I tried building opencv 3.2.0 for raspbian myself with no luck. We'd like to get our vision co-processor working before January ;) Thanks.
We're actually still working on how to properly get raspberry pi and coprocessor builds working. Last year they were customly built by a contributor, and was not a maintanable setup. We hope to have something ready by the build system with the new items, but for now you just have to use the latest master download of this repo, and not the zip.
@ThadHouse Hi, my team is also encountering this problem. You mentioned above that we "just have to use the latest master download of this repo, and not the zip." - Would this successfully work? And where could we find the download of the repo? Thanks :)
Yes, the latest master will still work. To download it, go to https://github.com/wpilibsuite/VisionBuildSamples
and there should be a Clone or download
button. Click that, and then click Download Zip
That will download a new copy of the master branch.
<3
@ThadHouse what's the solution for when i run ./gradlew build , but the build fails stating that the variable camera in imageSink.setSource(camera) (in Main.java) cannot be found? I am intending to use a USB Camera to connect to a Raspberry Pi Model B, but at the time of using the command ./gradlew build, the camera was not plugged in. (I am also using the latest master).
Read the file starting at line 29. You have to modify the code slightly to get the right behavior that you want.
@ThadHouse And interpreting the instructions from https://wpilib.screenstepslive.com/s/currentCS/m/vision/l/687863-off-board-vision-processing-in-java , in the "Building and Running" section, the guide states that after running the command ./gradlew build , output files will be placed into the output directory. What is the output directory specifically, and could you also explain this step? " From there, you can run either the .bat file on windows or the shell script on unix in order to run your project on the local system." Thanks in advance.
Sorry to bump an old thread, but to answer your question, the output directory is simply a directory that the gradle build creates in the same folder called "output"
Has anyone found a solution to this issue? We have the same issue, running on a Raspberry Pi 3
Try manually specifying opencv 3.1 following this commit: https://github.com/wpilibsuite/VisionBuildSamples/commit/a98bf8a8819ae79b58e5738d05d357d465dc37a4
When following the tutorial i follow all the instructions but when i compile localy with
gradle build
it fails with this error:And then when i run with stacktrace
My initial guess was that the link was dead, and so i tested the link by going to http://first.wpi.edu/FRC/roborio/maven/release/org/opencv/opencv-jni/3.2.0/opencv-jni-3.2.0-linux-arm-raspbian.jar and so i got a 404