Skip to content

Instantly share code, notes, and snippets.

{
"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"},
# 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 {

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 July 24, 2018 18:45
place in AIY-projects-python/src/aiy/vision/models/
# 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 July 24, 2018 18:24
main python in AIY-projects-python/src/examples/vision/
#!/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 July 24, 2018 18:12
Convert coco_trained_ssh_mobilenet_net.pb to binary proto
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
judith
oscar
pattie
#!/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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.UI;
namespace ChartAndGraph
{
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;