Skip to content

Instantly share code, notes, and snippets.

View vivek081166's full-sized avatar

Vivek Amilkanthawar vivek081166

  • Tokyo
View GitHub Profile
import { Component } from '@angular/core';
import { ElectronService } from 'ngx-electron';
import * as mobilenetModule from '@tensorflow-models/mobilenet';
import * as tf from '@tensorflow/tfjs';
import * as knnClassifier from '@tensorflow-models/knn-classifier';
// Number of classes to classify
const NUM_CLASSES = 3;
// Webcam Image size. Must be 227
import {app, BrowserWindow} from 'electron';
import * as path from 'path';
import * as url from 'url';
let win: BrowserWindow;
app.on('ready', createWindow);
app.on('activate', () => {
if (win === null) {
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist",
"sourceMap": true,
"declaration": false,
"module": "commonjs",
"moduleResolution": "node",
"emitDecoratorMetadata": true,
echo '>> START : Audio to Spectrogram creation <<'
for audioFile in ./audio_train/*.wav; do
echo $audioFile
ffmpeg -i $audioFile -lavfi showspectrumpic=s=1024x512:legend=disabled $audioFile.jpg
done
echo '>> END : Audio to Spectrogram creation <<'
# import the necessary packages
import numpy as np
import cv2
def order_points(pts):
# initialzie a list of coordinates that will be ordered
# such that the first entry in the list is the top-left,
# the second entry is the top-right, the third is the
# bottom-right, and the fourth is the bottom-left
rect = np.zeros((4, 2), dtype = "float32")
void main() {
var a; // declaring varible // a = null
print(a);
a = 9; // initializing varible // a = 9
print(a);
a = "Vivek"; // a = "Vivek"
void main() {
// Type Integer
int a = 8;
print(a);
// Type String
String b = "some text";
print(b);
main(){
print("something");
}
@vivek081166
vivek081166 / main.dart
Last active August 27, 2018 06:22
dart_blog
void main() {
print("こんにちは、ゴーリストのビベックです。");
print("Hello World! Vivek here ");
}
void main() {
print("こんにちは、ゴーリストのビベックです。");
print("Hello World! Vivek here again :)");
print("Let's learn Dart together!");
}