Python computer vision -- OpenCV for image arithmetic and logical operation

catalogue 1. Image addition (1) Randomly generated gray image (2) Read original image (3) Add two images (4) Image pixel addition constant 2. Image subtraction (1) Reduce brightness (2) Restore image with grayscale image added   3. Image and operation 4. Image or operation 5. Image XOR operation 6. Image non operation 7. Signi ...

Posted on Sat, 16 Oct 2021 00:51:15 -0400 by sk8erh4x0r

Model transformation of Tensorflow Lite model deployment

TensorFlow Lite is designed to efficiently execute models on a variety of devices. This efficiency stems in part from the use of a special format when storing models. TensorFlow model must be converted to this format before it can be used by TensorFlow Lite. The transformation model reduces the size of the model file and introduces optimization ...

Posted on Tue, 12 Oct 2021 01:28:58 -0400 by Lahloob

CBAM(Convolutional Block Attention Modul)

1, Summary     CBAM is an attention realization mechanism, which combines the information in the two dimensions of space and channel to realize attention, which can be said to be a supplement to SE. SE solves the problem of "what", while CBAM solves the problem of "what + where". 2, Overall structure   ...

Posted on Mon, 11 Oct 2021 17:28:07 -0400 by hollyspringer

FairMOT trains its own data sets and learning notes

https://codechina.csdn.net/mirrors/ifzhang/FairMOT 1, Reproduction of FairMOT https://www.zhouchen1998.cn/2020/10/24/fairmot-realtime/ cannot import name 'amp' reason: 1. Only PyTorch1.6 or above can import amp from torch.cuda; Solution: https://blog.csdn.net/lucifer479/article/details/111322564 2, FairMOT training custom dataset You ...

Posted on Fri, 08 Oct 2021 00:34:19 -0400 by genix2011

Swing transformer classification source code (has run through collab)

The following is the blog for reference in this article. You can refer to it if you need it: 1,Swing transformer segmentation source code (passed) 2,Swing transformer classification source code (passed) 3,Understanding points of swin transformer 1, Summary In the recent swin transformer fire, the code has been open source, and girhub has s ...

Posted on Wed, 06 Oct 2021 20:30:29 -0400 by gterre

Chapter 5 Part 2 case dogs VS Cats

Principle of convolution operation Reasons why the width and height of the output characteristic diagram are different from that of the input Boundary effect, some small boxes exceed the boundary (can be solved by filling the input)stride Boundary effect solution Fill the original input image by adjusting padding = 'same' (the defa ...

Posted on Wed, 06 Oct 2021 12:34:43 -0400 by fonster_mox

OpenMv single color recognition

This is OpenMv's own routine for single color recognition Tracking the ball is the most used function of OpenMV 1 key explanation image.find_blobs(thresholds, roi=Auto, x_stride=2, y_stride=1, invert=False, area_threshold=10, pixels_threshold=10, merge=False, margin=0, threshold_cb=None, merge_cb=None) thresholds thresholds is the color ...

Posted on Wed, 29 Sep 2021 18:30:51 -0400 by raytri