Skip to main content

Show canny on any part of the screen. Better to use with video

Project description

# Real Time Video Reader This project aims to read the video from the computer screen and process it using the Canny edges to detect lines.

Allows to adjust the parameters of the Canny detection in real time through slide vars.

It is advisable to have 2 monitors (one being captured real time and another that is showing the canny edges)

When not having 2 monitors reduce the captured screen so the capture and The canny fit in one screen.

## Usage of the package Start playing some video and then choose one of the options below. For example if you want to work on traffic detection / signal detection you can use: https://www.youtube.com/watch?v=KmntziBBTrg

### You don’t know the region to capture

from cannyfier import get_capture_coords from cannyfier import Cannyfier

# This will create a window called InitWindow. # 1. Move the window out of the view of the screen part you want to capture. # 2. Click + Drag and Release in the window created to define the capture # box. # 3. You can re-define the box by click again + drag and realease # 4. Once satisfied with the capture box press q ix, fx, iy, fy = get_capture_coords()

# 5. This part will be executed then. The capture window will be displayed # with an smaller window with 2 slide bars # 6. Move both windows out of the view of the capture box # 7. Adjust the sliders to your taste of cannyfier # 8. To finish the cannyfier press also q my_cann = Cannyfier(ix, iy, fx, fy)

# System will report you: # 1. The region being captured (left, top, right bottom) # 2. The average frames per second captured during the cannyfier process

### You know the region to capture (x, y, x, y)

from cannyfier import Cannyfier

# Capture window will be displayed with an smaller window with 2 slide bars # 1. Move both windows out of the view of the capture box # 2. Adjust the sliders to your taste of cannyfier # 3. To finish the cannyfier press also q my_cann = Cannyfier(ix, iy, fx, fy)

# System will report you: # 1. The region being captured (left, top, right bottom) # 2. The average frames per second captured during the cannyfier process

## Remarks Press q to exit the program**<br> **To define the box start always left top and end right bottom

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cannyfier-0.2.10.tar.gz (4.5 kB view details)

Uploaded Source

File details

Details for the file cannyfier-0.2.10.tar.gz.

File metadata

  • Download URL: cannyfier-0.2.10.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/3.7.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.3

File hashes

Hashes for cannyfier-0.2.10.tar.gz
Algorithm Hash digest
SHA256 554292a7b279b42a2fa77fbf83e48e5f1608002d034abcade20cea42b356fc8b
MD5 bdd0ee50ef0f86ed1e7c7c4d8f5603bb
BLAKE2b-256 e52e34853f2f48f0a489c952b0c135b1d96845affa2e9f4d3056d1b48db8591e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page