sciveo 0.1.80__tar.gz → 0.1.82__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sciveo-0.1.80 → sciveo-0.1.82}/PKG-INFO +1 -1
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/capture/cam.py +3 -2
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/capture/gst_server.py +5 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/capture/rpi.py +4 -2
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/tools/timers.py +4 -1
- sciveo-0.1.82/sciveo/version.py +2 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo.egg-info/PKG-INFO +1 -1
- sciveo-0.1.80/sciveo/version.py +0 -2
- {sciveo-0.1.80 → sciveo-0.1.82}/README.md +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/__init__.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/api/__init__.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/api/base.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/api/predictors.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/api/server.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/api/upload.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/cli.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/common/__init__.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/common/configuration.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/common/model.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/common/optimizers.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/common/sampling.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/content/__init__.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/content/dataset.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/content/experiment.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/content/project.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/content/runner.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/db/__init__.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/db/read_table.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/__init__.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/capture/__init__.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/capture/draw.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/capture/games/__init__.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/capture/games/asteroids/__init__.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/capture/games/asteroids/asteroid.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/capture/games/asteroids/base_move.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/capture/games/asteroids/circle.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/capture/games/asteroids/game.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/capture/games/asteroids/geometrics.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/capture/games/asteroids/gravity_ball.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/capture/games/asteroids/laser.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/capture/games/asteroids/rocket.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/capture/games/asteroids/space_asteroids.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/capture/games/asteroids/volume_bar.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/capture/motion_detection.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/capture/nvr.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/capture/readers.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/capture/rtsp.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/ml/__init__.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/ml/base.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/ml/encoders/__init__.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/ml/encoders/base.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/ml/encoders/normalizer.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/ml/nlp/__init__.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/ml/nlp/search.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/ml/time_series/__init__.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/ml/time_series/dataset.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/ml/time_series/predictor.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/ml/time_series/trainer.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/ml/time_series/window_generator.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/__init__.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/base.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/job_daemon.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/layouts/__init__.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/layouts/base.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/pipeline.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/postprocessors/__init__.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/postprocessors/base.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/postprocessors/default.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/__init__.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/audio/__init__.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/audio/audio.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/audio/audio_extractor_process.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/aws.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/base.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/file/__init__.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/file/archive.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/image/__init__.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/image/album.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/image/album_in_image.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/image/depth_esimation.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/image/embeddings.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/image/filters.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/image/generators.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/image/histogram.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/image/mask.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/image/object_detection.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/image/resize.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/image/segmentation.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/image/watermark.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/media_info.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/nlp/__init__.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/nlp/address.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/qr.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/sci/__init__.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/sci/base.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/sci/dataset.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/sci/time_series/__init__.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/sci/time_series/predictor.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/sci/time_series/trainer.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/tpu_base.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/video/__init__.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/video/generators.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/video/motion_detection.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/video/resize.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/video/video_album.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/video/video_frames.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/video/video_resample.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/queues.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/server.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/web/__init__.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/web/server.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/tools/__init__.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/tools/video_interactive.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/ml/__init__.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/ml/base.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/ml/dataset/__init__.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/ml/dataset/object_detection.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/ml/evaluation/__init__.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/ml/evaluation/markdown.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/ml/evaluation/object_detection.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/ml/images/__init__.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/ml/images/base.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/ml/images/description.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/ml/images/embeddings.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/ml/images/object_detection.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/ml/images/tools.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/ml/images/transformers.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/ml/nlp/__init__.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/ml/nlp/embeddings.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/ml/nlp/tokenizers/__init__.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/ml/nlp/tokenizers/bpe.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/ml/video/__init__.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/ml/video/description.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/monitoring/__init__.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/monitoring/monitor.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/monitoring/power/__init__.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/monitoring/power/ems300.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/monitoring/power/sim.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/monitoring/power/tools.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/monitoring/start.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/monitoring/watchdog/__init__.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/monitoring/watchdog/base.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/monitoring/watchdog/process.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/network/__init__.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/network/camera.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/network/sniffer.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/network/tools.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/tools/__init__.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/tools/array.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/tools/aws/__init__.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/tools/aws/priority_queue.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/tools/aws/s3.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/tools/common.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/tools/complexity.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/tools/compress.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/tools/configuration.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/tools/crypto.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/tools/daemon.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/tools/draw/__init__.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/tools/draw/contours.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/tools/formating.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/tools/hardware.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/tools/http.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/tools/logger.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/tools/os.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/tools/queue.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/tools/random.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/tools/remote.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/tools/simple_counter.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/tools/synchronized.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/tools/totp.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/web/__init__.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo/web/common.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo.egg-info/SOURCES.txt +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo.egg-info/dependency_links.txt +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo.egg-info/entry_points.txt +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo.egg-info/requires.txt +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/sciveo.egg-info/top_level.txt +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/setup.cfg +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/setup.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/test/test_complexity.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/test/test_compress.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/test/test_configuration.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/test/test_crypto.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/test/test_eval_markdown.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/test/test_ml_datasets.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/test/test_monitoring.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/test/test_runner.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/test/test_sampling.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/test/test_tokenizers.py +0 -0
- {sciveo-0.1.80 → sciveo-0.1.82}/test/test_totp.py +0 -0
|
@@ -28,7 +28,7 @@ class CaptureBase(DaemonBase):
|
|
|
28
28
|
self.tag = tag
|
|
29
29
|
self.lock_frame = threading.Lock()
|
|
30
30
|
self.frame = None
|
|
31
|
-
self.fps = FPSCounter(period=10, tag=f"{self.tag} [{self.src}]")
|
|
31
|
+
self.fps = FPSCounter(period=10, tag=f"{self.tag} [{self.src}]", round_value=1)
|
|
32
32
|
|
|
33
33
|
def close(self):
|
|
34
34
|
pass
|
|
@@ -56,9 +56,10 @@ class CameraDaemon(CaptureBase):
|
|
|
56
56
|
self.init_cam()
|
|
57
57
|
|
|
58
58
|
def init_cam(self):
|
|
59
|
+
debug(self.src, "starting...")
|
|
59
60
|
self.cap = cv2.VideoCapture(self.src)
|
|
60
|
-
debug(self.src, "warming...")
|
|
61
61
|
time.sleep(1)
|
|
62
|
+
debug(self.src, "started")
|
|
62
63
|
|
|
63
64
|
def close(self):
|
|
64
65
|
self.cap.release()
|
|
@@ -18,6 +18,7 @@ from gi.repository import Gst, GObject, GstRtspServer, GLib
|
|
|
18
18
|
Gst.init(None)
|
|
19
19
|
|
|
20
20
|
from sciveo.tools.logger import *
|
|
21
|
+
from sciveo.tools.timers import FPSCounter
|
|
21
22
|
from sciveo.media.capture.draw import *
|
|
22
23
|
from sciveo.media.capture.cam import CameraDaemon
|
|
23
24
|
|
|
@@ -30,6 +31,7 @@ class RTSPFactoryBase(GstRtspServer.RTSPMediaFactory):
|
|
|
30
31
|
self.fps = fps
|
|
31
32
|
self.appsrc_name = appsrc_name
|
|
32
33
|
self.set_shared(True)
|
|
34
|
+
self.fps_next_frame = FPSCounter(period=10, tag=f"{appsrc_name} ({self.width}x{self.height}@{self.fps})", round_value=1)
|
|
33
35
|
|
|
34
36
|
def do_create_element(self, url):
|
|
35
37
|
pipeline_str = (
|
|
@@ -114,6 +116,7 @@ class ColorBarFactory(RTSPFactoryBase):
|
|
|
114
116
|
self.gen = ColorBarsGenerator(width=width, height=height)
|
|
115
117
|
|
|
116
118
|
def next_frame(self):
|
|
119
|
+
self.fps_next_frame.update()
|
|
117
120
|
return self.gen.next_frame()
|
|
118
121
|
|
|
119
122
|
|
|
@@ -145,6 +148,8 @@ class CamFactory(ColorBarFactory):
|
|
|
145
148
|
for k, v in self.configuration.get("draw", {}).items():
|
|
146
149
|
self.list_draw_processors.get(k, DrawNone())(frame, v)
|
|
147
150
|
|
|
151
|
+
self.fps_next_frame.update()
|
|
152
|
+
|
|
148
153
|
return frame
|
|
149
154
|
|
|
150
155
|
|
|
@@ -21,11 +21,13 @@ from sciveo.media.capture.gst_server import CamFactory
|
|
|
21
21
|
|
|
22
22
|
class RPICamera(CameraDaemon):
|
|
23
23
|
def __init__(self, cam_id=0, width=640, height=480, period=0):
|
|
24
|
-
super().__init__(cam_id=cam_id, period=period)
|
|
25
24
|
self.width = width
|
|
26
25
|
self.height = height
|
|
26
|
+
super().__init__(cam_id=cam_id, period=period)
|
|
27
27
|
|
|
28
28
|
def init_cam(self):
|
|
29
|
+
debug(self.src, "starting...")
|
|
30
|
+
|
|
29
31
|
self.picam2 = Picamera2()
|
|
30
32
|
config = self.picam2.create_video_configuration(
|
|
31
33
|
main={
|
|
@@ -37,8 +39,8 @@ class RPICamera(CameraDaemon):
|
|
|
37
39
|
self.picam2.configure(config)
|
|
38
40
|
self.picam2.start()
|
|
39
41
|
|
|
40
|
-
debug(self.src, "warming...")
|
|
41
42
|
time.sleep(1)
|
|
43
|
+
debug(self.src, "started")
|
|
42
44
|
|
|
43
45
|
def close(self):
|
|
44
46
|
self.picam2.stop()
|
|
@@ -15,7 +15,7 @@ from sciveo.tools.logger import *
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
class FPSCounter:
|
|
18
|
-
def __init__(self, period=1, tag="", print_period=1, printer=debug):
|
|
18
|
+
def __init__(self, period=1, tag="", print_period=1, printer=debug, round_value=2):
|
|
19
19
|
self.period = period
|
|
20
20
|
self.print_period = print_period
|
|
21
21
|
self.printer = printer
|
|
@@ -24,6 +24,7 @@ class FPSCounter:
|
|
|
24
24
|
self.n = 0
|
|
25
25
|
self.t1 = time.time()
|
|
26
26
|
self.value = 0
|
|
27
|
+
self.round_value = round_value
|
|
27
28
|
|
|
28
29
|
def print(self):
|
|
29
30
|
self.print_n += 1
|
|
@@ -36,6 +37,8 @@ class FPSCounter:
|
|
|
36
37
|
t2 = time.time()
|
|
37
38
|
if t2 - self.t1 > self.period:
|
|
38
39
|
self.value = self.n / (t2 - self.t1)
|
|
40
|
+
if self.round_value is not None:
|
|
41
|
+
self.value = round(self.value, self.round_value)
|
|
39
42
|
self.n = 0
|
|
40
43
|
self.t1 = time.time()
|
|
41
44
|
self.print()
|
sciveo-0.1.80/sciveo/version.py
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/audio/audio_extractor_process.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/sci/time_series/__init__.py
RENAMED
|
File without changes
|
{sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/sci/time_series/predictor.py
RENAMED
|
File without changes
|
{sciveo-0.1.80 → sciveo-0.1.82}/sciveo/media/pipelines/processors/sci/time_series/trainer.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|