Questions tagged [image-extraction]

53 questions
1
vote
3 answers

Extracting images from PDF using pypdfium2 (Python)

I am trying to extract images from a PDF document using this specific library: pypdfium2 (https://pypi.org/project/pypdfium2/). I would love to use PyMuPDF instead (given it's excellent speed and versatility), but because it uses a copy-left license…
1
vote
1 answer

Extract selected area from image

I have image in UIImageView where user can draw specific selection on image and I want to cut or extract specific area from that image with the help of path drawn on image. Source Image: head selected: tail selected: I have follow this Image…
Azhar Tahir
  • 185
  • 1
  • 11
1
vote
1 answer

Identify red colored parts of an image and extract only their intensity - Python

I am trying to analyze the red wells with different intensities from the attached image. I want to analyze how the intensity of each red colored well differs from the others. Does anyone have a solution without using the following code: import numpy…
1
vote
1 answer

PDFBox: ExtractImages JPEG2000 images not extracting

I am trying to extract all the images in a PDF file using PDFBox. Its working fine for the pdf containing jpeg and png images. But it is not working for OpenJPEG2000 images. I am getting the below exception: Getting the below…
Guna Sekaran
  • 99
  • 1
  • 1
  • 11
1
vote
2 answers

python extracting date

I need to extract a date from a jpeg format, I have extracted the text from the jpeg in the form of a string & have used regex to extract the date, Text from JPEG Cont:7225811153; BillNo4896TableNoR306 07-Jun-201921:18:40 Code used Importing regular…
Sid
  • 163
  • 7
1
vote
0 answers

PdfBox image extraction: the library extracts all the images from document for every page

I have a test PDF file with an image on every page: 4 pages, 4 images. The PDF file was created by converting corresponding Docx file into PDF using Libre Office. And, here is С# a function to extract all the images from the PDF document: public…
Alex
  • 842
  • 11
  • 33
1
vote
3 answers

Java: Checking if image moved

I want to look within a certain position in an image to see if the selected pixels have changed in color, how would I go about doing this? (Im trying to check for movement) I was thinking I could do something like this: public int[]…
J Code
  • 454
  • 1
  • 7
  • 20
1
vote
1 answer

How to batch extract images from a PDF

TL/DR Version: How do I extract the image out of the Type B file below. Note that there are around 600 such files so I would prefer some sort of batch operation. Type A Type B Details: I'm redesigning my company's online catalog an need top extract…
147
  • 582
  • 8
  • 20
1
vote
0 answers

Get Visible Signature from a PDF using iText?

Is it possible to extract the visible signature (image of capture) of an signed PDF with itext? Workflow: list all signatures of a file show with signatures include an visible signature show which are valid extract images of signatures (need to…
ctvoigt
  • 125
  • 2
  • 8
0
votes
2 answers

Extract image of UISegmentedControl on iPhone

I am using UISegmentedControl (with only one segment) as a button. But problem with this is one cannot change font size in UISegmentedControl (possible in iOS-5+ but I am targeting lower versions devices). Is it possible to extract image of…
chatur
  • 2,365
  • 4
  • 24
  • 38
0
votes
2 answers

indexing area in numpy 2D array, using a 2D array providing the indices

Suppose I have a numpy 2D array and I want to index or extract a region of it using another 2D array which provides the index pairs, similar as in https://stackoverflow.com/a/14999290/17173241:: a = np.arange(36).reshape(6,6) >>> a array([[ 0, 1, …
0
votes
0 answers

how to generate frames using ffmpeg `select` filter with custom function

I got a video, and want to generate some frames to be my video cover candidates which should satisfied with some conditions below: frame in vary scenes. frame contain person with good look, no eyes closed and etc. I found ffmpeg select filter…
Ricky
  • 11
  • 2
0
votes
0 answers

to classify the extracted text from images into spam or non spam using python

<** extract text from all the images in a folder storing the text in a single file from PIL import Image import pytesseract as pt import pandas as pd from tabulate import tabulate from io import StringIO import os import json import csv def…
0
votes
1 answer

Have: Image file with multiple images; Want: to extract, save each image

I have scans from a clip art book; each page was scanned to tiff; each tiff has approximately 18-20 clip art images—how would I automate the selection and extraction of each of these 18-20 images, retain color depth/ppi, and save each clip art image…
0
votes
2 answers

API to retrieve images from within an image or pdf

I am looking for a way to extract images from within another image. For example: Here is a picture taken of a paper. It includes text, an image of a camera, and an image of a qr code. Is there an API that can possibly extract those two(camera and…