Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 05-24-2024, 01:19 AM   #1
lezinterracial
Confirmed User
 
Industry Role:
Join Date: Jul 2012
Posts: 2,947
real time object detection?

Using old haar cascades with opencv, but getting lots of false face detections. Got any other recommendations?
lezinterracial is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-24-2024, 12:19 PM   #2
pornmasta
Too lazy to set a custom title
 
pornmasta's Avatar
 
Join Date: Jun 2006
Posts: 17,832
Do you use a threshold?
If yes be more strict
pornmasta is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-24-2024, 01:24 PM   #3
SkynetHosting
Confirmed User
 
SkynetHosting's Avatar
 
Industry Role:
Join Date: Nov 2023
Posts: 88
with a proper settings of tresholds you can get some better results.
but it is better to choose other methods if equipment afford that
__________________

VPS Servers | Domain Names | Private VPN | Skynet Hosting SRL
Support 24/7 | 99.9% service uptime | Offshore Hosting | +373 60 332 333
SkynetHosting is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-24-2024, 03:07 PM   #4
Colmike9
(>^_^)b
 
Colmike9's Avatar
 
Industry Role:
Join Date: Dec 2011
Posts: 7,215
If you aren't doing small objects, YOLO is a good object detection algorithm
__________________
Join the BEST cam affiliate program on the internet!
I've referred over $1.7mil in spending this past year, you should join in.
I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years..
Colmike9 is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-24-2024, 08:21 PM   #5
2MuchMark
Videochat Solutions
 
2MuchMark's Avatar
 
Industry Role:
Join Date: Aug 2004
Location: Canada
Posts: 46,333
Try using Dlib’s face detector, MTCNN, or deep learning-based models such as OpenCV’s DNN module with pre-trained models (e.g., ResNet-based face detectors). Check scaleFactor and minNeighbors settings.
__________________

VideoChat Solutions | Custom Software | IT Support
https://www.2much.net | https://www.lcntech.com
2MuchMark is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-24-2024, 11:39 PM   #6
lezinterracial
Confirmed User
 
Industry Role:
Join Date: Jul 2012
Posts: 2,947
Quote:
Originally Posted by 2MuchMark View Post
Try using Dlib’s face detector, MTCNN, or deep learning-based models such as OpenCV’s DNN module with pre-trained models (e.g., ResNet-based face detectors). Check scaleFactor and minNeighbors settings.
Yea, I have read about Dlib. I want to use on my laptop. You think it will run with real time video.

Thanks for all responses so far.
lezinterracial is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-24-2024, 11:46 PM   #7
lezinterracial
Confirmed User
 
Industry Role:
Join Date: Jul 2012
Posts: 2,947
Quote:
Originally Posted by 2MuchMark View Post
Try using Dlib’s face detector, MTCNN, or deep learning-based models such as OpenCV’s DNN module with pre-trained models (e.g., ResNet-based face detectors). Check scaleFactor and minNeighbors settings.
Yea, I have read about Dlib. I want to use on my laptop. You think it will run with real time video.

Thanks for all responses so far.

I used the example facedetect.py . Add a target box, when a face enters the box
moves a servo. Polulu Maestro servo controller.

Code:
import cv2
import os
import time

cmdpull = "/home/walter/maestro-linux/UscCmd --servo 5,7000"
cmdreturn = "/home/walter/maestro-linux/UscCmd --servo 5,6000"

# Load the cascade
face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml')

# To capture video from webcam. 
cap = cv2.VideoCapture(2)
# To use a video file as input 
# cap = cv2.VideoCapture('filename.mp4')

while True:
    # Read the frame
    _, img = cap.read()
    # Convert to grayscale
    gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
    # Detect the faces
    faces = face_cascade.detectMultiScale(gray, 1.1, 4)
   #create region of interest box and dot
    cv2.rectangle(img, (100, 100), (180, 180), (0, 0, 255), 2)
    cv2.line(img, (140, 140), (140, 140), (0, 255, 0), 5) 
    # Draw the rectangle around each face
    for (x, y, w, h) in faces:
        cv2.rectangle(img, (x, y), (x+w, y+h), (255, 0, 0), 2)
    #if face is in middle of the screen - region of interest
        if x > 100 and x < 180 and y > 100 and y < 180:
            print ("x: ",x)
            print ("y: ",y)
            time.sleep(.1)
            os.system(cmdpull)
            time.sleep(.1)
            os.system(cmdreturn)
    # Display
    cv2.imshow('img', img)
    # Stop if escape key is pressed
    k = cv2.waitKey(30) & 0xff
    if k==27:
        break
# Release the VideoCapture object
cap.release()
lezinterracial is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-31-2024, 03:15 AM   #8
lezinterracial
Confirmed User
 
Industry Role:
Join Date: Jul 2012
Posts: 2,947
Quote:
Originally Posted by Colmike9 View Post
If you aren't doing small objects, YOLO is a good object detection algorithm
Looking at YOLOv8 tutorials now. Thanks.

Scratch that for now. Will need a gpu. Having fun watching tutorials though. Now I know what Elon and that other guy were talking about when they mention Distributed Neural Network.
lezinterracial is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks

Tags
detections, false, recommendations, lots, detection, object, time, cascades, haar, real



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.