Skip to content

Instantly share code, notes, and snippets.

View data.json
{
"apples": [
{ "region": "North", "count": "53245"},
{ "region": "South", "count": "28479"},
{ "region": "East", "count": "19697"},
{ "region": "West", "count": "24037"},
{ "region": "Central", "count": "40245"}
],
"oranges": [
{ "region": "North", "count": "200"},
View embedded_ssd_mobilenet_v1_coco.config
# Embedded SSD with Mobilenet v1 configuration for MSCOCO Dataset.
# Users should configure the fine_tune_checkpoint field in the train config as
# well as the label_map_path and input_path fields in the train_input_reader and
# eval_input_reader. Search for "PATH_TO_BE_CONFIGURED" to find the fields that
# should be configured.
model {
ssd {
num_classes: 20
box_coder {
View copy_to_pi.md

scp coco_object_detection_main.py pi@192.168.86.176:/home/pi/AIY-projects-python/src/examples/vision

scp coco_object_detection.py pi@192.168.86.176:/home/pi/AIY-projects-python/src/aiy/vision/models

scp voc_object_detection.binaryproto pi@192.168.86.176:/home/pi

scp image.jpg pi@192.168.86.176:/home/pi/AIY-projects-python/src/examples/vision

=====

@minakhan01
minakhan01 / coco_object_detection.py
Last active Jul 24, 2018
place in AIY-projects-python/src/aiy/vision/models/
View coco_object_detection.py
# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@minakhan01
minakhan01 / coco_object_detection.py
Last active Jul 24, 2018
main python in AIY-projects-python/src/examples/vision/
View coco_object_detection.py
#!/usr/bin/env python3
# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@minakhan01
minakhan01 / steps
Last active Jul 24, 2018
Convert coco_trained_ssh_mobilenet_net.pb to binary proto
View steps
Link to model:
https://github.com/minakhan01/VisionKitTry2/blob/master/ssd_mobilenet_v1_coco_2018_01_28/frozen_inference_graph.pb
./bonnet_model_compiler.par \
--frozen_graph_path=frozen_inference_graph.pb \
--output_graph_path=coco_object_detection.binaryproto \
--input_tensor_name="Preprocessor/sub" \
--output_tensor_names="concat,concat_1" \
--input_tensor_size=256
View mobilenet_based_classifier_custom.py
#!/usr/bin/env python3
# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
View GraphChart.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.UI;
namespace ChartAndGraph
{
View touch.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TouchInputManager : MonoBehaviour {
public enum TouchState {Stationary, Repositioning, Resizing, Rotating, Deleting};
public TouchState CurrentTouchState;
private float HoldTime = 5;
private float AccumulateTime = 0;
You can’t perform that action at this time.