Skip to content

Instantly share code, notes, and snippets.

package com.nanonets.app;
import java.io.File;
import java.io.IOException;
import java.util.Base64;
import okhttp3.MediaType;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import requests
import cv2
import json
url = 'https://app.nanonets.com/api/v2/ObjectDetection/Model/REPLACE_MODEL_ID/LabelFile/'
#-----GET CAMERA FEED----
cap = cv2.VideoCapture(0)
@rushabhnagda11
rushabhnagda11 / index.html
Created February 28, 2019 08:09
Round 2 - Nike Product Page
<div class="cpc-viewport" data-bind="style: {display: 'block'}">
<div class="cpc-table-cell">
<div class="cpc-table-align">
<main role="main" class="cpc-main">
<div data-bind="attr: {class: data.currentShoeOption().className + ' cpc-product-imgs'}">
<!-- <div class="cpc-nike-tick">
<svg version="1.1" id="Layer_1" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-721.4 867.1 196 69.9" style="enable-background:new -721.4 867.1 196 69.9;" xml:space="preserve">
<path d="M-699.8,937c-5.8-0.2-10.6-1.8-14.4-4.8c-0.7-0.6-2.4-2.3-3-3c-1.5-1.9-2.5-3.8-3.2-5.8c-2.1-6.3-1-14.6,3.1-23.8
c3.5-7.8,9-15.5,18.5-26.3c1.4-1.6,5.6-6.2,5.6-6.2c0,0-0.2,0.4-0.5,0.9c-2.5,4.2-4.6,9-5.8,13.3c-1.9,6.8-1.6,12.6,0.7,17.2
c1.6,3.1,4.3,5.8,7.3,7.3c5.3,2.6,13.1,2.8,22.7,0.6c0.7-0.2,33.2-8.8,72.2-19.2c39.1-10.4,71-18.9,71.1-18.9