How do I get an image without launching the Nx Witness Client when I don't have a license?
AnsweredIn my research, I can use NxWitness's API "camera Thumbnail" to get images.
However, in my research it must meet the following conditions:
① If I do not have a license
(1-1)The desktop client must have the target camera stream (displaying the video on the screen) open.
② If I have a license (when either of the following is satisfied)
(2-1) Same as (1-1)
(2-2) Turn on the recording function
I want to get a live image of the camera without a license and without launching the Client.
What should I do?
-
Hi Yamazawa-san,
Thanks for your question, your research is mostly right, but we may need to correct your description still.
The snapshot has nothing to do license, it is about if you have "recording", not the license.
You can have 10 camera, but only 5 licenses. The key point is the recording, not the license.1. If you do not have recording
You can still get the snapshot, but only the exactly current time. Let say the time now is 2020-12-04 15:30:00
This means if you can have the snapshot only on the 2020-12-04 15:30:00 or after. It depends on the timestamp of request arrive to the server. It is not possible to get a past snapshot as you don't have any recording.2. If you do not have recording
According to the server API, you can pull the snapshot according.If you want o get the live image from the camera,
1) You can directly use the /ec2/cameraThumbnail.
By default, if you need to assign the time. But if you use the value 'now', it would be live image.
To get the cameraId, you can use /ec2/getCamerasEx
More detail could be seen HEREAs a result, if you know the cameraId, then you can use the /ec2/cameraThumbnail accordingly to get the live image.
The API would look like :
https://{NxServerIp}:{port}/ec2/cameraThumbnail?cameraId={cameraId}&time=now
Ex: https://demo.networkoptix.com:7001/ec2/cameraThumbnail?cameraId=a02d3776-a7eb-faea-97d5-6251c1694151&time=now0 -
Hi Ichiro-san,
Thank you for your prompt replay.
Also, thank you for your polite answer.
I understand how to get live image via [../ec2/cameraThumbnail] API.
But, it may not meet my requirement - Acquiring a live image without launching the NxW Client and recording.
I tried to call [../ec2/cameraThumbnail] API with set "now" in time parameter.
However, what I got was not the live image of the camera, but the image data when I started the Client and browsed the camera image on the desktop.
This meant that the camera stream had to be displayed on the desktop in order to get a live image.Is there a way to get a live image without recording or launching the client?
Warmest regards,
Kai Yamazawa
0 -
Hi @...,
There is no other scenario.
It either needs to be displayed in the layout or it needs to record, which requires a license.
If it is only an image that you want to collect each XYX time, I would recommend to look at FFmpeg, an open source command line based application.
0 -
Hi Graafsma,
Thank you for your reply,
and I have understood.
I really appreciate for your support.
Warmest regards,
Kai Yamazawa
0
Please sign in to leave a comment.
Comments
4 comments