Comments (14)
Yes (0,0)
is origin where both axes intersect.
For example, if we are going to click on points (0,0), (10,0) and (0,1). Use the following command.
./plotdigitizer.py -i image.png -p 0,0 -p 10,0 -p 0,1
If problem persists, please upload the original image as results (or send over via email). Thanks for your interest in this project; it will give me some motivation to polish it up.
from plotdigitizer.
thanks for your reply.
I am using your trimmed.png
image.
my problem is that I dont know where do I click for those 3 points
. when I run this command :
./plotdigitizer.py -i ./figures/trimmed.png -p 0,0 -p 10,0 -p 0,1
a window pop up that show image and wnat to click on(0,0)
point. I click in the origin of graph
. Is this correct?
then asks to click on (10,0)
(second point). where do I click in the graph
?
also for 3th point
.
in the next command you mentioned that we can use this command if we know the locations
of those points.
./plotdigitizer.py -i ./figures/trimmed.png -p 0,0 -p 10,0 -p 0,1 -l 10,10 -l 200,20 -l 10,27
How you get locations
? 10,10
-l 200,20
-l 10,27
what is the differece between positions
and locations
?
excuse me
from plotdigitizer.
I see. I am sorry I didn't read your issue carefully. Sorry for confusing documentation, I should have asked a friend to review it.
I am working on a simple GUI which should resolve this issue. Meanwhile, following should help with locations of points.
The red arrows tip are the points as mentioned in the arrow labels.
In the next command you mentioned that we can use this command if we know the locations of those points.
Sorry about this. By location, I mean the location of point in pixels. For example, if you open the above image in a image viewer and hover your mouse around (0,0) (point here), somewhere in your image-viewer, you can get the pixels values (location). These terminology are confusing. Here is a screenshot which explain it.
I open the image in GIMP and hover my mouse at point (0,0). At the left bottom, you will see location of this point as (149,366)
. By -l
, I meant this location.
from plotdigitizer.
thanks a lot. first of all, I thanks to your patience.
I cloned this repository, and I want to repeat your example. I opened trimmed.png
on paint
(Win
image editor) and get these locations (0,0) --> 22,294
, (10,0) --> 82, 294
, (0,1) --> 22,219
for those points.
Anyway, when I run this command
python plotdigitizer.py -i ./figures/trimmed.png -p 0,0 -p 10,0 -p 0,1 -l 10,10 -l 200,20 -l 10,27
on your trimmed.png
image, I get this output : https://ibb.co/6wkVzrc
from plotdigitizer.
I think the locations of points are not correct because the (0,0)
and (10,0)
points must have same y
value(axis) but it is 10
for (0,0)
and 20
for (10,0)
. do you know what i want to say?
from plotdigitizer.
Yes. I think I know. The geometrical axis and axis scheming used in various image viewing programs may not be same. For example, opencv (which I use in this app) uses different scheme: top-left rather than bottom left is (0,0) (see here https://stackoverflow.com/questions/25642532/opencv-pointx-y-represent-column-row-or-row-column) which may be different than paint. I can't be sure about this.
In next version, which will come with a simple GUI, I'll will remove the location altogether since it is confusing.
from plotdigitizer.
I think the locations of points are not correct because the
(0,0)
and(10,0)
points must have samey
value(axis) but it is10
for(0,0)
and20
for(10,0)
. do you know what i want to say?
is this correct? it is other than coordinate difference. Actually I need script than Gui. bercause I have some other processing after that.
Thanks.
from plotdigitizer.
Anyway, when I run this command
python plotdigitizer.py -i ./figures/trimmed.png -p 0,0 -p 10,0 -p 0,1 -l 10,10 -l 200,20 -l 10,27
on yourtrimmed.png
image, I get this output : https://ibb.co/6wkVzrc
This is a bug. Fixing it right now.
from plotdigitizer.
I've just pushed changes to master branch which should fix this issue. The README.md is clearer now but still needs some work.
Check the Makefile
which has a test command which correct points and locations. Please reopen it again if there is any issue.
from plotdigitizer.
I am sorry,
my source image is : https://ibb.co/S0f20Fw
but i get this result : https://ibb.co/Lnn2mJc
what's the problem? Is it because of init point's selection?
from plotdigitizer.
from plotdigitizer.
Sure,Thank you so much.
I need to study the code in detail.
from plotdigitizer.
The color of trace is not uniform in un2.png file. I am adding a debug output below. The circles in the the plot shows the estimated points. As you can see there are quite a few missing values. If you have a thicker trace, it might work better.
That said, even this situation can be improved. I have to work on it a while.
from plotdigitizer.
thanks dear,
here is my original image: https://ibb.co/yncPwXh
I pre-process it. but about thicker trace: Do I binarizethat image so that convert grayscale to 0 and 255 intensities? Or dilate image?
from plotdigitizer.
Related Issues (13)
- Background of the image HOT 1
- UnicodeEncodeError: 'charmap' codec can't encode character '\u2192'
- Dark background not allowed HOT 1
- Can run application from PowerShell HOT 3
- This plotdigitizer cannot work in some images
- Log plots & Axis Grids HOT 1
- A GIF to explain the tool
- Support for traces with non-uniform colors
- CICD: Fix the travis deployment HOT 3
- logger doesn't support utf-8, resulting in error in Windows Command Promp HOT 1
- No module name cv2 HOT 1
- transparent img HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plotdigitizer.