serivesmejia / eocv-sim Goto Github PK
View Code? Open in Web Editor NEWFTC Library EasyOpenCV simulator for testing vision pipelines in a computer
License: MIT License
FTC Library EasyOpenCV simulator for testing vision pipelines in a computer
License: MIT License
Currently this repo has the following samples copied from the EasyOpenCV repository, but omits the license header:
In order to not be in violation of the original MIT license under which these files were released, the following header must be placed at the top of each of them:
/*
* Copyright (c) 2020 OpenFTC Team
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
00:00 INFO: [EOCVSim] Initializing EOCV Sim v1.0.0
00:00 INFO: [SysUtil] Copying native lib "linux64_opencv_java440.so"
00:00 INFO: [SysUtil] Copy of linux64_opencv_java440 cancelled since file already exists
00:00 INFO: [SysUtil] Loading native lib "linux64_opencv_java440.so"
00:00 ERROR: [SysUtil] Failure loading lib "linux64_opencv_java440", retrying with different architecture... (0 attempts)
00:00 INFO: [SysUtil] Copying native lib "linux32_opencv_java440.so"
00:00 INFO: [SysUtil] Loading native lib "linux32_opencv_java440.so"
Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /tmp/linux64_opencv_java440.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
java.lang.UnsatisfiedLinkError: /tmp/linux64_opencv_java440.so: /tmp/linux64_opencv_java440.so: invalid ELF header (Possible cause: endianness mismatch)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824)
at java.lang.Runtime.load0(Runtime.java:809)
at java.lang.System.load(System.java:1086)
at com.github.serivesmejia.eocvsim.util.SysUtil.loadLib(SysUtil.java:90)
at com.github.serivesmejia.eocvsim.util.SysUtil.loadCvNativeLib(SysUtil.java:55)
at com.github.serivesmejia.eocvsim.EOCVSim.init(EOCVSim.java:43)
at com.github.serivesmejia.eocvsim.Main.main(Main.java:8)
OpenCV has support for video sources. I know for a fact that in python you can do
import cv2
vid = cv2.VideoCapture('video.mp4')
success, img = vid.read()
while success:
success, img = vid.read()
and it works just fine with img
representing each image frame. I'm sure Java has something similar, if not C++. Would be great if I can bypass the camera and simply use an mp4 or other video format to test pipelines (super useful for remote stuff).
Describe the bug
Compiling in java 16 fails although java 13 does. (Deprecation of some api(s) i believe)
To Reproduce
Install Java 16
Expected behavior
To compile in the :compileJava:
task.
Desktop (please complete the following information):
Additional context
Java 13 does work correctly!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.