Skip to content

Instantly share code, notes, and snippets.

View PonDad's full-sized avatar

PonDad PonDad

View GitHub Profile
@PonDad
PonDad / wifi.coffee
Created April 3, 2016 06:46
hubot-scripts
# Description:
# Wifi定期接続
#
# Commands:
#
cronJob = require('cron').CronJob
child_process = require('child_process')
module.exports = (robot) ->
new cronJob
cronTime: "*/10 * * * *"
@PonDad
PonDad / pokemon.json
Created July 28, 2016 13:38
ポケモンの英語→日本語翻訳用のjsonファイルです。
[
{
"ja": "フシギダネ",
"en": "Bulbasaur"
},
{
"ja": "フシギソウ",
"en": "Ivysaur"
},
{
@PonDad
PonDad / app.js
Created November 2, 2016 17:03
PonBot
var express = require("express");
var app = express();
var path = require("path");
var server = require('http').Server(app);
var io = require('socket.io')(server);
var fs = require('fs');
var request = require('request');
var five = require('johnny-five');
var exec = require('child_process').exec;
var OpenJTalk = require('openjtalk');
@PonDad
PonDad / app.js
Created November 23, 2016 15:20
PonBot - face recognition
var express = require("express");
var app = express();
var path = require("path");
var server = require('http').Server(app);
var io = require('socket.io')(server);
var fs = require('fs');
var request = require('request');
var five = require('johnny-five');
var exec = require('child_process').exec;
var OpenJTalk = require('openjtalk');
@PonDad
PonDad / imagenet_class_index.json
Created December 31, 2016 12:19
imagenetのラベルを日本語化するjsonです。
[
{
"num": "n01440764",
"en": "tench",
"ja": "テンチ"
},
{
"num": "n01443537",
"en": "goldfish",
"ja": "金魚"
@PonDad
PonDad / Licence.txt
Last active April 30, 2019 05:32
Raspberry Pi 深層学習で「赤りんご」と「青りんご」を見分ける(Keras・Open CV)
The MIT License (MIT)
@PonDad
PonDad / face_checker_cv_notalk.py
Last active January 24, 2018 02:09
Raspberry Pi 深層学習でリアルタイム顔認識(Keras・Open CV)
import face_keras as face
import sys, os
from keras.preprocessing.image import load_img, img_to_array
import numpy as np
import cv2
import time
cascade_path = "haarcascade_frontalface_alt.xml"
cascade = cv2.CascadeClassifier(cascade_path)
cam = cv2.VideoCapture(0)
@PonDad
PonDad / app.js
Created March 4, 2017 13:37
fastTextで音声入力をネガポジ判定する
var express = require('express');
var app = express();
var http = require('http').Server(app);
var io = require('socket.io')(http);
var exec = require('child_process').exec;
var five = require("johnny-five");
var board = new five.Board();
app.use(express.static('public'));
@PonDad
PonDad / PCA9685.py
Last active February 23, 2025 02:36
Raspberry Pi サーボモーターとOpen CVで物体追跡カメラ(Meanshift)
# https://github.com/adafruit/Adafruit_Python_PCA9685 を少し書き換えています
# Copyright (c) 2016 Adafruit Industries
# Author: Tony DiCola
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@PonDad
PonDad / PCA9685.py
Last active November 9, 2017 08:46
Raspberry Pi サーボモーターとOpen CVで顔追跡カメラ(Haar-like)
# Copyright (c) 2016 Adafruit Industries
# Author: Tony DiCola
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#