Frikster / CircuitSolverApp

An Android app for simulating circuits drawn by hand using OpenCV, Tensorflow, and NgSpice
11 stars 5 forks source link

Optimize saving circuit strategy #54

Open jenalam opened 7 years ago

jenalam commented 7 years ago

Currently our method of saving circuits doesn't make efficient use of memory. The files we save for each circuit includes:

We do not have a need to save the OpenCV processed image, as we never use it once the circuit is processed. Furthermore, the only use we have for the original image is to display it as a thumbnail on the home screen under the "Saved Circuits" label. We should compress the original image and shrink it so that it doesn't take up so much space.

npgoossen commented 7 years ago

A downsized image is already saved for the home screen, so it should just be removing the unneeded images

npgoossen commented 7 years ago

So i sort of fixed this while fixing other stuff. Changed to save a downsized image, which is used for processing, and displayed on the home screen (if available, otherwise, displays the circuit schematic drawn in activity)