How do I find my webcam's DPI ?

  • Thread starter btb4198
  • Start date
In summary: If you put a small rule next to it that you know is measured in mm, fine, but if you are expecting the camera to tell the physical size of an object photographed, forget it.
  • #1
btb4198
572
10
TL;DR Summary
How do I find my webcam's pdi ? Is there a way to do this in C# ?
How do I find my webcam's DPI ? Is there a way to do this in C# ?
 
Last edited:
Computer science news on Phys.org
  • #2
What's a pdi? My Google-fu is failing me...
 
  • #3
berkeman said:
What's a pdi? My Google-fu is failing me...

DPI stands for Dots Per Inch which technically means printer dots per inch.
 
  • #4
btb4198 said:
DPI stands for Dots Per Inch which technically means printer dots per inch.
Oh, LOL. No wonder Google couldn't figure it out either. DPI is a printer spec, not a camera spec. Just look for the resolution spec for your webcam. It will be ___ x ___ (fill in the number of pixels in x and y). :smile:
 
  • #5
For example, look up HD 1080p from this webcam datasheet...

1574037997625.png
 
  • #6
I need to convert pixel to Micrometre.
so I have a C# program that displays a live video using Aforge and I can draw a blue box inside the image and I can get the dimensions in pixel but I need them in Micrometre.

I read online that I need the dpi to convert it into mm then from there I can convert it into Micrometre.
 
  • #7
btb4198 said:
I need to convert pixel to Micrometre.
so I have a C# program that displays a live video using Aforge and I can draw a blue box inside the image and I can get the dimensions in pixel but I need them in Micrometre.

I read online that I need the dpi to convert it into mm then from there I can convert it into Micrometre.
That doesn't sound good enough. Think of a zoom lens. Having a constant number of pixels, the lens can zoom in or zoom out, covering very different areas.
 
  • #8
btb4198 said:
I need to convert pixel to Micrometre.
A meaningless task. You are trying to convert to a unit of distance something which is not a measure of distance.
 
  • Like
Likes berkeman
  • #9
phinds said:
A meaningless task. You are trying to convert to a unit of distance something which is not a measure of distance.
phinds can you explain what you mean by a meaningless task ?

I have a camera set up as a microscope to view something really small that is in the Micrometre scale.
if I draw a box around an area in the video player and convert it to Micrometres would that not give me the Exact dimensions on the object I am looking at.
 
  • #10
btb4198 said:
phinds can you explain what you mean by a meaningless task ?

I have a camera set up as a microscope to view something really small that is in the Micrometre scale.
if I draw a box around an area in the video player and convert it to Micrometres would that not give me the Exact dimensions on the object I am looking at.
So you are trying to use your camera to measure things in your microscope setup? It would have helped if you said that from the beginning, IMO.

Does your microscope's optics have a graticule option?
 
  • #11
berkeman said:
So you are trying to use your camera to measure things in your microscope setup? It would have helped if you said that from the beginning, IMO.

Does your microscope's optics have a graticule option?
What is a graticule option?
 
  • #12
btb4198 said:
phinds can you explain what you mean by a meaningless task ?

I have a camera set up as a microscope to view something really small that is in the Micrometre scale.
if I draw a box around an area in the video player and convert it to Micrometres would that not give me the Exact dimensions on the object I am looking at.
Convert WHAT to mm? Pixels in the video player? No way.

If you put a small rule next to it that you know is measured in mm, fine, but if you are expecting the camera to tell the physical size of an object photographed, forget it.

EDIT: you don't seem to be listening to what people are telling you. I will try to be more specific. Take a picture of the moon such that it fills half the image. Take a picture of a tiny bug through a microscope such that it fills up half of the image. Each will have the same number of pixels. Do you think they are therefor the same size?
 
  • #13
btb4198 said:
What is a graticule option?
Google Images search on microscope graticule... :smile:

1574043882711.png
 
  • Like
Likes phinds
  • #14
berkeman said:
Google Images search on microscope graticule... :smile:

View attachment 252971
no it does not have that.
would that help ?
 
  • #15
Yes. What model is your microscope?

Also, another option would be to get some slides for your microscope that have graticules on them. You can image the slide first, and then put your object under the microscope at the same magnification and image it. That will give you a ruler to measure your object by.
 
  • #16
phinds said:
Convert WHAT to mm? Pixels in the video player? No way.

If you put a small rule next to it that you know is measured in mm, fine, but if you are expecting the camera to tell the physical size of an object photographed, forget it.

EDIT: you don't seem to be listening to what people are telling you. I will try to be more specific. Take a picture of the moon such that it fills half the image. Take a picture of a tiny bug through a microscope such that it fills up half of the image. Each will have the same number of pixels. Do you think they are therefor the same size?
lol that makes complete sense. no they would not be the same size.
 
  • Like
Likes berkeman
  • #17
berkeman said:
Also, another option would be to get some slides for your microscope that have graticules on them. You can image the slide first, and then put your object under the microscope at the same magnification and image it. That will give you a ruler to measure your object by.
Like these:

1574045023614.png
 
  • #18
berkeman said:
Also, another option would be to get some slides for your microscope that have graticules on them. You can image the slide first, and then put your object under the microscope at the same magnification and image it. That will give you a ruler to measure your object by.
Yep. That is exactly what I do for wood micrographs with both my camera (up to 12X) and a cheap microscope (up to about 400X). You can see some of the results on my profile page
 
  • Informative
Likes berkeman
  • #19
berkeman said:
Yes. What model is your microscope?

Also, another option would be to get some slides for your microscope that have graticules on them. You can image the slide first, and then put your object under the microscope at the same magnification and image it. That will give you a ruler to measure your object by.
Hi thanks for all the help! so I do not know the information of the microscope, there are other people that are handling the Optical side of this project, so I will have them look into that.

but question, how do people get speed of a moving car from video cam?
 
  • #20
btb4198 said:
but question, how do people get speed of a moving car from video cam?
You aim your camera at the speedometer. Please do this hands-free, so you don't get into trouble with law enforcement...

1574046486692.png
 
  • Haha
Likes anorlunda
  • #21
lol that is funny
 
  • Like
Likes berkeman

Related to How do I find my webcam's DPI ?

1. What is DPI and why is it important for webcams?

DPI stands for dots per inch, and it refers to the resolution of an image. For webcams, DPI is important because it determines the level of detail and clarity in the images and videos captured by the webcam.

2. How do I determine the DPI of my webcam?

To determine the DPI of your webcam, you can check the specifications provided by the manufacturer or use a software program designed to measure DPI. You can also take a test photo or video with your webcam and check the resolution of the image or video file.

3. Can I change the DPI of my webcam?

The DPI of a webcam is usually fixed and cannot be changed. However, you may be able to adjust the resolution settings of your webcam to improve image quality.

4. Is higher DPI always better for a webcam?

Not necessarily. A higher DPI does not always guarantee better image quality. It depends on various factors such as the lighting conditions, lens quality, and sensor size of the webcam. It is important to find a balance between DPI and other factors to achieve the best image quality.

5. Are there any other factors besides DPI that affect the quality of a webcam?

Yes, besides DPI, factors such as the type of lens, sensor size, and lighting conditions also play a significant role in determining the quality of a webcam. It is important to consider all these factors when looking for a webcam with good image quality.

Similar threads

Replies
11
Views
990
  • Computing and Technology
Replies
12
Views
1K
  • Computing and Technology
Replies
5
Views
1K
  • Computing and Technology
Replies
3
Views
271
  • Computing and Technology
Replies
2
Views
1K
  • Astronomy and Astrophysics
Replies
18
Views
904
  • Electrical Engineering
Replies
6
Views
1K
  • Computing and Technology
Replies
16
Views
5K
  • Computing and Technology
Replies
3
Views
843
  • Astronomy and Astrophysics
Replies
26
Views
3K
Back
Top