Mobile Development Work Session 12/5/2020
Ok, so basically this article is what it is titled.
I am first going to take an hour and a half to go through each of the classes, and each of the methods inside of that particular class. ThermalCamera and ThermalActivity both utilize this particular library. The following enumerates my tasks for today.
I'm just doing the class descriptions will be done by 4:30. Hopefully can do the temperature averaging by 7:30. I hope in the next hour or two to create a Text Box and update this temperature text box accordingly.
Class/Interface Descriptions:
CameraListener:
This is an interface that utilizes the Android Graphics Bitmap Library to have a receive method with a visual image and thermal image interface embedded into them. It basically calls the receive method in order to call a method that acts once a particular Bitmap is received.
CSVWriter:
This is a class taken from an online repository, and it acts as an example CSV writer released under a commercial-friendly license. There is a constructor that calls an escape character, writer, separator, quote character, and line end. There is also a method that flushes a stream or deletes a stream to the writer; these act as error codes.
CustomDialogReading:
This class basically sets a user-inputted symptom list to a string like "headache, nausea, jaundice, abdominal pain".
CustomDialogSymptoms:
There is a button for submitting the symptoms. What this class does is get everything enumerated as a particular Chip and then subsequently save all the data into a SQLite database.
DbHelper:
This method basically interacts with the SQL database. There is a method that exports the database to an .csv excel file, if needed. It also can update readings, get readings, insert readings, and delete the readings from the push of a button.
FormatHelpers:
There is a method the converts Symptom objects to strings, serialized symptoms to strings, and Serialized symptoms to symptoms. Basically, this class acts as a type converter, and returns an ArrayList of either symptoms or strings.
MainActivity:
This class is basically the initial activity class. It has 2 classes for a readingsActivity and a thermalActivity and buttons that carry out their respective tasks.
MapsActivity:
This class basically tracks the Maps Activity(obviously). It has various forms of functionality. One of its purposes is to track the location, and asks for permissions before this "location" is tracked. Another purpose of this class is to search for nearby COVID testing locations by performing URL scraping.
MeasurementEngine:
This class uses the MLVision to detect face in one of the camera categories, the other being the thermal category.
NegativeReadingActivity:
Once there is a negative reading, this class is used to store the negative temperature on the database and display that there is a negative temperature on the UI.
PositiveReadingActivity:
This class sets the temperature and the Google Maps interface whenever there is a positive reading that occurs.
Reading:
This class makes an object that holds the id, temperature, time, and symptoms of a database entry.
ReadingsActivity:
This class shows all of the readings in an organized, graphical format, where the users are able to delete this readings, edit these readings, or swipe on these readings.
Symptoms:
This is a class that enumerates all of the Symptoms. The symptoms are Cough, Headache, Difficulty Breathing, Nausea, Lost of Taste and Smell, Sore Throat, or none as the default.
ThermalActivity:
This is the activity that uses a lot of the flir.thermalSDK, activities, and where I believe that I'm supposed to perform my tasks.
ThermalCamera:
This class creates a camera and subsequently runs the temperature and visual bitmap in order to send to preprocessing much later.
WordListAdapter:
OnBindViewHolder views the particular data, and there is a button that helps users to export the data. The textbox Color also changes color in accordance to the temperature.
ExampleInstrumentedTest:
This indicates that the package name is valid.
ExampleUnitTest:
This really doesn't serve any function at the moment.
BuildConfig:
This is just the configuration file.
build.gradle:
The gradles that are contained are the Google gradle for vision, the Google gradle for location, the android gradle for maps, as well as several FLIR functions.
Now comes the part where I implement something. I am supposed to update the temperature live by performing an averaging function on it, which I insert in either the ThermalActivity or the ThermalCamera.

Comments
Post a Comment