Display A Selected Image By OpenCV.js In Web Page

The post shows a simple example about how to display a selected image by opencv.js in web page. <div> <div class=”inputoutput”> <img id=”imageSrc” alt=”No Image” style=”display: none;”> <div class=”caption”><input type=”file” id=”fileInput” name=”file”></div> </div> <div class=”inputoutput”> <canvas id=”canvasOutput”></canvas> </div> </div> <script async=”” src=”/functions/opencv/opencv.js” type=”text/javascript”></script> <script type=”text/javascript”> let imgElement = document.getElementById(‘imageSrc’); let Read more…

Text Verification Tools MD5 And SHA

You may have encountered a situation where the downloaded file was damaged and didn’t open smoothly. The method to verify whether the file has changed is the information summary algorithm. It analyzes the contents of the file and generates a hash string. Compare your file hash value with someone else’s Read more…

Build Cryptography And Use It As WASM

Download cryptography library and build for wasm Download cryptography source code at GitHub, cryptopp. Go to cryptopp folder which contains GNUmakefile. Build it to generate C++ library and execute file. make static dynamic cryptest.exe Create a new folder build and move all generated files into it. mv *.o *.so *.a Read more…

Matrix Multiplication And vtkTransform Concatenate

We can use vtkTransform’s function concatenate to do matrix multiplication. There are three matrix which have the mathematical relationship.     It’s equivalent to the following code. vtkSPtrNew( C, vtkTransform ); C->Concatenate(B); C->Concatenate(A); C->Update(); The experimental code: #include <iostream> #include <vtkSmartPointer.h> #include <vtkTransform.h> #define vtkSPtr vtkSmartPointer #define vtkSPtrNew(Var, Type) vtkSPtr<Type> Read more…

Tex To PDF
: convert the Latex file which suffix is tex to a PDF file

X