Skip to main content

Posts

Bird View Image from Images Stiching by ML

                                                    Photo by Marcin Jozwiak Creating a top-level bird view diagram of a place with object detection involves several steps. Here's a high-level overview: 1. Camera Calibration : - Calibrate each camera to correct for distortion and obtain intrinsic and extrinsic parameters. NVIDIA DeepStream SDK primarily focuses on building AI-powered video analytics applications, including object detection and tracking, but it doesn't directly provide camera calibration functionalities out of the box. Camera calibration is typically a separate process that involves capturing images of a known calibration pattern (like a checkerboard) and using those images to determine the camera's intrinsic and extrinsic parameters. Here's a brief overview of how you might approach camera calibration using OpenCV...

Simple Nginx Conf for Microservices Application

######################################################################## # Main Nginx configuration file for Dockerized Microservices # # More information about the configuration options is available on  # * the English wiki - http://wiki.nginx.org/Main # * the Russian documentation - http://sysoev.ru/nginx/ # ####################################################################### #---------------------------------------------------------------------- # Main Module - directives that cover basic functionality # # http://wiki.nginx.org/NginxHttpMainModule # #---------------------------------------------------------------------- user nginx; worker_processes auto; error_log /opt/nginx/logs/error.log; #error_log /var/log/nginx/error.log notice; #error_log /var/log/nginx/error.log info; pid /var/run/nginx.pid; #---------------------------------------------------------------------- # Events Module  # # http://wiki.nginx.org/NginxHttpEventsModule # #-----------------------------------...

SQLAlchemy and Alembic

  SQLAlchemy and Alembic: Explained with Example SQLAlchemy: A powerful Python library for interacting with relational databases. Provides an object-relational mapper (ORM) that lets you define your data model as Python classes and map them to tables in a database. Simplifies writing SQL queries and manipulating data through its object-oriented interface. Alembic: A migration tool built on top of SQLAlchemy. Allows you to track changes to your database schema over time and manage upgrades and downgrades. Generates migration scripts as your data model evolves, providing version control for your database schema. Example: Let's consider a model that defines a User table with two attributes: id (primary key) and username . Python code (SQLAlchemy): Python from sqlalchemy import Column, Integer, String from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() class User ( Base ): __tablename__ = "users" id = Column...