From Image of a curve/graph, extract and store the cordinates pairs in a 2D array, Github link (https://github.com/kumarUjjawal3621/mypython_lib)
Project description
Library-
- graph_cordinates.graph_cordinates.get_graphcordinates(image_path,x_range,y_range,background_value)
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] 3.y_range ==[Value of bottom most point on graph's y-axis, Value of top most point on graph's y-axis] 4.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
Return value- Will return a numpy array of structure- array = [[x1,y1], [x2,y2], .......n-points] ; n=pixel width of Image
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
graph_cordinates-0.0.1.tar.gz
(2.2 kB
view hashes)
Built Distribution
Close
Hashes for graph_cordinates-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5fd8f7867dbd58c8571d5d97058d0966ab87d017d0c6423e4d78984412d0848 |
|
MD5 | 634248d07595ce47e5ea74dc16c665fb |
|
BLAKE2b-256 | 59fc745457a169ccdf4767d97748fb398dc799180528a2146f159d7cf5b06f7a |