Git Product home page Git Product logo

eocv-sim's Introduction

FTC Projects

Libraries

Contributed to...

Stats

Stats Top Langs

eocv-sim's People

Contributors

dependabot[bot] avatar hannesa2 avatar henopied avatar jiceberg avatar lukasmwerner avatar puravdatta-sudo avatar serivesmejia avatar shaunsingh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

eocv-sim's Issues

Samples copied from EasyOpenCV repository do not have license header

Currently this repo has the following samples copied from the EasyOpenCV repository, but omits the license header:

image

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.
 */

Fails to load native library on Linux x64

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)

Feature Request: Add Video Source Support

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).

Java 16 does not work

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):

  • OS: Windows 10
  • Version 2.2.0

Additional context
Java 13 does work correctly!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.