Skip to content

question - novice questions getting my Reolink camera to work:  #14

@duffjay

Description

@duffjay

Thanks for the answer on a previous question. My issue was solved by upgrading the firmware which surprised me. I am now trying a Reolink camera which appears to be far better than the Amcrest camera.

I verified that I can grab a frame from the camera. Using Chrome browser:
http://192.168.1.122/cgi-bin/api.cgi?cmd=Snap&channel=0&user=admin&password=myPassword

If I refresh the browser - I get updated frames as expected. However,
I tried using opencv VideoCapture - oddly (different behavior from Amcrest) - it will get 1 frame but does not return frames on subsequent calls. (my program worked well with the Amcrest cameras - the Reolink has better image quality so I'm switching cameras.) So I am looking at your API.

python 3.7

import RtspClient

r = RtspClient.RtspClient('192.168.1.122', 'admin', myPassword)
r.connect()
<socks.socksocket fd=10, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.1.110', 46678), raddr=('192.168.1.122', 554)>

trying to get a snapshot

r.preview()
'NoneType' object has no attribute 'send'
Traceback (most recent call last):
File "", line 1, in
File "/media/home/jay/projects/ReolinkCameraAPI/RtspClient.py", line 78, in preview
cv2.imshow(win_name, self.get_frame())
cv2.error: OpenCV(4.2.0) /io/opencv/modules/highgui/src/window.cpp:376: error: (-215:Assertion failed) size.width>0 && size.height>0 in function 'imshow'

trying to get_frame()

bytes = r.get_frame()
'NoneType' object has no attribute 'send'

I'm a relative novice with RESTful APIs so this is probably a pretty simple issue. Looks like I have an object = None someplace

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions