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.

image

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: optical_tracer-0.1.7.tar.gz
  • Upload date:
  • Size: 3.4 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.7.tar.gz
Algorithm Hash digest
SHA256 9c4441a2d09e747c1b907a57c52309310a94d04ffdd49f6b363efe470491c113
MD5 d85025d9a29e2b49f9038809824181dc
BLAKE2b-256 941458bb12a5019d1eed144b685a1743d4b246c8f24f4ae4a1ed5c535441e482

See more details on using hashes here.

File details

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

File metadata

  • Download URL: optical_tracer-0.1.7-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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 690c16ae91148231a270f7b87226693251d7c89689da473c6cd85c55cd579708
MD5 06d4fff61b91c41e9e3e74bd54bc96be
BLAKE2b-256 337701ffa42624fbde3fbf636816df00604a22cc33568c26347cb12aa7fe5f1b

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