Tag:picture

  • C # realizes the process of converting each page of PPT into pictures

    Time:2021-7-30

    To convert PPT to picture, you first need to reference two DLLs. I use this version here Microsoft.Office.Interop.PowerPoint 12.0 Microsoft Office 12.0 object Library As shown below: The code is as follows: private void pptToImg(string pptPath, string imgPath) { var app = new Microsoft.Office.Interop.PowerPoint.Application(); var ppt = app.Presentations.Open(pptPath, Microsoft.Office.Core.MsoTriState.msoFalse, Microsoft.Office.Core.MsoTriState.msoFalse, Microsoft.Office.Core.MsoTriState.msoFalse); var index = 0; […]

  • Who said to be PS? This open-source artifact can also be pulled in batch, and the effect is outstanding!

    Time:2021-7-30

    [introduction]: an open source tool that can be used to quickly remove background pictures. After installation and configuration, you can batch operate pictures on the server and command line. brief introduction Rembg is a tool implemented in Python for removing background images. It requires Python version 3.8 or higher. It supports batch operations. It can […]

  • 3 lines of code Python handles picture definition recognition. It turns out that this is not necessarily the case

    Time:2021-7-29

    Under normal circumstances, whether the picture is clear is a perceptual understanding. For the same picture, you may feel that it is passable, while others will feel that it is not clear and lack a unified standard. However, there are some algorithms that can quantify the clarity of the picture, so that there are rules […]

  • Java processing PDF size

    Time:2021-7-28

    1、 Import dependency Import iText related dependencies <!–https://mvnrepository.com/artifact/com.itextpdf/itextpdf–> <dependency> <groupId>com.itextpdf</groupId> <artifactId>itextpdf</artifactId> <version>5.5.13</version> </dependency> <!– https://mvnrepository.com/artifact/com.itextpdf/itext-asian –> <dependency> <groupId>com.itextpdf</groupId> <artifactId>itext-asian</artifactId> <version>5.2.0</version> </dependency> 2、 Encapsulated tool classes import com.itextpdf.text.Document; import com.itextpdf.text.DocumentException; import com.itextpdf.text.Image; import com.itextpdf.text.PageSize; import com.itextpdf.text.pdf.PdfImportedPage; import com.itextpdf.text.pdf.PdfReader; import com.itextpdf.text.pdf.PdfWriter; import java.io.FileOutputStream; import java.io.IOException; public class ModifyPdfUtil { /** *Automatically modify PDF size to A4 size […]

  • 35 lines of code, using Python to generate character painting, which is very suitable for beginners to practice, with source code!

    Time:2021-7-27

    Python character painting is a simple and interesting small program, which is very suitable for beginners to learn (Zhang) and learn (BI). The principle of Python character painting generation is very simple. In a word, it is to replace the picture pixels with different characters, so as to transform the picture composed of pixels into […]

  • Uiimage for IOS development and learning

    Time:2021-7-27

    1. Two ways of loading pictures in uiimage (1) There is a cache (the memory occupied by pictures will always stay in the program), which may cause the program to crash due to a large amount of memory. It can be used when loading a small number of small pictures. + (UIImage *)imageNamed:(NSString *)name; Name […]

  • PHP curl upload binary stream image

    Time:2021-7-26

    preface Module data in the project is controlled byPHPThe crawler updates. When a new picture is detected, it needs to be uploaded to the cross regional CDN back to the source server (static resource server). The server leader only provides oneUpload API resolvent Save the picture locally for reusePHP CURL + new \CURLFile($path)Upload (disadvantage: IO […]

  • AI reasoning of real-time data stream with wasmedge and YoMo

    Time:2021-7-25

    YoMoIt is a programming framework used to assist developers to facilitate the construction of geo distributed cloud system. YoMo’s communication layer is built on quic protocol, which brings high-speed data transmission. At the same time, YoMo has built-in “stream function” of streaming serverless, which greatly improves the development experience of distributed cloud system. The distributed […]

  • BiliBili of Python crawler

    Time:2021-7-25

    Statement: the following contents are my personal understanding. If you find any errors or questions, you can contact me for discussion Introduction to reptiles Website introduction The website crawled this time isbilibili, it is a well-known video barrage website in China. There are timely animation, active ACG atmosphere and creative up owners. You can find […]

  • Exploring front-end black technology — caching data through RGBA value of PNG graph

    Time:2021-7-25

    This article is original, welcome to reprint, please indicate the author’s informationProject address:SphinxJSOnline experience address:https://jrainlau.github.io/sp… When it comes to front-end caching, most people think of nothing more than several conventional schemes, such ascookie,localStorage,sessionStorageOr addindexedDBandwebSQL, andmanifestOffline cache. In addition, is there any other way to cache the front-end data? This article will take you to explore […]

  • Analysis of picture / file upload function realized by ThinkPHP framework + layui

    Time:2021-7-25

    This article describes the picture / file upload function realized by ThinkPHP framework + layui. Share with you for your reference, as follows: It is used in the project and found ready-made code on the Internet. It is an excuse for abnormal or illegal upload, so it will be shared with you after some exploration. […]

  • CSS box model (3)

    Time:2021-7-25

    CSS box model Key point of web page layout: box Box model components Composition of the box Margin (outer margin) Border Padding (inner margin) Content border Border width: the width of the box Border style: the style of the borderDefault: none solid dashed dotted Border color: the color of the border Abbreviation border:border-width border-style border-color […]