Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Pure VPN - Up to 27 Months
vgp
Updated:
Friday at 8:10 AM
එක පැකේජ් එකයි මාසෙටම Unlimited Internet. තාමත් DATA CARD දාන්න සල්ලි වියදම් කරනවද? අඩුම මිලට අපෙන්.
sayuru bandara
Updated:
Tuesday at 12:30 PM
Ad icon
ඉන්ටර්නෙට් එකෙන් හරියටම සල්ලි හොයන්න සහ Success වෙන්න කැමතිද? 🚀 (E-Money & Success Stories)
siri sumana
Updated:
May 30, 2026
Gemini AI PRO 18 months Offer
Hawaka
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Talk!
me python script eka wada karanawa awl
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="hecker_thama" data-source="post: 28515536" data-attributes="member: 582558"><p>[CODE=python]import cv2</p><p>import pyautogui</p><p></p><p># Initialize the webcam</p><p>cap = cv2.VideoCapture(0)</p><p></p><p>while True:</p><p> # Capture the current frame</p><p> ret, frame = cap.read()</p><p> # Convert the frame to grayscale</p><p> gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)</p><p> # Apply Gaussian blur to the frame</p><p> blur = cv2.GaussianBlur(gray, (5,5), 0)</p><p> # Apply thresholding to the frame</p><p> ret, thresh = cv2.threshold(blur, 60, 255, cv2.THRESH_BINARY_INV)</p><p> # Find contours in the frame</p><p> contours, hierarchy = cv2.findContours(thresh, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)</p><p> # Iterate through the contours</p><p> for cnt in contours:</p><p> # Check if the contour is a finger</p><p> if cv2.contourArea(cnt) > 500:</p><p> # Draw a bounding box around the finger</p><p> x,y,w,h = cv2.boundingRect(cnt)</p><p> cv2.rectangle(frame, (x,y), (x+w, y+h), (0,255,0), 2)</p><p> # Display the frame</p><p> cv2.imshow("Frame", frame)</p><p> key = cv2.waitKey(1)</p><p> if key == ord('q'):</p><p> break</p><p> elif key == ord('u'):</p><p> pyautogui.hotkey('volumeup')</p><p> elif key == ord('d'):</p><p> pyautogui.hotkey('volumedown')</p><p></p><p># Release the webcam and close the window</p><p>cap.release()</p><p>cv2.destroyAllWindows()</p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="hecker_thama, post: 28515536, member: 582558"] [CODE=python]import cv2 import pyautogui # Initialize the webcam cap = cv2.VideoCapture(0) while True: # Capture the current frame ret, frame = cap.read() # Convert the frame to grayscale gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) # Apply Gaussian blur to the frame blur = cv2.GaussianBlur(gray, (5,5), 0) # Apply thresholding to the frame ret, thresh = cv2.threshold(blur, 60, 255, cv2.THRESH_BINARY_INV) # Find contours in the frame contours, hierarchy = cv2.findContours(thresh, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE) # Iterate through the contours for cnt in contours: # Check if the contour is a finger if cv2.contourArea(cnt) > 500: # Draw a bounding box around the finger x,y,w,h = cv2.boundingRect(cnt) cv2.rectangle(frame, (x,y), (x+w, y+h), (0,255,0), 2) # Display the frame cv2.imshow("Frame", frame) key = cv2.waitKey(1) if key == ord('q'): break elif key == ord('u'): pyautogui.hotkey('volumeup') elif key == ord('d'): pyautogui.hotkey('volumedown') # Release the webcam and close the window cap.release() cv2.destroyAllWindows() [/CODE] [/QUOTE]
Insert quotes…
Verification
Nawa warak dahaya keeyada? (Namaya wadi kireema dahaya)
Post reply
Top
Bottom