Code Monkey home page Code Monkey logo

analog-watch-recognition's Introduction

Demo

demo.mp4

models used:

  • bbox detector for finding clock face in the image
  • classifier for clock orientation estimation
  • keypoint detection for center and top
  • semantic segmentation for finding clock hands
  • KDE for splitting the binary segmentation mask into individual clock hands

Watch crop with center and top keypoint

Alt text

Detected mask of watch hands

Alt text

KDE of pixel angles

Alt text

Fitted lines to segmented pixels

Alt text

Final selected and rejected lines

Alt text

Metrics

Path val.1-min_acc val.10-min_acc val.60-min_acc
metrics/end_2_end_summary.json 0.224 0.345 0.414
Path
Path
Path eval.iou_score eval.loss step train.iou_score train.loss
metrics/segmentation.json 0.585 0.262 149 0.851 0.081

Graph

flowchart TD
	node1["datasets/watch-faces.json.dvc"]
	node2["download-images"]
	node3["eval-detector"]
	node4["eval-end-2-end"]
	node5["eval-keypoint"]
	node6["eval-segmentation"]
	node7["export-detector"]
	node8["generate-detection-dataset"]
	node9["generate-watch-hands-dataset"]
	node10["train-detector"]
	node11["train-keypoint"]
	node12["train-segmentation"]
	node13["update-metrics"]
	node1-->node2
	node2-->node3
	node2-->node4
	node2-->node8
	node2-->node9
	node2-->node11
	node2-->node12
	node3-->node13
	node4-->node13
	node5-->node13
	node7-->node3
	node8-->node7
	node8-->node10
	node10-->node4
	node10-->node5
	node10-->node6
	node10-->node7
	node11-->node4
	node11-->node5
	node11-->node13
	node12-->node4
	node12-->node6
	node12-->node13
	node14["example_data/IMG_1200_720p.mov.dvc"]
	node15["render-demo"]
	node14-->node15
	node16["checkpoints/segmentation.dvc"]
	node17["checkpoints/detector.dvc"]
	node18["checkpoints/keypoint.dvc"]

Installation

Install watch_recognition module, run pip in the main repository dir

pip install watch_recognition/

Tested on Python 3.7 and 3.8

Running models

Checkout example notebook: notebooks/demo-on-examples.ipynb

Models description

TODO

analog-watch-recognition's People

Contributors

akucia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

analog-watch-recognition's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.