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 { 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 |
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 {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) { |
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
Show hidden characters
{ | |
"compileOnSave": false, | |
"compilerOptions": { | |
"baseUrl": "./", | |
"outDir": "./dist", | |
"sourceMap": true, | |
"declaration": false, | |
"module": "commonjs", | |
"moduleResolution": "node", | |
"emitDecoratorMetadata": true, |
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
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 <<' |
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 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") |
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
void main() { | |
// Type Integer | |
int a = 8; | |
print(a); | |
// Type String | |
String b = "some text"; | |
print(b); | |
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
void main() { | |
var a; // declaring varible // a = null | |
print(a); | |
a = 9; // initializing varible // a = 9 | |
print(a); | |
a = "Vivek"; // a = "Vivek" |
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
main(){ | |
print("something"); | |
} |
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
void main() { | |
print("こんにちは、ゴーリストのビベックです。"); | |
print("Hello World! Vivek here again :)"); | |
print("Let's learn Dart together!"); | |
} |
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
void main() { | |
print("こんにちは、ゴーリストのビベックです。"); | |
print("Hello World! Vivek here "); | |
} |