Skip to main content

The system detects and tracks characteristic moving objects from the video, and traces their movement to create a 3D graph.

Project description

https://pypi.org/project/optical-tracer/0.1.9/

optical_tracer

It extracts feature points from the video and traces their movements in the video.
After the video is stopped, a 3D graph of those movements is generated with the X axis as the X coordinate, the Y axis as the Y coordinate, and the Z axis as the time.

PIP

$ pip3 install optical-tracer
$ pip3 install opencv-python
$ pip3 install matplotlib

import

from optical_trace import optical_trace

Usage

  • example
optical_trace.opt_trace("test_opt.mp4",4,0.6,25,[123,456],[789,1011])

There are six arguments available for this function.

optical_trace.opt_trace("movie_path",max_feature_points,threshold_value,minimum_distance,x_range,y_range)
  • movie_path
    • path of the video you want to use.
  • max_feature_points
    • maximum number of feature points that can be detected.
  • threshold_value
    • Threshold for careful selection of feature points. Higher the value, more selective the feature points.
  • threshold_value
    • Minimum distance between feature points. If they are closer than this value, the feature points are not detected.
  • x_range
    • Used to specify the range to detect feature points.
      If the range of X coordinate is not specified, it is set to none.
      The range is specified by a list. [123,456]
  • y_range
    • Used to specify the range to detect feature points.
      If the range of Y coordinate is not specified, it is set to none.
      The range is specified by a list. [123,456]

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

optical_tracer-0.2.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

optical_tracer-0.2.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file optical_tracer-0.2.0.tar.gz.

File metadata

  • Download URL: optical_tracer-0.2.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.3

File hashes

Hashes for optical_tracer-0.2.0.tar.gz
Algorithm Hash digest
SHA256 671b88733140dd4020654b3522147fb6ebf4fdc4e2845302040f431abea84518
MD5 2e38299521f8eb3883a18f9a8f566595
BLAKE2b-256 a2a66f788f3ff79ac5981719e3a35734d962146db2ffbcf27005903fb51c2586

See more details on using hashes here.

File details

Details for the file optical_tracer-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: optical_tracer-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.3

File hashes

Hashes for optical_tracer-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 84b7313b64274e7f7fa4d5a4ea7df2cdfdef5196621485975f0d1005e518d6cc
MD5 1697475d30e30893b7aea9d7ebad2a38
BLAKE2b-256 a0d58a265ff8d403c848419d0722bc9f0c5f2ff7c971a78f80d064acfd05d2f4

See more details on using hashes here.

Supported by

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