Skip to content
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

Add a TensorFlow.js model to do inference #43

Merged
merged 21 commits into from
Nov 1, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
95dce3c
Add packages mobilenet, tfjs, tfjs-node, and jpeg-js
mrbarbasa Oct 30, 2018
013637c
Add a MobileNet model that has been converted to TensorFlow.js Layers…
mrbarbasa Oct 30, 2018
248239a
Add an image of flowers
mrbarbasa Oct 30, 2018
6b29790
Add code to run TensorFlow.js and inference on the server
mrbarbasa Oct 30, 2018
c62369f
Enable JSON to be read on the server
mrbarbasa Oct 30, 2018
31cd440
Implement a working POST request
mrbarbasa Oct 30, 2018
bc30513
Add CORS middleware required for browser POST requests
mrbarbasa Oct 30, 2018
cdc025a
Add NSPhotoLibraryAddUsageDescription to Info.plist in config.xml
mrbarbasa Oct 31, 2018
1874eb7
Update aws-sdk, add body-parser, multer, and multer-s3 packages
mrbarbasa Oct 31, 2018
e72f31f
Change NSPhotoLibraryAddUsageDescription to NSPhotoLibraryUsageDescri…
mrbarbasa Oct 31, 2018
098a5b9
Add the cordova-plugin-file package for reading files from the assets…
mrbarbasa Oct 31, 2018
b04dead
Implement S3 image upload on the server
mrbarbasa Oct 31, 2018
9778223
Implement image upload on the client and temporarily disable eslint
mrbarbasa Oct 31, 2018
f0e256a
Fix the naming of the image file to reflect Date.now()
mrbarbasa Oct 31, 2018
b8e3788
Remove unnecessary file retrieval code
mrbarbasa Oct 31, 2018
ad92899
Re-enable eslint and clean up some code on the PlantDetection page
mrbarbasa Oct 31, 2018
5e53207
Display the image on the app
mrbarbasa Oct 31, 2018
8575259
Add arbitrary styling so the displayed image is not so large
mrbarbasa Oct 31, 2018
0beefe6
Change the app host to localhost for now
mrbarbasa Oct 31, 2018
bac10b1
Merge branch 'master' into feature/tensorflowjs
mrbarbasa Nov 1, 2018
b638ac5
Save the image to the database
mrbarbasa Nov 1, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions client/src-cordova/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,9 @@
<edit-config file="*-Info.plist" mode="merge" target="NSCameraUsageDescription">
<string>to identify native and invasive plants found in Hawaii</string>
</edit-config>
<edit-config file="*-Info.plist" mode="merge" target="NSPhotoLibraryUsageDescription">
<string>to identify native and invasive plants found in Hawaii</string>
</edit-config>
<plugin name="cordova-plugin-file" spec="6.0.1" />
<engine name="ios" spec="4.5.5" />
</widget>
151 changes: 137 additions & 14 deletions client/src-cordova/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion client/src-cordova/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@
"dependencies": {
"cordova-ios": "4.5.5",
"cordova-plugin-camera": "4.0.3",
"cordova-plugin-file": "6.0.1",
"cordova-plugin-whitelist": "1.3.3"
},
"cordova": {
"plugins": {
"cordova-plugin-whitelist": {},
"cordova-plugin-camera": {}
"cordova-plugin-camera": {},
"cordova-plugin-file": {}
},
"platforms": [
"ios"
Expand Down
Loading