Sprocket Registration

last post did have some same stuff as my first post sorry about that :slight_smile:

i capture to Tiff Y800 raw format and i use this GPU Debayer (https://www.fastcompression.com/products/debayer/debayer.htm) it´s command line Debayer but it´s the best quality debayer i have found

here you can see some Debayer algorithms https://www.fastcompression.com/products/debayer/debayer-moire.htm

heh did find clear material Detection hmm maby something


1 Like

Actually I mean that the film should glow, like fluorescent dye under a black light. Shouldn’t matter whether it’s black or clear, so I imagine for most of the time the UV LED would be on, while a glowing outline of the film (with black edges and sprocket holes) is seen by the sensor, then when the next frame reaches the exact position, the UV LED would switch off while a separate visible spectrum LED would flash for taking the actual frame image. Then repeat the process for each frame. Haven’t tested it myself though.

1 Like

Starting to look into different ways for transport/sprocket detection and came across this patent. https://patents.google.com/patent/DE102009032943B4/en
In the prior art, there are a few interesting methods for detecting including light reflection or light through (as the patent).
Was wondering if something like a capacitive or RF sensor would work. I have to confess I do not have the RF expertise to make something that small (looking to do it for Super 8 film). In any case, for frame-by-frame scanners, I think a good stepper driver like the TMC2208 with microsteps would provide the accuracy to eliminate the light sensor on the patent, and move the film off the stepper. Thoughts?

That’s really cool! It is convincing me to give up on the pinhole I’m using with my optical detector for a condenser lens in front of the laser :wink:

From elsewhere in the forum I remember seeing some versions of sprocket detection that worked by completing a circuit through the open sprocket hole, but that could potentially be disrupted by errant tape or defects in the sprocket hole.

How were you imagining an RF sensor setup might work? I don’t know how much film may attenuate RF or if it could have the spatial resolution to measure a sprocket hole, but I may not be imagining it right.

Imagining is a good way to describe it John. A caveat, I am looking for a method for frame by frame detection, so capacitive or rf detectors may have another degree of complexity if one is looking for scanning at real time film speed. Having said that, I think is worth looking at this with fresh ideas, and once these are well understood in the slow and forgiving frame-by-frame can be improved for faster moving film.
What I was imagining was using the film as a dielectric, and sensing the passing of the sprocket hole as the absence of the dielectric. One way (but I have the feeling it will be a slow sensor) may be capacitive sensing. My guess is the problem would be (for Super 8) that the sprocket hole is very small, limiting the surface that would change when film is not absence, and increasing the difficulty of detection. One can use the physical capacitor created by two very small plates on either side of the film to slightly vary the frequency of an oscillator and detect the changes in frequency as variations in film density. For larger film like 35 mm, the dimensions may actually work, I am concerned that for super 8 sprockets the variations will be hard to detect.
The RF ‘idea’ came from what walabot technology is doing for RF sensing… but RF is not my strong area of electronics.
I would think another alternative with laser would be measuring the reflection on the surface of the film, and detect the hole when the reflection is missing.

This is a great find! Thanks so much for posting. I’m passing it along to the engineers at Brooklyn Research. It may help us figure out a good solution for frame detection.



Let me add a little bit to the discussion by the following collection of sprocket holes I encountered in my work with the Super-8 format:

The left-most sprocket shows something which you encounter very often with old Super-8 material: dust. In this case, if you look closely, the dust accumulated around a splice - Super-8 movies were often spliced together with adhesive pads. However, even if you clean film before scanning, you will encounter sprocket holes which have some sort of dust accumulated. Right to this is a damaged sprocket. The sprocket itself is still clearly defined, but already somewhat larger than the norm. Moving further to the right, the next sprocket (from the same stock) is even more damaged. Clearly, a registration using only the upper edge of the sprocket would work, but the lower edge is certainly torn out and not usable. Both examples feature also another challenge: the film material surrounding the sprockets is nearly as transparent as the sprockets themselves. That makes it harder for optical based methods to detect the sprockets. The next sprocket example shows also a challenge one encounters with Super-8 stock. Most material has some more or less transparent imprints between the sprockets - this also is able to fool certain sprocket detection mechanisms. The last sprocket example shows another challenge I encountered: the film gate of the camera used is extending into the sprocket area. In the example given, the edge of the sprocket is still clearly defined. But if this part of the film frame becomes very bright or even overexposed, the boundary of the sprocket might visually “disappear”.

Maybe it is possible to collect some further examples of sprockets, preferably also from other formats, in order to develop a general approach? From my experience, I think some suitably tuned image processing algorithm might outperform any other means.

This is excellent. Brooklyn Research was just asking me for more examples of bad sprockets. I’ll pass this along!

… here’s another, rather usual example I encounter with Super-8 film. This is how this might have happened, typically: during projection, something happens, so film is torn apart. One or two of the damaged frames are cut off and the rest of the film is spliced together again with adhesive pads.

Here’s the raw frame, if needed:

These are definitely examples I see in my own films - knowing that the film stock would be transparent in certain areas around the sprocket holes I decided to angle the laser & detector pair instead of keeping them normal to the film path. This allows me to tune the sensitivity of the detector to fall within the range of the amount of light transmitted when no film is present (sprocket hole) and when transparent film is present and some light is reflected away (clear or picture area around the sprocket hole).

Has anyone experimented with optical flow sensors (aka mouse sensors)?
I started thinking about sensing the reflection of the film with a laser diode for picking the sprocket, basically where there is no film (sprocket hole) the laser will not bounce from the film, and it would not count. But then it came a couple of examples of using essentially a mouse as a linear sensor. Wonder if instead of the mouse assembly (sensor + led) one would use the (sensor + laser) to pick up the reflection on the film surface. Food for thought. Here is an example https://www.youtube.com/watch?v=CIRKRzw54Zs
Or for that matter using the sensor to accurately measure position from one of the rollers (similar to the patent above).

Wow I never thought of that! The video was really helpful. In it he mentions the “high contrast” of the material under the mouse. I wonder if it would work with film and how close it would need to be. It’s worth a try! I’ll pass this on to Brooklyn Research to throw into the mix of solutions we’re exploring.

Thanks for sharing!

@PM490 here’s what the contractor had to say. I agree with him (although I think you could probably mount the sensor at the gate without contacting the film directly). I would put this mouse idea in the “someone should definitely try it at some point” bucket for now while we move ahead with what we have more confidence in.

This is an interesting DIY approach, and something I would be interested in pursuing for future projects. However, there are a couple potential issues with this approach.

1.) Optical mice are calibrated to be on/touching a surface. If we are to track the movement of the film, we would either need to modify an optics and mounting of the sensor in order to work on the film directly, or we would need to have a secondary encoder that the optical sensor system would be reading. These aren’t deal breakers in and of themselves, but a potential challenge.

2.) The speed of sensor may not be calibrated for the speed of the film. While you do get a good deal of accuracy, it could be that when you are running at the full film speed you get errors in distance compounded over time. I’m only guessing this based on the video, and variable readings HomoFaciens is getting when changing the motor speed.

@matthewepler makes sense to not change while you are making PCBs. I was genuinely curious if this had been tested, I am certainly intrigued by the possibilities.
Please note that I have approached the DIY scanner sacrificing speed for quality (frame-by-frame), so I should have mentioned that the approach may not be suitable for high frame rates. But when looking at your video about making multiple exposures for the same frame, it would make sense that the target frame rate for the scanner would be slower than real time.
At this time, I have a harvested gate of an old 8/Super 8 projector, so I am improving other areas. Ultimately (if I continue to put time on it) the next step would be to replace the gate, and that’s why I am looking at other ways to achieve accuracy and quality. Also because I am terrible with mechanics, and the tolerances of 8mm are hard to handle with bad mechanics. So if you have a cheap sub mm sensor, there is a lot of things that can be done in the programming side, hence my curiosity on these kind of sensor and this sensor type would really make sense for the patent approach (but probably not for real-time scanning). Thanks for looking into it and appreciate the consultant good feedback.

I know there was a thread around here a while ago about how transmissive certain film stocks are in IR, but now I’m wondering if there’s data floating around about absorptive or reflective they are in IR (from either the front or back).

The old Imagica scanners don’t have a problem with clear film and they use sprocket sensors. The model they use is Keyence FS-T20, which is long since discontinued. But Keyence is still around, so I’m sure there’s a replacement out there. What’s nice about these is that they’re fine-tunable. You get feedback in the form of an LED meter that works like an audio meter. As you adjust the sensitivity, the lights light up or turn off, depending on the change you’re making. This lets you dial in a setting for the film. We tested it with neg and print and it worked great, even with clear leader.

Attached is the datasheet for the FS-T20.

FS-T20_SG_en-GB.pdf (467.6 KB)

1 Like

I contacted Keyence regarding the unit that would work best. As mentioned elsewhere in the forums, the recommended units are:

Sensor: FU-20
Amplifier: FS-N41P

Here is the quote I received from Keyence for those units. Together, the cost is $370 (minus whatever discount they throw at you. In my case, 15% for “prototyping”).

That’s a steep price. If we can get the same data from a reflective sensor at a fraction of the cost (our current plan), then I’ll gladly take that over this.

Quotation_11827482.pdf (63.8 KB)

That’s similar but a little higher than the price I got from MotionUSA for the SensoPart laser/sensor pair + cables, ~$309 before shipping. These are the ones used by the previous generation Muller HDS scanner:


1 Like

@cpixip have a question regarding your experience with 8 film sprockets. The samples of damage/distortion shown in this thread consistently show the damage on the (pictured) lower side of the hole. Would you say that damage is consistently on the one side? Thanks

@PM490: well, that the damage in the examples I posted is only on one side is probably just a random occurance. There are various ways to destroy a sprocket. In every Super-8 projector I have seen and dismantled, there are at least two sprocket rollers with nice teeths which grind into the film should anything happen during projection. Than there is the claw which advances the film frame by frame - it usually makes contact on only one side of the sprocket (it is smaller than the default sprocket size). However, in most projectors, these claws are mounted on rather long beams and the mechanical force exercised on the sprocket is therefore rather limited. In addition, sound projectors have rather long and winding film paths below the projection area which feature nasty stuff for destroying the film as well.

Actually, that analysis shifted me away from using an old projector as basis for a film scanner. These machines can destroy fragile material in seconds.

My stock of Super-8 material is rather limited - it is made up of my own Super-8 movies plus several commercial advertizing reals of the late seventies and two movies I sourced from Ebay for experiments. That’s only a small sample (some hours of footage at most), but broken sprockets are actually very rare. Also, while I was afraid of substantial color shifts with these about 40 year old material, such a thing is actually not so frequent as well. Actually only a few non-Kodak reals I bought in the beginning of the eighties in the US do show noticable color shifts as well as shrinkage and warping.

So, to set the record straight, here’s a nice example of a sprocket where the damage is on the other side of the sprocket: :smile: