Git Product home page Git Product logo

Comments (7)

ThibaultBee avatar ThibaultBee commented on July 20, 2024 1

Hi there,

I have the feeling that there was on issue with the orientation, but it is a really painfull subject 🧠
Could you check that tapping on StreamPack Preview properly set the focus on the same place as the preview (with your patch).
Do you have in mind an easy way to test this?

Best regards,
Thibault

from streampack.

maehata-fairy avatar maehata-fairy commented on July 20, 2024 1

Hi
Thank you for taking this issue.

Just did the test with my webcam and sensor orientation is also 90 degrees...

I apologize that it did not behave as expected. I will conduct further investigation on my end as well.

From a technical point, I believe it is possible to build an emulator image with Angle other than 90 from AOSP. However, I consider that as a last resort..

from streampack.

ThibaultBee avatar ThibaultBee commented on July 20, 2024

As the preview and the stream are 2 different things, there might be 2 issues.
To display the preview on your device, what view do you use?

from streampack.

maehata-fairy avatar maehata-fairy commented on July 20, 2024

Hello.

The combination of device orientation and camera mount angle is a headache.

The patch I created focuses only on the stream.
The preview is not fixed and needs additional work. (sry...)
I will try more when I have time.

A simple test... This is also difficult.
Probably, you hard to get a reproducible device.
I think it would be better to do it on an android emulator, but i have to examine emulator's configuration.

from streampack.

maehata-fairy avatar maehata-fairy commented on July 20, 2024

Sorry I haven't had much time to do this....

I tried to build a simple environment.
It may be possible to build it with an "android emulator" and "external usb camera".

Some devices for auto (vehicles) like alps YT9213AJ support external usb camera and it returns 0 camera sensor orientation
android/camera-samples#361

The report says "YT9213AJ supports external usb camera and it returns 0 camera sensor orientation > ".

So,

  • Connect an external usb camera (sensor orientation = 0) to the PC
  • On the PC, specify the camera device when starting the emulator.
    e.g. emulator.exe -avd PixelC -camera-back webcam1.
    This may work.

However, I do not have an external usb camera at hand,
so I installed the virtual camera driver and confirmed that the emulator even uses the camera.
Unfortunately, the virtual camera driver recognized sensor orientation = 90, so it may not work.

Thank you.

from streampack.

ThibaultBee avatar ThibaultBee commented on July 20, 2024

Hi,
Sorry I missed you last messages.

The combination of device orientation and camera mount angle is a headache.

Agreed! It is not clear at all.

I will try to test with an android emulator and an external USB camera. Thanks for the information.

In the meantime, I reworked the management of the orientation. It is not going to fix your issue but it might be easier to debug.
Everything is in https://github.com/ThibaultBee/StreamPack/blob/5ae4592ecfe2e6f5ebcc1d49296bf5f1a068cbf0/core/src/main/java/io/github/thibaultbee/streampack/internal/sources/camera/CameraSource.kt#L130C14-L130C14
I guess your issue has a link with the default buffer size. But it is still unclear how to set setDefaultBufferSize.

from streampack.

ThibaultBee avatar ThibaultBee commented on July 20, 2024

I will try to test with an android emulator and an external USB camera. Thanks for the information.

Just did the test with my webcam and sensor orientation is also 90 degrees...
Looking for a way to test or for a clear explanation of https://developer.android.com/training/camera2/camera-preview

from streampack.

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.