User Tools

Site Tools


guides:opencv

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
guides:opencv [2024/01/30 02:22] discordguides:opencv [2024/02/02 04:22] (current) discord
Line 136: Line 136:
     Claim $this' has region [region move $r down 110%]     Claim $this' has region [region move $r down 110%]
 } }
 +
 +set ::opencvOldFrames [list]
 When $this' has camera slice /slice/ & $this has region /r/ { When $this' has camera slice /slice/ & $this has region /r/ {
     set grayImg [opencvAdaptiveThreshold $slice]     set grayImg [opencvAdaptiveThreshold $slice]
Line 141: Line 143:
     Wish to draw an image with center $center image $grayImg radians 0 scale 2     Wish to draw an image with center $center image $grayImg radians 0 scale 2
  
-    After 100 milliseconds +    lappend ::opencvOldFrames $grayImg 
-        image freeImage $grayImg+    if {[llength $::opencvOldFrames] >= 10} { 
 +        set ::opencvOldFrames [lassign $::opencvOldFrames oldestFrame] 
 +        image freeImage $oldestFrame
     }     }
 } }
guides/opencv.1706581320.txt.gz · Last modified: 2024/01/30 02:22 by discord

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki