theaiscope / gdd-app Goto Github PK
View Code? Open in Web Editor NEWGlobal Disease Database – Android app to gather images for disease detection
License: MIT License
Global Disease Database – Android app to gather images for disease detection
License: MIT License
In the mask layer, we are loading a large bitmap that comes from the camera. However, on some devices, this bitmap exceeds the maximum size that can be loaded in a canvas. For example, on a Redmi 6A device, the picture is 3120x4160 in size, whereas the maximum bitmap can be 4096x4096.
As a solution, downscale the image so that it fits in the constraints.
Integrate https://github.com/arturbosch/detekt and fix detected code smells.
Current behaviour
Expected behaviour
The user should be able to zoom in/out using gestures (pinch in / pinch out) as far as the camera hardware makes it possible.
Inspired by https://proandroiddev.com/measure-and-optimize-bitmap-size-using-glide-or-picasso-3273b4a569cd
How about if use RGB_565 format instead of ARGB_8888 for loading the images in the app (we could still save the full quality image in the dataset)? The difference in quality would probably be barely noticeable, but it would use half of the memory.
What the title says.
Explore making use of the KTX Graphics extensions library, to make the code around graphics nicer.
A good article on the topic can be found here: https://blog.stylingandroid.com/ktx-graphics/
Right now, thumbnails that appear on the metadata screen are cached on disk, using the decodeSampledBitmapAndCache()
method from the BitmapReader
class. This could be improved further by adding an intermediate layer of caching, in-memory LRU cache, implemented using the androidx.collection.LruCache
class from AndroidX.
This cache could also be used for the blank Bitmap that currently gets created every time a mask is saved, here:
An additional requirement would be for this in-memory cache to react to low memory conditions. This can be achieved by overriding the onTrimMemory()
method in the Application
class, and depending on the level
, evict an adequate number of bitmaps, using the trimToSize()
method.
Relevant Android guide: https://developer.android.com/topic/performance/graphics/cache-bitmap#memory-cache
Clicking the top-left exit button on any of the three screens of the picture taking flow (Capture, Mask/Highlight and Metadata) should display a confirmation modal dialog as in this Invision screen. The positive option will exit the flow to the homepage.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.