Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-09-2018, 11:10 AM   #1
Registered: Aug 2014
Location: Hungary
Distribution: Mint
Posts: 100

Rep: Reputation: Disabled
Read OSD date from avi file

Hi All,

I'd like to read the OSD date from avi files with python or ffmpeg.
I thought that I would extract the first jpeg from the avi file,
find the corner and extract the date from that. I'm currently reading OpenCV's pattern matching docs
Does anyone know an easy way to do this?

I've managed to get the OSD part of an image from my camera:

import cv2
import pytesseract

frame = 'axis.png'

img = cv2.imread(frame, 0)

osd = img[0:15, 0:img.shape[1]]

cv2.imshow('test', osd)


print(pytesseract.image_to_string(osd, lang='eng'))



Last edited by kzo81; 11-09-2018 at 05:12 PM.
Old 11-16-2018, 06:39 AM   #2
Registered: Feb 2003
Location: Ohio, USA
Distribution: Kubuntu, Manjaro
Posts: 208

Rep: Reputation: 24
I don't know exactly, but I do know where to point you to.
I just started his email course (17 day crash course on openCV) and am on day 4.
Search this blog:
Old 11-16-2018, 07:41 AM   #3
Registered: Jul 2018
Location: Paris
Distribution: Debian
Posts: 900

Rep: Reputation: 288Reputation: 288Reputation: 288
Originally Posted by goldennuggets View Post
Maybe more specifically?
1 members found this post helpful.
Old 11-16-2018, 07:43 AM   #4
Registered: Feb 2003
Location: Ohio, USA
Distribution: Kubuntu, Manjaro
Posts: 208

Rep: Reputation: 24
Originally Posted by l0f4r0 View Post
Yes! That looks like the perfect match.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to read date and convert it into yesterday's date ? sysmicuser Linux - Newbie 5 05-03-2018 11:28 PM
[SOLVED] BASH: Keep original mod date of a file and 'date' it back to same file? SilversleevesX Programming 4 07-16-2010 11:12 AM
Bash script to read file and alter lines depending on create date ChristianHein Linux - General 13 08-04-2007 05:39 AM
mount .iso (image) file and read *.avi file smartdragonfly Linux - Software 2 12-21-2006 04:48 AM
php read file creation, modified date problem antony_csf Programming 3 08-18-2004 06:46 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:57 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration