-
Notifications
You must be signed in to change notification settings - Fork 265
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
Providing SimpleCamera2Activity and VisualizeCamera2Activity as Fragments #154
Comments
This design made sense years ago but is definitely out of date now. It could be a bit before I personally have time to convert it into a fragment and other modern Android features. If someone sees this issue and would like to submit a PR that would be great! |
Is it correct that I can't switch on torch mode in any subclass because the ... I found out how to overwrite |
@hurzl For next time try either creating a new issue or ask somewhere else, as this issue is about something completely different. Might also help others, who later have the same problem you had, to find the solution if it is located in a fitting issue and not just somewhere. ;) |
This issue could probably be resolved easily with 'androidx.camera:camera-*', boofcv.android.ConvertBitmap. Using the ImageAnalyzer, you can use a PreviewView to point the camera, and analyze the images ConvertBitmap and qrCodePreciseDetector.detect(boofImage) I might be able to provide a sample, not sure where to put it, though. |
@vogthenn Maybe as an example? |
Won't make it into the next stable release but the one after this should have a complete rewrite using fragments. Writing the code for a commercial project and after it's stabilized I'm planning on donating it to this project. Will probably be a couple of months before it works its way into BoofCV. |
Code seems to be able now. Copied the main class over and running into issues where I think some dependencies might be aar files only, which a Java project wouldn't like. https://github.com/lessthanoptimal/BoofCV/tree/feature/fragments That's the branch if anyone wants to try to help debug this build issue. Maybe the solution is to switch over to the Android plugin? |
'./gradlew assemble' spews out a bunch of errors that look like this:
|
Good news! With help from @MaxDoss3 it appears to be building now. Going to try integrating it into a project and see if everything works as expected. |
Providing these two activities as Fragments would greatly increase the usability of these premade visualisation components. It would allow developers to include them in existing activities. If you still only want an activity you could then create one containing just the fragment.
The text was updated successfully, but these errors were encountered: