Comments (3)
this seems to render better snap images
cap = cv2.VideoCapture("rstp://....")
while True:
ret, frame = cap.read()
if not ret: continue
cv2.imwrite(" ", frame)
time.sleep(2)
from reolinkapipy.
Interesting, seems to be related to #25 (comment)
Which camera are you using?
Also, we are using the FFMPEG streaming flag, as mentioned here
I have added a comment there in my last commit contemplating the necessity of it. It might be the reason for your streaming issues and @Portscanner. I thought that it might fix the issue opening the stream in its own thread as mentioned in this SO thread.
from reolinkapipy.
Hi
In the meantime I am working without the Reolink API and sometimes I still get the error messages. However, when I restart the camera there are no more errors. It doesn't seem to be a problem with the API, but with the camera (Reolink: RLC-511W).
vs = VideoStream("rtsp://abcde:[email protected]:554//h264Preview_01_sub").start()
time.sleep(2)
while True:
try:
frame = vs.read()
frame = imutils.resize(frame, width=500)
orig = frame.copy()
frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
frame = Image.fromarray(frame)
cv2.imshow("Test", orig)
except:
vs = VideoStream("rtsp://abcde:[email protected]:554//h264Preview_01_sub").start()
key = cv2.waitKey(100) & 0xFF
if key == ord("q"):
print('')
break
cv2.destroyAllWindows()
vs.stop()
from reolinkapipy.
Related Issues (20)
- ImageApi has no example response HOT 3
- Help: List of suppported Camera's HOT 17
- Python installation results in split, arbitrary libraries HOT 6
- Get_snap error HOT 2
- Download files issue HOT 2
- Make image processing dependencies optional HOT 1
- Possibility of reading an alert detection for A series. HOT 5
- Start Recording/Alarm manually - List of Python Commands HOT 2
- Adding support to reolink go camera HOT 2
- Set enable or disable push / email notifications HOT 1
- snap image returns empty despite IP ping working HOT 2
- requirements.txt is empty HOT 3
- login error - is RLC-510a supported? HOT 6
- get_snap incorrectly references random library HOT 3
- Get Alarm Motion not working HOT 1
- Get_snap and Open_video_stream not working HOT 2
- Controlling the camera remotely HOT 1
- I added the ability to update the certificate HOT 1
- Reolink API documentation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reolinkapipy.