LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 11-09-2018, 11:10 AM   #1
kzo81
Member
 
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:

Code:
import cv2
import pytesseract

frame = 'axis.png'

img = cv2.imread(frame, 0)

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


cv2.imshow('test', osd)

cv2.waitKey(1000)

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

Thanks,

Zoli

Last edited by kzo81; 11-09-2018 at 05:12 PM.
 
Old 11-16-2018, 06:39 AM   #2
goldennuggets
Member
 
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: https://www.pyimagesearch.com/
 
Old 11-16-2018, 07:41 AM   #3
l0f4r0
Member
 
Registered: Jul 2018
Location: Paris
Distribution: Debian
Posts: 900

Rep: Reputation: 288Reputation: 288Reputation: 288
Quote:
Originally Posted by goldennuggets View Post
Nice!
Maybe https://www.pyimagesearch.com/2018/0...ith-tesseract/ more specifically?
 
1 members found this post helpful.
Old 11-16-2018, 07:43 AM   #4
goldennuggets
Member
 
Registered: Feb 2003
Location: Ohio, USA
Distribution: Kubuntu, Manjaro
Posts: 208

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


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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