I'm using Opencv 2.4.5 with python 2.7 to track people in video surveillance. At the beginning I used .avi and .mpeg videos to test my code, now I want to use a hcv-m100c camera. I am using a simple difference between frames (an initial frame compared with each frame) to identify the objects in movement, It works very well with the .avi and .mpeg videos I have, but when I use the camera the results are so bad because a lot of noise and stains appear in my video. I thought that the problem was my camera, but I made an .avi video with the same camera and I tested that video with my code and it works fine. Now, I'm using the cv2.BackgroundSubtractorMOG but the problem is still there. So, I think I need to do a pre-processing when I use the camera
noise in webcam frames Python + Opencv
2.5k Views Asked by Gab Hum At
1
There are 1 best solutions below
Related Questions in PYTHON
- How to store a date/time in sqlite (or something similar to a date)
- Instagrapi recently showing HTTPError and UnknownError
- How to Retrieve Data from an MySQL Database and Display it in a GUI?
- How to create a regular expression to partition a string that terminates in either ": 45" or ",", without the ": "
- Python Geopandas unable to convert latitude longitude to points
- Influence of Unused FFN on Model Accuracy in PyTorch
- Seeking Python Libraries for Removing Extraneous Characters and Spaces in Text
- Writes to child subprocess.Popen.stdin don't work from within process group?
- Conda has two different python binarys (python and python3) with the same version for a single environment. Why?
- Problem with add new attribute in table with BOTO3 on python
- Can't install packages in python conda environment
- Setting diagonal of a matrix to zero
- List of numbers converted to list of strings to iterate over it. But receiving TypeError messages
- Basic Python Question: Shortening If Statements
- Python and regex, can't understand why some words are left out of the match
Related Questions in OPENCV
- Creating multiple instances of a class with different initializing values in Flutter
- OpenCV2 on CLion
- How to Draw Chinese Characters on a Picture with OpenCV
- Python cv2 imwrite() - RGB or BGR
- AttributeError: 'Sequential' object has no attribute 'predict_classes'. Did you mean: 'predict_step'?
- Search for an icon on an image OpenCV
- DJI Tello won't follow me
- Python OpenCV and PyGame threading issue
- Need help in Converting Python script (Uses Yolo's pose estimation) to an android app
- Line Segmentation Problem: How to detect lines and draw bounding box of that line on handwritten letters Using CV2
- Configure CmakeLists.txt to avoid manually copying dlls
- How to detect the exact boundary of a Sudoku using OpenCV when there are multiple external boundaries?
- AttributeError: 'Results' object has no attribute 'box'. can anyone explain this?
- How to generate a VPI warpmap for polynomial distortion correction?
- I am trying to make a project of object detection on kaggle notebook using yolo. and i am facing this error. here is my code and my error
Related Questions in WEBCAM
- How to refresh a webcam snapshot periodically in a webpage
- Capturing Images using Webcam in Jupyter Notebook
- Stop live video
- aforge.video.directshow. "GetDevicesOfCat" not working
- My webcam is not showing using Tkinter in a while loop
- m_pTransform->ProcessInput(0, pInputSample, 0) fails
- How to integrate real-time webcam MediaPipe code to Django
- opencv 4.5.4 with StreamCam Plus not getting expected FPS
- Can uvc-gadget can go up to 4K on a Rasperry Pi 4B?
- Not Able to access external webcam in react-use-face-detection
- Is there a way to intercept webcam "TakePhoto" trigger button in Windows Media Foundation?
- Why am i get error like this : "Python stopped working"
- GStreamer. How to share v4l2src?
- Too much memory used when using WebCamTexture in unity
- How to stream video from an IP camera using PyQt5 QtMultimedia?
Related Questions in IP-CAMERA
- IP Camera Integration error with AWS Kinesis Video Streaming
- Canvas draw image method prevents ondataavailable from firing
- how can i play rtsp video stream in flutter windows?
- Why i'm getting cors in GET request to a ip camera
- Running multiple processes in parallel to process frames of IP Cameras independently in Python
- LibVlcSharp SetVideoCallbacks(Lock, null, Display) not getting called when playing stream from IP camera
- CX_freeze EXE file only working with webcam but not working with Network camera
- RTSP-Client-for-Microcontroller
- Recording script based on gstreamer doesn’t work with Dahua camera
- Connect to CCTV camera with easy_onvif Flutter
- Cannot write video in OpenCV from ip camera
- How to implement a Camera(onvif) supporting RSTP on own WebPage?
- HTTP GET of a live Camera stream and display it in picture box
- How to build Gstreamer for aarch64 Docker image?
- hikvision camera lag problem,How can I eliminate lag?
Related Questions in SURVEILLANCE
- How to correctly have or extract the created datetime for a recorded video for a smart CCTV camera (TP Link - Tapo TC70)?
- Mean incidence rate calculation
- Can a website perform OS level surveillance functions such as screen capture and packet sniffing?
- Video streaming from ip camera gets closed after a quite time ago "[mjpeg @ 0x97226c0] overread 1"
- TightVNC: How to list all connected users
- Image comparison in python to detect motion detection in a video
- Detecting screen/ application updates with python on windows
- How to trigger motion detection event for camera via api with Synology Surveillance Station
- Python: Automatically reconnect IP camera
- Convert dataframe to list for Farrington algorithm algo.farrington
- How to extract HSV histogram from image. [EmguCV]
- Using smartphones' cameras for video surveillance
- how to use MHI and MEI for action recognition
- Video camera to upload footage to Azure
- Exponentially weighted moving average- without mean or standard deviation?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Just for completeness:
Solution concept:
Possibly you could stream the video camera with something like ffmpeg which can transcode as well and then use OpenCV to read the network stream. It might be easier to use VLC to stream instead.
Solution detail:
VLC Stream code (Shell):
OpenCV Code (Python):