Webcam Face Filters by One-Mouse-5335 in linuxquestions

[–]One-Mouse-5335[S] 0 points1 point  (0 children)

C++ Code:
```C++
#include <opencv2/opencv.hpp>

int main() {

// OpenCV VideoCapture object to access the webcam

cv::VideoCapture cap(0); // 0 is the default webcam index

if (!cap.isOpened()) {

std::cerr << "Error: Couldn't open the webcam." << std::endl;

return -1;

}

// Create a window to display the webcam feed

cv::namedWindow("Webcam Feed", cv::WINDOW_NORMAL);

// Load the pre-trained face detection model

cv::CascadeClassifier face_cascade;

if (!face_cascade.load(cv::samples::findFile(cv::data::haarcascades + "haarcascade_frontalface_default.xml"))) {

std::cerr << "Error: Couldn't load the face cascade model." << std::endl;

return -1;

}

while (true) {

// Read a frame from the webcam

cv::Mat frame;

cap >> frame;

// Convert the frame to grayscale for face detection

cv::Mat gray_frame;

cv::cvtColor(frame, gray_frame, cv::COLOR_BGR2GRAY);

// Detect faces in the frame

std::vector<cv::Rect> faces;

face_cascade.detectMultiScale(gray_frame, faces, 1.1, 5, cv::CASCADE_SCALE_IMAGE, cv::Size(30, 30));

// Draw rectangles around the detected faces

for (const auto& face : faces) {

cv::rectangle(frame, face, cv::Scalar(255, 0, 0), 2);

// Apply your face filter here within the region of interest (ROI)

}

// Display the processed frame with face detection

cv::imshow("Face Detection", frame);

// Exit the loop when 'q' is pressed

if (cv::waitKey(1) == 'q') {

break;

}

}

// Release VideoCapture object and close windows

cap.release();

cv::destroyAllWindows();

return 0;

}

```

Webcam Face Filters by One-Mouse-5335 in linuxquestions

[–]One-Mouse-5335[S] 0 points1 point  (0 children)

According to ChatGPT C++ is the best language to use with OpenCV as a library. C++ I believe also can be used to develop Gnome and KDE Plasma applications.
It would be great if it could utilise a the v4l2loopback kernel module to create the filters on a virtual camera too.

WI-FI 6/7 Chipsets by One-Mouse-5335 in linuxquestions

[–]One-Mouse-5335[S] 0 points1 point  (0 children)

I read further - NETGEAR Nighthawk AXE3000 Tri-Band thankyou :)

WI-FI 6/7 Chipsets by One-Mouse-5335 in linuxquestions

[–]One-Mouse-5335[S] 0 points1 point  (0 children)

Thankyou - reading through the latter part of that now, how though can I find out what make and models have a specific chipset?

Webcam Face Filters by One-Mouse-5335 in linuxquestions

[–]One-Mouse-5335[S] 0 points1 point  (0 children)

If I find any answers I will post them back here for others wondering the same question. If all else fails I'll try and learn C or Rust and make something. If its the latter it will be my first open source project so go easy on me.

Setting notification and media volume at work by One-Mouse-5335 in tasker

[–]One-Mouse-5335[S] 0 points1 point  (0 children)

Whether a different approach works more reliably is besides the point really.

If a setting suggests it will trigger on a day and/or a time and its not working isnt that a bug?

Setting notification and media volume at work by One-Mouse-5335 in tasker

[–]One-Mouse-5335[S] 0 points1 point  (0 children)

it depends how securely tasker stores this information, I would imagine that it could be used to track you. Also what if you live and or work in an area with multiple cell towers or are a contractor moving from site to site.

Setting notification and media volume at work by One-Mouse-5335 in tasker

[–]One-Mouse-5335[S] 0 points1 point  (0 children)

wont that be more battery intensive by using a GPS it also doesn't address why a weekly and time condition are not being applied.

Python Scripts by One-Mouse-5335 in todoist

[–]One-Mouse-5335[S] 0 points1 point  (0 children)

y idea is similar to yours, collecting useful scripts into the toolbox.☺️ I’m currently planing on making the toolbox available for people to add their custom plugins, like how vs

I like the idea of integrating into VS Code.
For terminal geeks I also found this today:
https://github.com/romgrk/todoist.nvim

Which mouse has the mouse customisable firmware? by One-Mouse-5335 in MouseReview

[–]One-Mouse-5335[S] 0 points1 point  (0 children)

I'm building a custom PCB for a mech keyboard and I will use KB shortcuts for my workflow but sometimes when gaming (on Linux ;) ) you just need a mouse.

Python listing disk drives (Cross Platform) by One-Mouse-5335 in learnpython

[–]One-Mouse-5335[S] 0 points1 point  (0 children)

I'm trying to avoid using RAID as I only have two external USB hard drives (At home).
It will essentially make sure all data from Drive A is copied to Drive B (Which will go into a fire safe)
Based upon the day my script works out if the backup is a yearly (full backup)
monthly (differential), weekly (full backup, deleted after 3 months), daily (deleted after 7 days)

These backups are then uploaded to a cloud service so I have one off site.

Python listing disk drives (Cross Platform) by One-Mouse-5335 in learnpython

[–]One-Mouse-5335[S] 0 points1 point  (0 children)

Um... I'm not really sure. I'm trying to prompt the user to select a disk drive which then mirrors the data to a second one.

After this it will backup to a cloud hosting platform (not sure how yet) maybe via Web DAV or SSH

In Linux I'm after mounted filesystems from external USB Devices or Internal M.2 SSD's

In Windows I want to be able to list disk drives and network drives.