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.9.tar.gz
(3.3 kB
view details)
Built Distribution
File details
Details for the file optical_tracer-0.1.9.tar.gz
.
File metadata
- Download URL: optical_tracer-0.1.9.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc1cc246683f782a20ccbbfaecc3b5fb788a8a0ee4dc8fd241ad173b352b9846 |
|
MD5 | 67673b515663772a1ea512eac7952c2f |
|
BLAKE2b-256 | 775fec6837456049069210dc7264c0c21b3681bb6997b4e84c8016842203fe5a |
File details
Details for the file optical_tracer-0.1.9-py3-none-any.whl
.
File metadata
- Download URL: optical_tracer-0.1.9-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 | 6ab95cb53bd80a0c2c71fc8f9612c5372a14e64a5a4c7d06f23e0297be87c0a7 |
|
MD5 | cb32d8f96e87b3f9b2c45e62de50820b |
|
BLAKE2b-256 | 7b0201251ff58f7cd5d657fbafed3eaf41bbede933222f9259be7a05f6dd01dd |