<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Opencamera_takephoto.aspx.cs" Inherits="CheckSheet.checkinput.Opencamera_takephoto" %>

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <title>JavaScript Camera Capture</title>
   <script type="text/javascript" src="../Scripts/jquery-1.8.9.js"></script> 
   <script type="text/javascript" src="../Scripts/jquery-1.7.2.min.js"></script>
  <script src="../Scripts/sweetalert2.all.min.js"></script>
  <link rel="stylesheet" type="text/css" href="../css/sweetalert2.min.css"/> 

      <style>
  video  {
  width: 400px;
  height: 400px;
  background: rgba(0,0,0,0.2);
  -webkit-transform: scaleX(-1); /* mirror effect while using front cam */
  transform: scaleX(-1);         /* mirror effect while using front cam */
}

#canvas  {
  width: 400px;
  height: 400px;
  -webkit-transform: scaleX(-1); /* mirror effect while using front cam */
  transform: scaleX(-1);         /* mirror effect while using front cam */
}

button {
	 -webkit-appearance: none;
	 width: auto;
	 min-width: 100px;
	 border-radius: 24px;
	 text-align: center;
	 padding: 15px 40px;
	 margin-top: 5px;
	 background-color: #b08bf8;
	 color: #fff;
	 font-size: 14px;
	 margin-left: auto;
	 font-weight: 500;
	 box-shadow: 0px 2px 6px -1px rgba(0, 0, 0, .13);
	 border: none;
	 transition: all 0.3s ease;
	 outline: 0;
     cursor:pointer;
}
 button:hover {
	 transform: translateY(-3px);
	 box-shadow: 0 2px 6px -1px rgba(182, 157, 230, .65);
}
 button:hover:active {
	 transform: scale(0.99);
}

    </style>
</head>

<body>

    <div class="container p-5" align="center">
  <div class="">
    
    <video id="camera-stream" class="border border-5 border-danger"></video>
  </div>
  <div class="">
    <button disabled id="flip-btn" class="btn btn-sm btn-warning">
      Flip Camera
    </button>
    <button id="capture-camera" class="btn btn-sm btn-primary">
   
      Take photo
    </button>
  </div>
             <br />
  <div class="mt-3">
    <b>Output:</b>
    <br>
    <canvas id="canvas" class="bg-light shadow border border-5 border-success">
    </canvas>
  </div>
</div>


 
    
  <script src="../Scripts/takephoto1.js?v=1"></script>
</body>
 
</html>
