Skip to content

Instantly share code, notes, and snippets.

View ayyucedemirbas's full-sized avatar
😎
Feelin' Awesome

Ayyuce Demirbas ayyucedemirbas

😎
Feelin' Awesome
View GitHub Profile
@ayyucedemirbas
ayyucedemirbas / count_people.py
Created November 12, 2017 08:16
People counter
import argparse
import datetime
import imutils
import math
import cv2
import numpy as np
width = 800
textIn = 0
import cv2
import numpy as np
# Create a VideoCapture object and read from input file
# If the input is the camera, pass 0 instead of the video file name
cap = cv2.VideoCapture('video.mp4')
# Check if camera opened successfully
if (cap.isOpened()== False):
print("Error opening video stream or file")
import java.io.*;
import java.util.*;
public class java_notu {
public static void main(String[] args) throws FileNotFoundException{
File f= new File("/home/ayyuce/Desktop/java.txt");
Scanner sc= new Scanner(f);
String substr="", tmp="", str="";
int[] arr= new int[3];
int max= arr[0];
int i, index;
import java.io.*;
import java.util.*;
public class java_notu {
public static void main(String[] args) throws FileNotFoundException{
File f= new File("/home/ayyuce/Desktop/java.txt");
Scanner sc= new Scanner(f);
String substr="", tmp="", str="";
int[] arr= new int[3];
int max= 0;
import java.applet.*;
import java.awt.*;
public class cos extends Applet{
// author @ayyuce
// This program draws cos line
public void paint(Graphics g){
g.setColor(Color.BLUE);
g.drawLine(50, 300, 750, 300);
g.drawLine(400, 50, 400, 550);
g.drawLine(750, 300, 725, 325);
@ayyucedemirbas
ayyucedemirbas / anagram.java
Created September 20, 2018 11:48
Check for Anagram
package anagram;
import java.util.Arrays;
public class checkForAnagram {
public static boolean _checkForAnagram(String first, String second ) {
int size1= first.length(), size2=second.length(), count=0;
char[] f=new char[size1];
char[] s= new char[size2];
wget http://storage.googleapis.com/cloud-iot-edge-pretrained-models/edgetpu_api.tar.gz
tar xzf edgetpu_api.tar.gz
cd python-tflite-source
bash ./install.sh
Caution: During installation,
# Copyright 2019 Google LLC
#
# 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
#
# https://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,
# Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# 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,
# Copyright 2019 Google LLC
#
# 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
#
# https://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,