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

Black Screen Some time #188

Open
rajeshsws opened this issue Jun 13, 2023 · 11 comments
Open

Black Screen Some time #188

rajeshsws opened this issue Jun 13, 2023 · 11 comments

Comments

@rajeshsws
Copy link

HI
Any clue why it happening
Some time back screen coming, ON switching to front or back then camera screen appears? I am using in .net maui blazor framework.
image

@criistii
Copy link
Contributor

I would like to 2nd this issue. I have noticed that on a lot of Samsung devices, the image is really dark. Can be confused with a black screen. However there is a video stream coming in, I would say 5-10% visible. My customer has this issue on several Samsung devices and also on a Pixel. I can confirm this issue appears on my Samsung A14.
Is there a workaround or way to fix it?

@criistii
Copy link
Contributor

By the way, a good chance it is related to this: https://issuetracker.google.com/issues/285007312?pli=1

@JimmyPun610
Copy link
Owner

You may try to remove RequestFPS settings

@rajeshsws
Copy link
Author

rajeshsws commented Aug 23, 2023 via email

@JimmyPun610
Copy link
Owner

Hi Where I can set those setting ?
On Wed, 23 Aug 2023 at 5:31 AM, Jimmy Pun @.> wrote: You may try to remove RequestFPS settings — Reply to this email directly, view it on GitHub <#188 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALQCSDZW74Q43554J4YNBU3XWVB5BANCNFSM6AAAAAAZETCQOY . You are receiving this because you authored the thread.Message ID: @.>
-- Best Regards Rajesh Shoky (9716000503) Methods Apparel Consultancy India Pvt Ltd. Vipul Business Park Suite :1016, 10th floor Sector 48 Gurugram-122001 Skype ID : shoky114 Linked In :LinkedIn.com/in/rajeshsheokand what's App :+919716000503

 <!--VirbationOnDetected: Indicate the device will vibrate or not when detected barcode, default is True
		 TorchOn: Indicate the torch will on or not when the view appear, default is False
		 IsScanning : Indicate whether the device will start scanning after it is opened, default is True
		 RequestedFPS: Affect Android only, remove it if you want a default value (https://developers.google.com/android/reference/com/google/android/gms/vision/CameraSource.Builder.html#public-camerasource.builder-setrequestedfps-float-fps)
		 ScanInterval: Scan interval for iOS, default is 500ms and the minimum is 100ms, please be reminded that double scanning may be occurred if it is too small
		 -->
          <gv:CameraView HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" OnDetected="CameraView_OnDetected" Grid.Row="1"
                           TorchOn="False" VibrationOnDetected="False" ScanInterval="50" x:Name="Camera"/>

In your xaml => CameraView, not setting it will leave it to default which is decided by the device

@criistii
Copy link
Contributor

Hey. Thanks! I can confirm that removing RequestedFPS="10" fixes the issue

@rajeshsws
Copy link
Author

Thank you please conform i need to remove this code RequestedFPS="10"
or need to set value RequestedFPS="10"?
Little confusion in your word

@criistii
Copy link
Contributor

remove it

@rajeshsws
Copy link
Author

But i was not using this line as well earlier and still show some time black screen

@criistii
Copy link
Contributor

Seems we have different problems then. It worked for my issue.

@andryushchenko
Copy link

In my case black screen was caused by CaptureQuality=High on some devices. Works fine with Default

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

4 participants