← Todos os artigos

Tema

ai

aiJul 11, 20252 min de leitura

What Are try and catch in C++?

Recently, I traveled to Nagoya on a business trip to deliver our camera-calibration software and train the client’s team. Once I arrived, I discovered that the application would occasionally terminate unexpectedly because an internal optimization routine diverged—usually triggered by low-quality images. Although I consider such failures a normal part of calibration, the abrupt crashes understandably left the customer confused. To…

Ler o artigo →

Comentar
aiJul 2, 20251 min de leitura

Python Built-in Container Types

Python includes ten core container types organised into three categories: sequences, sets, and mappings. Each container holds references to other objects and supports membership tests (in). Sequences (7 Types) Sequences are ordered and indexable collections. Some are mutable; others are not. 1. list Mutable, ordered collection of arbitrary objects Allows duplicates Syntax: fruits = ['apple', 'banana', 'cherry'] 2. tuple Immutable,…

Ler o artigo →

Comentar
aiJun 30, 20252 min de leitura

Machine learning-ML

Machine learning (ML) is like teaching a computer to learn from examples instead of programming it to follow specific rules. Instead of saying, "If the image has two round shapes and a stem, then it's an apple," you show the computer hundreds or thousands of images of apples and let it figure out the patterns on its own. 1. Why…

Ler o artigo →

Comentar
aiJun 26, 20251 min de leitura

Vectors insert function in C++

Vectors insert: The below code is an example of a vector insert function. It may help the beginners. #include <iostream> #include <vector> int main() { std::vector<int> v = {1, 2, 4, 5}; // Insert a single element at position 2 v.insert(v.begin() + 2, 3); // v = {1, 2, 3, 4, 5} // Insert multiple copies of a value v.insert(v.begin()…

Ler o artigo →

Comentar
aiJun 26, 20256 min de leitura

A single‐header C++ neural-network!

I wrote a code sample of a Neural network written in C++ that utilises only three popular libraries. This code has the following abilities: 1. Specify any number of inputs/outputs 2. Add as many hidden layers as you like 3. Pick Sigmoid or ReLU activations 4. Do forward passes and simple SGD training via back-propagation // NeuralNetOCV.hpp #pragma once #include…

Ler o artigo →

Comentar
aiJun 25, 20252 min de leitura

How to get depth image from stereo left and right image

If you have two images from a stereo camera, then you can convert them to a depth image using the function below. cv::Mat getDepthImage( cv::Mat& left_row, cv::Mat& right_row) { // for creating path std::string str = workingFolder + str_cam + "\\"; std::string name = stereo_name + cam_no; std::string fpath = str + name + ".xml"; //for getting the intrinsic and…

Ler o artigo →

Comentar
aiJun 25, 20254 min de leitura

cv::StereoSGBM::create(…) in OpenCV

The StereoSGBM (Semi-Global Block Matching) algorithm computes a disparity map from a pair of stereo images. This disparity map represents the pixel shift between matching points in the left and right images, which in turn relates to depth. The cv::StereoSGBM::create(...) function initializes the algorithm with the following tuning parameters: Parameter Explanations: 1. minDisparity (int) o Purpose: Sets the minimum disparity…

Ler o artigo →

Comentar
aiJun 23, 20252 min de leitura

Physics-Informed Neural Networks

Physics-Informed Neural Networks (PINNs) are an innovative class of deep neural network models that directly embed the laws of physics—typically formulated as partial or ordinary differential equations (PDEs or ODEs)—into the training process. Instead of relying solely on large volumes of data, PINNs augment the traditional data-driven loss with additional terms that penalise deviations from established physical laws. In practice,…

Ler o artigo →

Comentar
aiJun 22, 20253 min de leitura

Gradient Descent- an optimization technique

Gradient descent is the quiet workhorse behind many of today’s smartest algorithms. At its heart, it’s a simple process of “feel, step, repeat” that guides a model from cluelessness toward competence—much like a hiker fumbling down a foggy mountainside until they find the valley floor. In this essay, we’ll explore what gradient descent is, why it matters, and how its…

Ler o artigo →

Comentar
aiJun 20, 20253 min de leitura

Introduction to Neural Networks

Neural networks are computing systems inspired by the human brain. They consist of interconnected units called neurons, which process information similarly to the way our own brains do. At their core, neural networks learn to recognize patterns and make decisions by adjusting connections between these neurons. This learning process is driven by math, particularly by equations that describe how signals…

Ler o artigo →

Comentar