Camera Handler¶
Copyright 2017 Purdue University
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
-
class
CAM2ImageArchiver.CameraHandler.
CameraHandler
(cameras, chunk, duration, interval, result_path, remove_after_failure, image_difference_percentage)[source]¶ Bases:
multiprocessing.context.Process
The thread to download snapshots from a single camera.
Parameters: camera (camera object) – The camera from which snapshots will be taken. -
camera
¶ camera object – The camera from which snapshots will be taken.
-
id
¶ int – The ID of the the camera.
-
url
¶ str – The URL of the camera image stream.
-
duration
¶ int – The duration of downloading the images in seconds.
-
interval
¶ int – The interval between each two successive snapshots.
-