androidGlesCamera2 | Handle camera2 preview drawing | Computer Vision library

 by   aleksas Java Version: Current License: No License

kandi X-RAY | androidGlesCamera2 Summary

kandi X-RAY | androidGlesCamera2 Summary

androidGlesCamera2 is a Java library typically used in Artificial Intelligence, Computer Vision, OpenCV applications.,roidGlesCamera2 has no bugs, it has no vulnerabilities, it has build file available and it has low support. You can download it from GitHub.

Handle camera2 preview drawing.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              androidGlesCamera2 has a low active ecosystem.
              It has 6 star(s) with 0 fork(s). There are 2 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              androidGlesCamera2 has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of androidGlesCamera2 is current.

            kandi-Quality Quality

              androidGlesCamera2 has no bugs reported.

            kandi-Security Security

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

            kandi-License License

              androidGlesCamera2 does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              androidGlesCamera2 releases are not available. You will need to build from source code and install.
              Build file is available. You can build the component from source.

            Top functions reviewed by kandi - BETA

            kandi has reviewed androidGlesCamera2 and discovered the below as its top functions. This is intended to give you an instant insight into androidGlesCamera2 implemented functionality, and help decide if they suit your requirements.
            • Initializes the surface
            • Initializes the texture
            • Update viewport
            • Compile vertex shader
            • Called when an image is available
            • Convert yUV to RGB
            • Converts a YUV420 pixel image into an array of pixels
            • Fills the yuv planes
            • Implements requestPermissionsResult
            • Get the permissions from the permissions array
            • Get the parent fragment
            • Called when the camera is resume
            • Check if the app has the required permissions
            • Resume camera
            • Initializes the window
            • Attaches a PermissionHelper to the FragmentManager
            • Convert an image into a bitmap
            • Fill the image with the yuv planes
            • Initialize renderer
            • Called when the user has permission failed
            • Saves a bitmap to disk
            • Compute a transformation matrix
            • Crop and resize bitmap
            • Creates the camera preview session
            • Calculates the size of the preview size in pixels
            • Called when a draw frame is drawn
            Get all kandi verified functions for this library.

            androidGlesCamera2 Key Features

            No Key Features are available at this moment for androidGlesCamera2.

            androidGlesCamera2 Examples and Code Snippets

            No Code Snippets are available at this moment for androidGlesCamera2.

            Community Discussions

            Trending Discussions on androidGlesCamera2

            QUESTION

            Android OpenGL camera2 texture resolution
            Asked 2018-Feb-28 at 16:53

            Intro

            I'm using CaptureRequest.Builder and provide two surfaces as a target: a SurfaceTexture for drawing GL and an ImageReader (getSurface()) for processing frame.

            I set desired resolution 640x480 by setting surfaceTexture.setDefaultBufferSize and by creating ImageReader.newInstance.

            The problem

            It appears that SurfaceTexture OpenGL texture is getting image that is of different aspect ration than 640x480 (4:3), more like 2560x1440 (16:9)(SurfaceTexture occupying full screen, see IMG 3). It has to be noted that both phones have same resolution aspect ratio 16:9. (Texture offset from the sides is left intentionally).

            Below you can see IMG 1 displayed on a monitor screen, and IMG 2 and IMG 3 are phone screen captures where current activity view is showing camera preview.

            The question

            How to correctly force SurfaceTexture or GLSurfaceView.Renderer to get specific (4:3 in this case) aspect ratio texture image from camera for arbitrary size View?

            Relevant

            It has to be noted that there is an app that addresses issue, but for that they change the view size to correspond to desired aspect ratio.

            See also:

            IMG 1 - Displayed source image:

            IMG 2 - Good aspect ratio (Google Nexus 5 - Android 6.0.1):

            IMG 3 - Bad texture aspect ratio (LG-D855 - Android 5.0)

            ...

            ANSWER

            Answered 2018-Feb-28 at 16:53

            "Fixed" the issue by updating LG phone to Android 6.0.

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

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

            Vulnerabilities

            No vulnerabilities reported

            Install androidGlesCamera2

            You can download it from GitHub.
            You can use androidGlesCamera2 like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the androidGlesCamera2 component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            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/aleksas/androidGlesCamera2.git

          • CLI

            gh repo clone aleksas/androidGlesCamera2

          • sshUrl

            git@github.com:aleksas/androidGlesCamera2.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