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 tonone
.
The range is specified by a list.[123,456]
- Used to specify the range to detect feature points.
- y_range
- Used to specify the range to detect feature points.
If the range of Y coordinate is not specified, it is set tonone
.
The range is specified by a list.[123,456]
- Used to specify the range to detect feature points.
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.8.tar.gz
(3.4 kB
view details)
Built Distribution
File details
Details for the file optical_tracer-0.1.8.tar.gz
.
File metadata
- Download URL: optical_tracer-0.1.8.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | b871b910ea16b2c62b923229f604b3544043e2d270fc47e315cb0f6e2e85ee1d |
|
MD5 | 2538516cac044caf919945154ae29c84 |
|
BLAKE2b-256 | c0d95cd1c9b7e20d34a924984536273309634677001f61eeab1d4056ed62efe1 |
File details
Details for the file optical_tracer-0.1.8-py3-none-any.whl
.
File metadata
- Download URL: optical_tracer-0.1.8-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 345e39c9aacc630e54ac2bccbaa00acfbc92a2166e28ab6df32bd456ede6fc0b |
|
MD5 | 05d8089d3202e0309a8a6222cd35225e |
|
BLAKE2b-256 | 233071b0735f167523cb2c9fd5705dc3202792053c46c133c1968d5d023dceb8 |