From Image of a curve/graph, extract and store the cordinates pairs in a 2D array
Project description
See the logic and an example implementation on my github
https://github.com/kumarUjjawal3621/mypython_lib
How to use:
-
import graph_cordinates.graph_cordinates as gc
-
gc.get_graphcordinates(image_path,x_range,y_range,background_value)
-
Will return an array of 2D cordinates: [[x1,y1], [x2,y2], .......n-points] ; n=pixel width of Image
How to pass arguments-
-
image_path == path to a graph image
-
x_range == [Value of left most point on graph's x-axis, Value of right most point on graph's x-axis]
-
y_range == [Value of bottom most point on graph's y-axis, Value of top most point on graph's y-axis]
-
background_value == 0 or 1
0: When the graph's background color is relatively darker than the curve
1: Otherwise)
Caution- Try to pass the Image by erasing the axes
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
Built Distribution
File details
Details for the file graph_cordinates-0.0.4.tar.gz
.
File metadata
- Download URL: graph_cordinates-0.0.4.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04b9c999c9cd94adac7d750775df63d65a966405c6a17b33cebec51ad198cd51 |
|
MD5 | 309ad096af4b85e9b537ba2779e3c6bc |
|
BLAKE2b-256 | d4fd4aa494998146abce42596e24cf3e8920f91cfeaa29387c7a348e52c71929 |
File details
Details for the file graph_cordinates-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: graph_cordinates-0.0.4-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6350f3547c5e5597d2f45d3e34af3eafff2874ebd0c9d8251070217ce5cb2d5 |
|
MD5 | 672785941ac557745855c70df1a62f14 |
|
BLAKE2b-256 | 31e6f0e1ecbbcb8ebc9637b42531e64bd284c24201523c4fade2d80f707b73f3 |