This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import pylab | |
import cv2 | |
from keras import backend as K | |
from keras.layers.convolutional import Conv2D, MaxPooling2D | |
from keras.layers import Input, Dense, Activation, Reshape, Lambda, Dropout | |
from keras.layers.merge import add, concatenate | |
from keras.layers.recurrent import GRU | |
from keras.models import Model | |
from keras.optimizers import SGD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# predict number | |
X = cv2.imread('test1.jpg') | |
X = X.transpose(1, 0, 2).reshape(1,70,30,3) | |
y_pred = base_model.predict(X) | |
y_pred = y_pred[:,2:,:] | |
out = K.get_value(K.ctc_decode(y_pred, input_length=np.ones(y_pred.shape[0])*y_pred.shape[1], )[0][0])[:, :7] | |
out = ''.join([chars[x] for x in out[0]]) | |
print(out) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> | |
<!-- Homepage Leaderboard --> | |
<ins class="adsbygoogle" | |
style="display:inline-block;width:728px;height:90px" | |
data-ad-client="ca-pub-1234567890123456" | |
data-ad-slot="1234567890"> | |
</ins> | |
<script> | |
(adsbygoogle = window.adsbygoogle || []).push({}); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%% Updated on Jun., 2017 ------------------------------------------------ | |
% Copyright by Jarvus Chen. All Rights Reserved. | |
% www.jarvus.net | |
%% Read and Plot --------------------------------------------------------- | |
clear | |
clc | |
close all | |
% read audio file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/************************************************************** | |
25, Jun., 2017 | |
Copyright by Jarvus Chen. All Rights Reserved. | |
www.jarvus.net | |
************************************************************** */ | |
void setup() { | |
Serial.begin(9600); | |
Serial.println("Start"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SPI.h> | |
#include <SD.h> | |
#include <SD_t3.h> | |
#include <SerialFlash.h> | |
#include <Audio.h> | |
#include <Wire.h> | |
//write wav | |
unsigned long ChunkSize = 0L; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <WiFi.h> | |
#include <WiFiClient.h> | |
char ssid[] = "JarvusChen"; // your network SSID (name) | |
char pass[] = "wwwjarvusnet"; // your network password | |
int status = WL_IDLE_STATUS; // the Wifi radio's status | |
// Initialize the Wifi client library | |
WiFiClient client; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'firebaseLib.php'; | |
// --- This is your Firebase URL | |
$url = 'https://jarvus.firebaseio.com/'; | |
// --- Use your token from Firebase here | |
$token = 'h1aX4FcGVsU5Ix81dG6qgmUQ7eeBRuati7Fzs8yt'; | |
// --- Here is your parameter from the http GET | |
// --- you can add whatever you want | |
$data1 = $_GET['data1']; | |
$data2 = $_GET['data2']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Firebase PHP Client Library | |
* | |
* @author Tamas Kalman <ktamas77@gmail.com> | |
* @link https://www.firebase.com/docs/rest-api.html | |
* | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
function checkFunc(){ | |
var f = document.form.check; | |
var b = document.form.YourName; | |
if (b.value == ""){ | |
alert("請填寫姓名") | |
return false; | |
} | |
if (f.checked){ |