If the camera has a shallow depth of focus and the background is mostly blurry and the foreground is only moving at one focal plane, why not use a simpler method, such as Template Matching?
Since the printing head is changing its angle of view with respect to the lens as it moves in the $x,y$ dimensions, you might have to use more than one templates but overall the process is straightforward: Apply the cross correlation in a sliding window across the image and stop where the cross correlation peaks.
This example is in MATLAB but easily transferable to other platforms.
This sliding window might seem slow but is unavoidable. Neural networks do it implicitly at the lowest level of inputs. The good news here is that the printing head image does not move in the $z$ dimension, in which case the scale would change too. This would mean that you would have to repeat this process for the scales of interest.
You might be able to derive "hints" of where the printing head is roughly in the image, by tracking its silhouette. If you threshold the image for example, you might want to look for a distinct pattern of large rectangular areas in black, that roughly match the size and shape of the arm. This would help in making the search area where the normalised cross correlation is applied, smaller. But overall, I would not expect a modern Desktop or even SBC to struggle with an HD image and a patch even as big as 128x128 pixels.
Hope this helps
EDIT:
In terms of a pesudo-code instruction:
Take a representative image of the nozzle (don't crop it too much around the nozzle but make sure the bit you want to recognise is clearly visible).
Given an image from the monitoring camera, run a normalised cross correlation across the image. How you are going to do this depends on the platform you are using but MATLAB, Octave, Python all have means of running a normalised cross correlation, fast, in this way
The output of this will be a Real two dimensional array that will have a single peak exacty at the point where the template had the best match.
Threshold that match and take the centroid of the region (if it spans more than one pixel) to find out where the nozzle is in the camera image.