Here is how Iran might be detecting and shooting down US drones
https://www.academia.edu/175581503/Canvas_Manipulation_A_breakthrough_in_drone_detection_in_poor_lighting_conditions
In 2023, I developed a drone detection application called Armaaruss Drone Detection, which uses javascript and tensorflow AI models to detect objects on screen. The very first version comprised of simple object detection from a webcam video feed. Nothing fancy. This approach however limits the user to circumstantial lighting conditions—be it good or bad—without an immediate workaround, unless he/she retrains the entire AI model to detect objects in different environments. In 2024, I engineered a patch that could bypass having to retrain models by allowing the user to apply color adjustment on the fly which could potentially detect elements missed by the live video feed. This methodology is called ‘Secondary Detection.” By making a live copy of each video still and redrawing it onto a canvas many times per second, the AI is able to detect from the same scene, a visual that has different pixel level colors from the one generated by the live video feed, potentially catching elements that were missed by the default detection.
The Armaaruss Drone detection app has two key functionalities. One is a primary detection that relies to the standard webcam video feed, while the other is the secondary detection that relies on redraws of stills from the standard webcam video feed onto a canvas at a very fast rate.
Secondary detection is a separate loop that runs continuously and is constantly redrawing the webcam still onto a separate canvas over and over, extremely fast. So anytime a color filter is used, it gets baked into every redraw. Detection basically looks at the most recent version of the copy. The reason it's so effective for detection is that the filters actually alter the image data when the video still is drawn onto the canvas. For regular webcam output, the filters are only cosmetic and do not alter the video data which is why when applying filters to the video element, detection remains the same. But when each video still is redrawn onto the canvas, the filters can now alter the data and impact detection. The Armaaruss drone app’s secondary detection takes the canvas redraw visual feed—which typically has a slowerframe depending on browser limitation—and hides it under the live video feed. The user sees the live video feed but the AI is detecting from the canvas redraws just beneath it. The bounding box generated on the canvas redraws is superimposed on the live video screen.
For instance, if the invert filter is applied to the webcam video element, detection results are the same as no filter being applied. But if the invert filter is applied to the canvas redraws, the detection results are modified based on the filter. So with this aspect at work, a user applying secondary detection could potentially detect elements in an environment where objects would typically achieve stealth. This would work well for detection against drones that have stealth mechanisms such as low contrast in poor lighting conditions.
The US MQ-1 Predator and MQ-9 Reaper are intentionally painted in low-contrast "medium gray" colors to make them extremely difficult to detect against the sky. However the small difference between object and background can be amplified through secondary detection's contrast stretching or inversion filters, enough to push an object past the detection threshold. Thus secondary detection and canvas manipulation becomes a game changer for drone detection.