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="IndrajithGamage" data-source="post: 28515552" data-attributes="member: 581741"><p>ChatGPT ගඳ එන්නෙ මට විතරද. <img class="smilie smilie--emoji" loading="lazy" alt="😜" title="Winking face with tongue :stuck_out_tongue_winking_eye:" src="https://cdn.jsdelivr.net/joypixels/assets/6.6/png/unicode/64/1f61c.png" data-shortname=":stuck_out_tongue_winking_eye:" /><img class="smilie smilie--emoji" loading="lazy" alt="🙏" title="Folded hands :pray:" src="https://cdn.jsdelivr.net/joypixels/assets/6.6/png/unicode/64/1f64f.png" data-shortname=":pray:" /></p><p></p><p>මට හිතෙන්නෙ උඹ මේ try කරන්නෙ hand gestures වලින් volume අඩු වැඩි කරන එකක් හදන්න වගේ නේද? උඹෙ declaration ටික පොඩ්ඩක් අංජබජල් බං. මේ වගේ try කරලා බලහන්කො.</p><p></p><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, _ = cv2.findContours(thresh, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)</p><p> </p><p> for cnt in contours:</p><p> if cv2.contourArea(cnt) > 2000:</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> cv2.putText(frame, "Hand gesture detected", (50,50), cv2.FONT_HERSHEY_SIMPLEX, 1, (255,0,0), 2)</p><p> pyautogui.hotkey('volumeup')</p><p> else:</p><p> cv2.putText(frame, "No hand gesture detected", (50,50), cv2.FONT_HERSHEY_SIMPLEX, 1, (0,0,255), 2)</p><p></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></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="IndrajithGamage, post: 28515552, member: 581741"] ChatGPT ගඳ එන්නෙ මට විතරද. 😜🙏 මට හිතෙන්නෙ උඹ මේ try කරන්නෙ hand gestures වලින් volume අඩු වැඩි කරන එකක් හදන්න වගේ නේද? උඹෙ declaration ටික පොඩ්ඩක් අංජබජල් බං. මේ වගේ try කරලා බලහන්කො. [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, _ = cv2.findContours(thresh, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE) for cnt in contours: if cv2.contourArea(cnt) > 2000: x,y,w,h = cv2.boundingRect(cnt) cv2.rectangle(frame, (x,y), (x+w, y+h), (0,255,0), 2) cv2.putText(frame, "Hand gesture detected", (50,50), cv2.FONT_HERSHEY_SIMPLEX, 1, (255,0,0), 2) pyautogui.hotkey('volumeup') else: cv2.putText(frame, "No hand gesture detected", (50,50), cv2.FONT_HERSHEY_SIMPLEX, 1, (0,0,255), 2) # Display the frame cv2.imshow("Frame", frame) key = cv2.waitKey(1) if key == ord('q'): break # Release the webcam and close the window cap.release() cv2.destroyAllWindows() [/CODE] [/QUOTE]
Insert quotes…
Verification
Payakata winadi keeyak tibeda?
Post reply
Top
Bottom