Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Camera stop working after several seconds #8

Open
heacsing opened this issue May 16, 2024 · 8 comments
Open

Camera stop working after several seconds #8

heacsing opened this issue May 16, 2024 · 8 comments

Comments

@heacsing
Copy link

Expected Behavior

Continuously transfering frame and logging

Actual Behavior

After several seconds, FPS starts falling until reach 1, and the camera stop working.
Here is the logging

image

Steps to Reproduce the Problem

As same as the guide tells.

@chenyeju295
Copy link
Owner

Hi, I'm not experiencing this issue at the moment, what device are you using? Some devices may just not be supported. Would you try running this and see?https://github.com/jiangdongguo/AndroidUSBCamera?tab=readme-ov-file#demo

@dtorologic
Copy link

dtorologic commented May 21, 2024

@chenyeju295 Hello I have the same error "DId not find frame", the app detect that camara is conected but no image shown in the app, can you can generate apk for flutter? I want to discard that my code is not compiling wrongly.

@chenyeju295
Copy link
Owner

@dtorologic
Copy link

Try this, it should be a device issue .https://github.com/jiangdongguo/AndroidUSBCamera/blob/master/app/release/app-release.apk

I have tried two different cameras, one works and the other tells me that "campera opned error: unsupported preview size".

@chenyeju295
Copy link
Owner

one

Hello! I've updated the code to view device information,supported preview sizes, you can try it and see if it's a camera device issue.

@heacsing
Copy link
Author

one

Hello! I've updated the code to view device information,supported preview sizes, you can try it and see if it's a camera device issue.

Thank you for your earnest help, I tried the demo app from AUSBC earlier and it bugs as the same. So I'm searching for other devices. I'll run your code later and give you feedback as soon as possible. Thank you again!

A fun situation is, after limiting the constant MAX_FPS in CustomCameraUVC.kt, the dropping rate of fps is quite slowing down. (I just notice it was moved in a function as a variable in the latest code).

@chenyeju295
Copy link
Owner

You're welcome ☺️, his parameters will be different for different devices, so compatibility is still a huge challenge.

@dtorologic
Copy link

one

Hello! I've updated the code to view device information,supported preview sizes, you can try it and see if it's a camera device issue.

Hello!, Thanks for the update, a basic web cam works well for me, but for the camera I have "inskam315w", it doesn't work, it tells me "get camera preview size failed"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants