Questions tagged [crop]

Crop refers to any issues relating to cropping images.

Filter by
Sorted by
Tagged with
0 votes
0 answers
16 views

How to crop rectangles surrounded by black without know the coordinates?

I have the image below with almost all background in black. Is there a way to crop rectangles surrounded by black without know the coordinates, were: height > 400px height about 144px height ...
Rasec Malkic's user avatar
0 votes
0 answers
17 views

Grab text from archive.org-file and put it into a plain text file

I have an old book from archive.org which I want to play with. The book contains old texts i want to analyse, so I want to convert into plain text. The pages on archive have good OCR, so I could ...
ankylosHryax's user avatar
0 votes
1 answer
34 views

How do I detect the edge of a scanned baseball card and crop the image to just the card with python?

I'm scanning a bunch of baseball cards in protective sleeves. I'd like to crop just the card or slightly more then the exact edge of the card. I've been using Python for the past few years and would ...
TechDH's user avatar
  • 3
0 votes
0 answers
20 views

Is it possible to disable the bounding box in yolov8 after crop?

I want to make a crop of an object found by YOLOV8. I already have a trained model which detects the object and cuts it out but the bounding box always remains in the cutout. I don't know if it is ...
Jesús Enrique García Garnica's user avatar
0 votes
0 answers
21 views

Summing data from time points, sequentially in r [duplicate]

I have data on yields of multipick crops across several weeks of picking. I would like to add the yields for each week to show an accumulation across the season. Here is a small reproducible example ...
Ben Phillips's user avatar
0 votes
0 answers
36 views

How to display an Image object (from the Image package) in my Flutter app

I want to repeatedly crop different parts of an image (that I have loaded from my app's assets) and display this cropped part. I am using the copyCrop method from the image package to get a portion of ...
Andrew's user avatar
  • 1
-1 votes
0 answers
14 views

I want to convert text in an image to string. Tried Pytesseract

I have tried many methods like Pytesseract but no response returned. Should I do another picture? Or how to arrange external elements? I want to cut just the text and make it horizontal. to convert ...
Jakkrapon Rungreung's user avatar
0 votes
0 answers
20 views

Raster crop not wokring

After importing a .tiff as rasterLayer, I want to crop it to certain geographical location. I'm using the following piece of code rawData <- raster("myFile.tif") focusedCoordds <- ...
AnmolPardeshi's user avatar
1 vote
2 answers
88 views

How to create an OrientedBoundingBox from Depth image and bounding box

I want to crop a poincloud using the segmented mask (rectangle) and depth image, (I can consider that there is no rotation for now). import open3d as o3d ## dummy pointcloud demo_icp_pcds = o3d.data....
bhomaidan90's user avatar
0 votes
0 answers
22 views

Why do I have to print my canvas twice with html2canvas to get the right height?

We're developing an AngularJS application in which I want to convert a div to an image using html2canvas. The issue is that it seems to crop the image at a height of about 1000 pixels. That is, unless ...
gib65's user avatar
  • 1,755
0 votes
0 answers
46 views

SwiftUI - How to crop the original image (using CGImage) after scaling and moving it?

I've been trying to solve the problem for a long time, but I can't. I will really appreciate your help! Right now I'm struggling with determining the coordinates (Offset) of the first point of the ...
iSeek's user avatar
  • 1
0 votes
1 answer
25 views

Non-destructive image cropping in react native; zoom and pan with bounds

My goal is to implement something like non-destructive image cropping, where the aspect ratio is maintained, in my React Native app. As a proxy for this, I thought I could allow the user to zoom and ...
resistor's user avatar
  • 192
-2 votes
1 answer
75 views

How can I draw a selection rectangle on GraphicsView with dark area outside rectangle?

I am new in Qt and I have created an Image Viewer application and I want to crop the image on my graphicsview with dark area outside of rectangle.Something like this: enter image description here I ...
mah's user avatar
  • 1
0 votes
0 answers
54 views

Log error: Input dispatching timed out (ImageCropperActivity (server) is not responding. Waited 10005ms for FocusEvent(hasFocus=false))

Goal: I upgraded my app to Android 13 and updated code for the permissions as per: https://developer.android.com/about/versions/13/behavior-changes-13#granular-media-permissions Problem: QA noticed ...
angleUr's user avatar
  • 461
0 votes
1 answer
43 views

Higher pixels image are not cropping properly in react js when using react image crop package

I am playing around cropping and zooming the image and it is almost done as per my requirement but using images higher than 700 pixels, the crop image is not cropping properly. I tried to change the ...
Guruprasad Saroj's user avatar
0 votes
1 answer
49 views

Imagemagick crop doesn't seem to be respecting gravity center

bulk cropping PNG images which were previously rotated with Imagemagick using convert thistle-7gn.png -rotate 75 thistle-7gn-75.png this command magick thistle-7gn-75.png -gravity center -crop ...
spinhead's user avatar
0 votes
0 answers
29 views

Telerik Xamarin Image Editor Cropping

I'm developing an Android app that can capture image from the camera. Currently there is a toolbox bar from Telerik where I can do the image editing such as Cropping. However, I want to preset the ...
Wilson's user avatar
  • 1
0 votes
1 answer
36 views

Crop the current touch point on a UIScrollView and display it in a UIView

I'm working on a drawing feature. I need the user to be able to see what is being drawn under their finger. The photo is inside of a UIScrollView. I basically just want to crop the area around the ...
Gavin Wright's user avatar
  • 3,152
-3 votes
1 answer
46 views

How can I crop Image on-the-fly using FREE API (or a single line of code)?

I am figuring out a way to crop the images in the database on-the-fly for using it at various solts, positions and different pages on my web site. Is there a solution to do it seamlessly? I tried ...
Pulkit A's user avatar
0 votes
0 answers
51 views

How to change the Cropper.js fixed size while cropping image?

While cropping, I want this image to be positioned in the middle of my modal and in large size, but I am not able to change it. When I try to add height, width on div and image inside modal-body, it ...
Afraheem Raz's user avatar
0 votes
0 answers
37 views

Unable to get basic svelte-easy-crop example to work

I am trying to use the svelte-easy-crop library but I can't get it to work. I am trying to use the extreme basic functionality as suggested in the readme: <script> import Cropper from 'svelte-...
GR4's user avatar
  • 203
0 votes
1 answer
81 views

How to avoid onCropComplete useCallback function gets stuck in infinite loop when updating state of other variable?

I'm trying to get react-easy-crop to work. The code successfully shows a button (Upload file) which triggers a screen to select a picture. Once the picture is taken, a new modal appears and this modal ...
MatisDS's user avatar
  • 163
0 votes
0 answers
42 views

Cut out image sections from a rotated image with a maximum of 10% filled pixels

I've been using Python for a while, haven't really had any contact with CV2 yet. As a starting point, I have a 1280x720 pixel image, which I filled up to 1475x1475 pixels. The image is now rotated by ...
Aladin's user avatar
  • 23
0 votes
0 answers
131 views

bug in Android Image Cropper for Android 13

I am working on an application that captures photos (using CropImage) and later wishes to resize them. My issue is that my code works on a phone running Android 10, but when I use an Android 13 device ...
LouZaa's user avatar
  • 31
2 votes
1 answer
100 views

Crop an Image with an angle in Swift

I have an Image of 400 x 300 pixels. I want to crop a portion of the image with 200 X 100 pixels but with an angle say 30 degree. Please check the image for easier understanding... What I have tried ...
Joya Roy's user avatar
0 votes
1 answer
113 views

Crop and extract polygon(not rectangle or square) out of an image using its 4 coordinates in flutter using dart

I am working on a image Cropper, where I want to crop a random 4 sided polygon which is not a square or rectangle. In dart in image package we have copyCrop and copyCropCircle functions. Using these ...
Priyanshu Paliwal's user avatar
0 votes
0 answers
29 views

3D model removing some part and changing texture of a specific vertices

I am trying to crop and edit a 3d model which I created using photogrammetry ,I tried multiple solutions but seems like none of that worked , posting in urge of guidance , let me address what I did , ...
premanshu's user avatar
0 votes
1 answer
24 views

How to Crop a Frame With Jquery no Canvas

I need to make a knight for chess(a new project I'm working on). I have a sprite sheet of all the pieces, but I am stuggling to use just one. I need a single piece in a 130px by 130px square. I chose ...
Newbie_Coder's user avatar
0 votes
1 answer
55 views

imagemagick Obtain a rectangle by two corners and a point on the opposite edge

Suppose I have a scanned image. The green part is what valid for me, and I would like to obtain that part from the oringal. Right now, I am doing a lot of manual calculation and then using "-...
sofname's user avatar
  • 439
0 votes
0 answers
29 views

How to crop a CameraImage (Y'UV 420) in Flutter

I am struggling to effectively crop a region of interest, i.e a bounding box extend on the CameraImage type, I have image coordinate parameters that defines the area of interest in the image plane, I'...
Heap's user avatar
  • 1
0 votes
2 answers
48 views

Crop modal images only when small + separate thumbnail image

EDIT: IMAGE OF WHAT I'M AFTER FOR CLARITY: [here] (https://thepasteldyke.neocities.org/misc/attempts.png) I've been starting off with w3s's modal images, which led me to this site because it has a lot ...
Frejr's user avatar
  • 5
0 votes
0 answers
15 views

Cropping and resizing images so they fit an canvas in rails

We are looking for a solution for a web application to resize images based on a predefined canvas. Similar to Linkedin Profile image (square) and the page header. I want to define the canvas (aspect ...
Steven K's user avatar
0 votes
0 answers
62 views

srec_cat "crop" output not retaining the original s19 file mapping format

I need to crop the build binary(.S19) at a specific address. I tried using the command- “srec_cat infile.s19 −crop start_addr end_addr −o outfile.s19”. The outfile.s19 is not retaining the original ....
juvi ud's user avatar
0 votes
2 answers
58 views

How to crop a div

I need to crop a div to fit the size of an image, and be placed on top of it. Basically I'm trying to draw a black box on an image I have on a webpage. Code: <div class="col-9" style=&...
NeverRests's user avatar
0 votes
0 answers
29 views

SVG: dynamically crop a specific PATH element

I'm going mad cause I'm not able to achieve my target. I need to dynamically crop the level of the tank (silo) that is pointed by the dasched line rectangle in the image attached. According to the ...
mikeardy's user avatar
0 votes
1 answer
32 views

CSS Style not being applied completely

I am trying to crop the right side of the embedded website within the iframe with right : -80px;. Everything seems to work but the cropping of the right side. <html lang="en"> <...
Displayname's user avatar
0 votes
1 answer
82 views

Cropping image with "bad white" background while keeping a photographic scale

I have >1k photos with "bad white" background and a photographic scale. I need a proper white background to put them for publication. However, I would like to avoid to crop them all in ...
lekythos's user avatar
  • 113
0 votes
2 answers
126 views

Crop image opencv python

Please help me crop this image. I need to split the image below into two images to compare them, but I want to cut them in such a way that the two cropped images have the same size and remove the ...
Peter Basaw's user avatar
0 votes
1 answer
60 views

Cropping a masked clipped image

I have created an SVG mask that allows showing only a certain part of an image. Here is the code for that: .svg-defs { position: absolute; width: 0; height: 0; } .container { position: ...
Greeso's user avatar
  • 7,682
0 votes
1 answer
35 views

Problem in processing with multiple .nc files in R

I am using following code in R to subset a 1 .nc file while extracting 1 variable. The code is running successfully. I want to modify the existing code to input and process multiple .nc files. I tried ...
Alexia k Boston's user avatar
0 votes
0 answers
35 views

Difficulty in subsetting multiple .nc files

I am using following code in R to subset a .nc file. It is running successfully. My problem is that when I am modifying the code for multiple .nc files, it is not working and giving me error. Code for ...
Alexia k Boston's user avatar
0 votes
1 answer
28 views

Unable to create a rasterlayer while attempting to read in spectral bands

I am loading the bands of Landsat8 to plot my vegetation indices but getting this error - Error in .rasterObjectFromFile(x, band = band, objecttype = "RasterLayer", : Cannot create a ...
BigTeecodes's user avatar
0 votes
1 answer
214 views

Bounding Box Cropping

I did object detection. And I got it in the bounding box. I'm trying to crop inside the bounding box. but it doesn't work. in debug mode, it gets stuck on the if line. THANKS!!! result....
SILA's user avatar
  • 72
0 votes
1 answer
48 views

Produce borderless image with the `dot` command of graphviz

Currently when I produce an image with graphviz, I get a border which is pretty hard to auto-remove without rasterizing the PDF: echo 'digraph { a -> b }' | dot -Tpdf > output.pdf Produces the ...
TheChymera's user avatar
  • 17.2k
0 votes
1 answer
70 views

React: State not updating properly in a React component using "react-easy-crop"

I'm having trouble managing state in a React component that uses the react-easy-crop package. I store the crop state of the image in my component state and update it based on the user's actions. The ...
petru tirla's user avatar
0 votes
1 answer
353 views

How can I crop an image captured with Flutter camera based on a rectangle overlay?

[Flutter] How do I crop the image based on the overlay on top of Camera function? I set the image to this: final image = await _controller.takePicture(); I want to crop the image based on the ...
Noah Iskandar 's user avatar
1 vote
1 answer
58 views

ImageMagick cropping with the incorrect dimension

I tried with cropping images to 5862x367. However, it crops to 367x5862. I tried the following code: convert -crop 5862x367+0+0 +repage "/Users/ramakrishnanbalakrishnan/sites/img/test_in.JPG&...
Rams's user avatar
  • 53
0 votes
0 answers
26 views

How to keep the original image after cropping in PIL for easy adjustment later?

I am trying to group crop a folder full of images using PIL, basically resizing them from PC wallpapers to iPhone wallpapers. Sometimes, it crops in a way which works. But other times, a slight ...
Ollie C.'s user avatar
0 votes
0 answers
24 views

How To Crop Multiple Images Separately

I'm working on an app where user can upload three images at once but I'm having problem handling the onActivityResult() method. I can Crop one image using the codes below private ImageView image1; //...
Neldison's user avatar
0 votes
0 answers
156 views

How to crop any images as 16:9 rectangles with Swift?

I have been trying for several days without succeeding, as said in the title, to crop any images as 16:9 rectangles. In fact, I want to create thumbnails, doing the following: cropping, resizing and ...
Alexnnd's user avatar
  • 575

1
2 3 4 5
63