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

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.1.6.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

optical_tracer-0.1.6-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: optical_tracer-0.1.6.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.1.6.tar.gz
Algorithm Hash digest
SHA256 476fa02364b38fda7eec83437f320cec0e2d2eb89536a85879482f21739780dc
MD5 4027514c533568341d654adcb6233aa3
BLAKE2b-256 7bc5373c5adb81181c9ca833f9e4dc705db24b9655e0c713603bb3827716eaa3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: optical_tracer-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 3.5 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.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 c66470264043b3c6537da6aa808f7a3a095e9a852288d0576bdf87ab3f1be750
MD5 e3c20208339357e3742c16f7696e8f92
BLAKE2b-256 d9b7d4d4c2c576b84dc86f96bcfbb83b4c9f1c2b3ab090c140d6535f1b403a4e

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