private static Pair findTextEdge(BufferedImage capture){
		
		int left = 0;
		int right = 0;
		int mid = capture.getHeight()/2;
		
		for(int i = 0; i < capture.getWidth(); i++){ //from left to right
			
			int rgb = capture.getRGB(i, mid);
			float[] hsb = Color.RGBtoHSB((rgb >> 16 & 0xFF), (rgb >> 8 & 0xFF), (rgb & 0xFF), null);
			if(hsb[2] > .80 && hsb[1] < .20) { //look for white pixels
				left = i;
				break;
			}
			
		}
		
		left -= 10;
		
		for(int i = capture.getWidth() - 1; i >= 0; i--){ //right to left
			
			int rgb = capture.getRGB(i, mid);
			float[] hsb = Color.RGBtoHSB((rgb >> 16 & 0xFF), (rgb >> 8 & 0xFF), (rgb & 0xFF), null);
			if(hsb[2] > .80 && hsb[1] < .20) {
				right = i;
				break;
			}
			
		}
		
		right = capture.getWidth() - right;
		
		right -= 10;
		
		//idk lazy way to prevent errors
		if(left < 0) left = 0;  
		if(right < 0) right = 0;
			
		return new Pair(left, right);
		
	}