One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
import tensorflow as tf | |
physical_devices = tf.config.list_physical_devices('GPU') | |
tf.config.experimental.set_memory_growth(physical_devices[0], enable=True) | |
import numpy as np | |
import matplotlib.pyplot as plt | |
#import tensorflow as tf | |
import math | |
PI=math.pi |
<%- include("partials/header") %> | |
<!-- <script src="sketch.js"></script>--> | |
<video id="video" playsinline autoplay></video> | |
<button id="snap">Capture</button> | |
<canvas id="canvas" width="640" height="480"></canvas> | |
<form class="form" id="myForm"> | |
<input type="file" id=inpFile name="file"><br> | |
<button type="submit">Upload File</button> |
Cup[] cup= new Cup[3]; | |
int guess; | |
void setup() | |
{ | |
size(400,300); | |
for (int i=0; i<3; i++) { | |
cup[i] =new Cup(100+i*100, 100); | |
} |
PVector[] cup =new PVector[3]; | |
PVector[] cupV =new PVector[3]; | |
int guess; | |
void setup() | |
{ | |
size(400,300); | |
for (int i=0; i<3; i++) { | |
cup[i]=new PVector(100+i*100, 100); | |
cupV[i]=new PVector( random(4), random(3)); |
PImage imgMap; | |
void setup() | |
{ | |
size(360,360); | |
imgMap=loadImage("map.png"); | |
imgMap.loadPixels(); | |
} | |
void draw() | |
{ |
PImage star; | |
PImage star2; | |
PImage[] img = new PImage[3]; | |
PImage[] thunder = new PImage[3]; | |
int[] thunderDir = new int[10]; | |
float[] thunderX=new float[10]; | |
float[] thunderY=new float[10]; | |
int now=0; | |
int thunderN=0; |
PVector[] bullet=new PVector[100]; | |
PVector[] bulletV=new PVector[100]; | |
int[] value = new int[100]; | |
void setup() | |
{ | |
size(500,500); | |
for (int i=0; i<100; i++) { | |
bullet[i] = new PVector( random(500), random(500)); | |
bulletV[i] = new PVector( random(4)-2, random(4)-2); |
PVector user, userV; | |
void setup() | |
{ | |
size(400,400); | |
user = new PVector(200,200); | |
userV = new PVector(1,1); | |
} | |
void draw() | |
{ |
PImage star; | |
PImage star2; | |
void setup() | |
{ | |
size(500,500); | |
star = loadImage("star.png"); | |
star2 = loadImage("star2.png"); | |
imageMode(CENTER); | |
} |