Code Monkey home page Code Monkey logo

extract-image-text's Introduction

Read numbers from image

Quick example of reading simple text from image with timestamp with tesseract

Use

  • OpenCV used in example rather than pillow
  • Pytesseract pip install with --user option for administrator
  • Seperate install of tesseract used when pointing to exe (unecessary to add to PATH)
  • tesseract install : https://github.com/UB-Mannheim/tesseract/wiki

FFMPEG commands

Extract 5 minute video from original video (from other drive)

  • I:\ffmpeg\ffmpeg.exe -i 20210430-174053_Gammarus_0001.avi -acodec copy -vcodec copy -copyts -ss 00:00:00 -t 00:05:00 originalvid.avi

The first frame may not be necessary, as it should be possible to crop from the end of the video backwards. For a complete use of ffmpeg, I will extract the first and last frame, and crop relative to the beginning point.

Extract first frame from video

  • ffmpeg -i input -vf "select=eq(n,0)" -q:v 2 output_start.jpg

Extract Last frame from video

  • ffmpeg -sseof -3 -i file -vsync 0 -q:v 31 -update true out.jpg

Extract exact frame

extract-image-text's People

Contributors

ruckapark avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.