ArucoUnity | Bring augmented reality to Unity by tracking Aruco markers in real time | Augmented Reality library

 by   NormandErwan C# Version: v2.0-alpha License: BSD-3-Clause

kandi X-RAY | ArucoUnity Summary

kandi X-RAY | ArucoUnity Summary

ArucoUnity is a C# library typically used in Virtual Reality, Augmented Reality, Unity, OpenCV applications. ArucoUnity has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Bring augmented reality to Unity by tracking ArUco markers in real time. Standard mono cameras, such as webcams, but also stereo cameras and fisheye lenses are supported.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              ArucoUnity has a low active ecosystem.
              It has 189 star(s) with 37 fork(s). There are 18 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 28 open issues and 16 have been closed. On average issues are closed in 78 days. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of ArucoUnity is v2.0-alpha

            kandi-Quality Quality

              ArucoUnity has no bugs reported.

            kandi-Security Security

              ArucoUnity has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              ArucoUnity is licensed under the BSD-3-Clause License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              ArucoUnity releases are available to install and integrate.
              Installation instructions are available. Examples and code snippets are not available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ArucoUnity
            Get all kandi verified functions for this library.

            ArucoUnity Key Features

            No Key Features are available at this moment for ArucoUnity.

            ArucoUnity Examples and Code Snippets

            No Code Snippets are available at this moment for ArucoUnity.

            Community Discussions

            QUESTION

            How can I load an Image using Opencv and pass it to Unity (through a C++ dll)?
            Asked 2020-Dec-10 at 13:55
            CONTEXT I am currently using opencv to detect some pattern in a video feed and send that information to a Unity game. I have found Aruco, a opencv module and both ArucoUnity and ArucoUnityPlugin. But it doesn't fit my requirements so I am currently remaking a simpler version (e.i. making a dll using opencv as a lib and importing its function in Unity). ISSUE While with simple parameters (int, string) and manage to get the values back, I am struggling to load images into Mat (through the imread function) and getting the Mat back in C#. I can create a empty Mat() using new Mat() and get it back into C#, I can load my imagetest into a Mat, but when I try to put it into the Mat that I return, the application crashes. CODE C++

            mat.hpp (part of)

            ...

            ANSWER

            Answered 2020-Dec-10 at 13:55

            I found the cause of the crash which was later on when I wanted to get the values which I casted as the wrong type of values (Vecd instead of the correct Vec3b). Additionally, I was also not using "new cv::Mat()" when testing and that cause the Mat to be discarded by the C++ (and the C# pointing to random stuff).

            For anyone that would like to do something similare here is my code (even if it' is heavily inspired by ArucoUnity/ArucoUnityPlugin by NormandErwan).

            C++ With the following somewhere (for me it was in PatternRecognition.hpp)

            Source https://stackoverflow.com/questions/65195636

            QUESTION

            OpenCV dll calls from Unity3D lead to FPS drop
            Asked 2019-Nov-19 at 07:45

            I want to recognize ArUco Marker in Unity3D and attach a GameObject to their position. I know there are packages in the Asset Store, but as other people got it working I was looking for an free existing solution or try it by myself.

            ArucoUnity The detection worked like a charm, but Unity crashes when accessing the data of the rvecs, tvecs. The error somewhere occur in the Get(int i) in the Vec3d class, when the c++ method au_cv_Vec3d_get(CppPtr, i, CppPtr); is called

            OpenCv plus Unity This implementation seems not to be complete as there exist no function to EstimatePoseSingleMarker or similar to get the rvecs and tvecs. Also the last updated was Jan 2019.

            As Unity (C#) provides the possibility to access unmanaged code, I followed this great tutorial and for the begging I was able to forward the cv::VideoCaputre stream to Unity. The only problem that occured was a FPS drop to around 35-40 whereas normally I get around 90-100.

            The C# code:

            ...

            ANSWER

            Answered 2019-Nov-19 at 07:43

            If I recall correctly, the C++ call to get an image (_capture >> _currentFrame;) is blocking/synchronous, meaning your code won't continue until it actually retrieves the image. You probably want to run your MatToTexture2D code asynchronously. ※This will mean that your frame rate will be higher than your image retrieval rate.

            Have your MatToTexture2D function run continuously as needed, updating tex. Then just continue to set your texture to the latest tex, which may be the same value 2-3 frames in a row.

            Edit: @derHugo's answer is much more solid for the programming side, so I'll hide that part. The basic issue is explained above, and derHugo's work-around is much better than my pseudo-code :)

            Source https://stackoverflow.com/questions/58925316

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install ArucoUnity

            Get ArucoUnityPlugin (C bindings to OpenCV):.
            Download the latest build release. Or see the Build From Sources documentation page.
            Import ArucoUnity.package in your Unity project.
            Download the latest build release corresponding to your platform. Windows and Linux x64 only are supported (see issue #6).
            Copy the Assets/ folder to your Unity project.

            Support

            For any question or comment, please open a new issue. If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/NormandErwan/ArucoUnity.git

          • CLI

            gh repo clone NormandErwan/ArucoUnity

          • sshUrl

            git@github.com:NormandErwan/ArucoUnity.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link