Code Monkey home page Code Monkey logo

Comments (1)

headupinclouds avatar headupinclouds commented on May 27, 2024

I'm not sure what is happening, but the black screen output is one of the more common OpenGL errors. What device and Android version are you using?

Have you looked for facefilter errors in logcat?

Can you provide details for the following?

  • device
  • android release
  • android studio version
  • ndk version
  • cmake version

Can you confirm that frame callbacks are being received in the native C++ layer?

I would probably try to cut out the face tracking and display and just test a simple rgb->grayscale shader. You can get this behavior in the demo app by disabling the tracker allocation here:

m_tracker = facefilter::make_unique<drishti::sdk::FaceTracker>(&context, m_factory->factory);
if (!m_tracker)
{
m_Application.getLogger()->error("Failed to create face tracker");
throw std::runtime_error("Failed to insantiate tracker");
}
m_tracker->add(m_callbacks->table);

It will skip the tracking on each frame here:

if(m_tracker)
{
// Manually prepare display if drishti will be used
gray.setGrayscaleConvType(ogles_gpgpu::GRAYSCALE_INPUT_CONVERSION_NONE);
disp.setOutputRenderOrientation(ogles_gpgpu::RenderOrientationFlippedMirrored);
disp.prepare(frameSizeUp.width, frameSizeUp.height, 0, false);
}
else
{
gray.add(&disp);
}

There are a set of unit tests that are managed with the gauze framework. It will install and launch the tests on your device if it is tethered and visible via adb devices. I'm curious if those are passing on your device. It could help to isolate configuration issues in the C++ layer vs application layer problems in the Android app. You can run these by adding -DRISHTI_BUILD_TESTS=ON DRISHTI_HAS_GPU=ON to the cmake build command (--fwd ... in case of polly.py commands).

from drishti.

Related Issues (20)

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.