This model will help the users to get an idea of the accidents well before the accident took place. For the people safety, by the people safety
Unnati
Nearly 80% of accidents take place in year. Our app is going to help the users detect an accident and intimate hospitals that at this location accident has been done
You can install Conda
for python which resolves all the dependencies for machine learning:
pip install requirements.txt
create_dataset.py
for converting the video to images.main.py
to train the model.model.py
for testing your model.The Algorithm: Each video is a set of individual images that are time-dependent sequences. The algorithm - a hierarchical recurrent neural network - is able to treat videos as a time-dependent sequence, yet it allows them to be an independent data point.
The algorithm uses two layers of long short-term memory neural networks. The first neural network (NN) is a recurrent network that analyzes the time-dependent sequence of the images within each video. The second takes the encoding of the first NN and builds a second NN that reflects which videos contain accidents and which do not. The resulting model enables a prediction of whether new dashcam footage will encounter an accident.
Through this method, the HRNN incorporates a time-dependent aspect of the frames within each video and predicts how likely it is that a new video contains a car accident.
The app is made using Kotlin language. Various features are being added in the app such as alert system for an accident, sensors, etc. Try implementing this project and suggest changes:)
Feature | Description | Status |
---|---|---|
Predict accident | Predict accident prone areas using ML model | ✔ |
Home Screen | Show User's location, SOS button, Show emergency contacts | ❌ |
Before you begin, make sure you have the Android Studio SDK
downloaded and set up correctly. You can find a guide here: Setting up Android Studio
Download the Care4ther- project source either by forking and cloning the repository (recommended if you want to contribute) or by downloading it as a ZIP file and extracting it.
Open Android Studio, you will see a Welcome to Android window. Under Quick Start, select Import Project (Eclipse ADT, Gradle, etc.)
Navigate to the directory where you saved the Care4ther- project, select the "Care4ther-/Care4therApp" folder, and hit OK. Android Studio should now begin building the project with Gradle
.
Once this process is complete and Android Studio opens, check the Console for any build errors.
Once all build errors have been resolved, you should be all set to build the app and test it.
To Build the app, go to Build>Make Project (or alternatively press the Make Project icon in the toolbar).
After the app is built successfully, you can test it by running it on either a real device or an emulator by going to Run>Run 'app' or pressing the Run icon in the toolbar.
If you want to build apk only, go to Build>Build apk and apk would be build and directory where apk is generated would be prompted by Android Studio.
Please help us follow the best practices to make it easy for the reviewer as well as the contributor. We want to focus more on the quality of code than on managing pull request ethics.
Fixed #<issue number> <commit message>
git squash
?As a tip for new developers those who struggle with squashing commits into one, multiple commits may appear in your pull request mostly due to following reasons.
git add
ing.You can also follow this easy and helpful tutorial: How to squash commits Despite any reason, follow the steps given below to squash all commits into one adhering to our best practices.
$ git remote add upstream https://github.com/unnati914/Care4ther-.git
$ git checkout <branch-name>
$ git reset --soft upstream/main
$ git add <file paths or "." to add everything>
$ git commit -m "tag: commit message"
$ git push -f origin <branch-name>
Please try to follow the mentioned guidelines before submitting your code so that uniform code style is maintained in the project. It also makes it easier for the reviewer and other developers to understand.
activity_main.xml
, fragment_user_location.xml
.UserLocationActivity.java
corresponding to the layout file activity_user_location.xml
, UserLocationFragment.java
corresponding to the layout file fragment_user_location.xml
.button_save
, editText_user_location
.CCTV Camera pictures of accidents are being included.
Unnati Chhabra 👑 Admin |
|
This project follows the MIT License.
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.