Skip to content

Instantly share code, notes, and snippets.

View akshayvernekar's full-sized avatar
🔌
Embedded linux developer, into IOT and stuff!

hungryspider akshayvernekar

🔌
Embedded linux developer, into IOT and stuff!
View GitHub Profile
Step1 : Download latest stable version of buildroot from : https://buildroot.org/downloads/
$ wget https://buildroot.org/downloads/buildroot-2016.02.tar.bz2
$ tar xvjf buildroot-2016.02.tar.bz2
$ cd buildroot-2016.02
Step2 : Check the list of default def configs for your board.
$ make list-defconfigs
$ make raspberrypi_defconfig
// fetches the input buffer of the interperter where we fill our input data
interpreter->input(0)
// Invoking the function to run the model in the input data
interpreter->Invoke()
// Fetch the outcome of inference using the output buffer
interpreter->output(0)
// Build an interpreter to run the model with.
static tflite::MicroInterpreter static_interpreter(
model, micro_op_resolver, tensor_arena, kTensorArenaSize, error_reporter);
interpreter = &static_interpreter;
// Allocate memory from the tensor_arena for the model's tensors.
TfLiteStatus allocate_status = interpreter->AllocateTensors();
converter = tf.lite.TFLiteConverter.from_saved_model(export_dir)
converter.optimizations = [tf.lite.Optimize.DEFAULT]
converter.representative_dataset = tf.lite.RepresentativeDataset(representative_data_gen)
tflite_model = converter.convert()
model = tf.keras.Sequential([
tf.keras.layers.Conv2D(6, 3, activation='relu', input_shape=(IMG_SIZE, IMG_SIZE, 1)),
tf.keras.layers.MaxPooling2D(),
tf.keras.layers.Conv2D(6, 3, activation='relu'),
tf.keras.layers.Flatten(),
tf.keras.layers.Dense(10, activation='softmax')
])
model.compile(
loss=tf.keras.losses.SparseCategoricalCrossentropy(from_logits=True),
#include <stdlib.h>
#include <stdbool.h>
#include <esp_system.h>
#include <esp_http_client.h>
#include <string.h>
#include <base64.h>
#include "esp_log.h"
#include "cJSON.h"
static const char* PICTURE_ENDPOINT_URL2 ="<<SERVER URL>>";
Lemma appreciates your visit to our websites and mobile applications and also your interest in our product.
1. We respects your private sphere
The protection of your private sphere during the processing of image is a major concern for us that we take into consideration in our business processes. Data is transported with a secure channel .We process important data during detection but doesnt store it. We understand confidentially of your data and legal directives.
2.We use following permission in order to give best result.
Storage :
STORAGE READ_EXTERNAL_STORAGE
WRITE_EXTERNAL_STORAGE
@akshayvernekar
akshayvernekar / Sync gh-pages + master branches
Created May 3, 2019 09:33 — forked from mandiwise/Sync gh-pages + master branches
Keep gh-pages up to date with a master branch
// Reference: http://lea.verou.me/2011/10/easily-keep-gh-pages-in-sync-with-master/
$ git add .
$ git status // to see what changes are going to be commited
$ git commit -m 'Some descriptive commit message'
$ git push origin master
$ git checkout gh-pages // go to the gh-pages branch
$ git rebase master // bring gh-pages up to date with master
$ git push origin gh-pages // commit the changes
Fit Spider Privacy Policy
Last updated: 16 May 2017
Akshay Vernekar operates the Fit Spider skill for the Amazon Alexa devices . This page informs you of our policies regarding the collection, use and disclosure of Personal Information we receive from users of the Skill.
We use your Personal Information only for providing and improving the Skill. By using the Skill, you agree to the collection and use of information in accordance with this policy.
Information Collection And Use:
While using our Skill, we may ask you to provide us with certain personally identifiable information that can be used to contact or identify you. Personally identifiable information may include, but is not limited to your name, your Strava.com access token ("Personal Information").
=> Send SSL data, 0000000005 bytes (0x00000005)
0000: .....
=> Send SSL data, 0000000253 bytes (0x000000fd)
0000: ......X...(q..,..LX...`&..6O-....@..).....0.,.(.$.............k.
0040: j.i.h.9.8.7.6.2...*.&.......=.5./.+.'.#.............g.@.?.>.3.2.
0080: 1.0.1.-.).%.......<./.......................P...................
00c0: ........................ ................................3t..
<= Recv SSL data, 0000000005 bytes (0x00000005)
0000: .....
<= Recv SSL data, 0000000081 bytes (0x00000051)