crop

Cropping UIImage like camscanner

江枫思渺然 提交于 2019-11-29 23:18:30
I am stuck in my application feature. I want cropping feature similar to Cam Scanner Cropping. The screens of CAM-SCANNER are: I have created similar crop view. I have obtained CGPoint of four corners. But How can I obtained cropped image in slant. Please provide me some suggestions if possible. This is a perspective transform problem. In this case they are plotting a 3D projection in a 2D plane. As, the first image has selection corners in quadrilateral shape and when you transform it in a rectangular shape, then you will either need to add more pixel information( interpolation ) or remove

Crop and rotate images with JS and PHP

梦想与她 提交于 2019-11-29 22:47:26
问题 Having been Googling for a tool for a few days, I have found nothing apart from Kroppr but there's no way I can commit to using a tool that can't be tested locally before deployment. All I need is something that can provide the facility for a user to crop and rotate an image, and have the server save it, overriding the original image. There seems to be plenty of cropping tools out there but nothing that can rotate as well. Is there such a tool? 回答1: No one has answered this yet? Hmmm well I

Cropping CIImage with CICrop isn't working properly

拜拜、爱过 提交于 2019-11-29 22:36:20
I'm having troubles cropping image. For me CICrop filter is not working properly. If my CIVector x and y (origins) are 0 everything working fine (image is cropped from left bottom corner), image is cropped by my rectangle width and height, but if CIVector origins (x and y) aren't 0 in my cropped image becomes space (because CICrop filter cropping from bottom left corner no matter what origins (x and y) are). I'm cropping CIImage with rectangle, source : CIVector *cropRect =[CIVector vectorWithX:150 Y:150 Z: 300 W: 300]; CIFilter *cropFilter = [CIFilter filterWithName:@"CICrop"]; [cropFilter

Android resizable rectangle crop

大憨熊 提交于 2019-11-29 22:32:42
问题 I need to crop a picture using a resizable rectangle based on user touch events. I'm doing this because the crop intent feature isn't supported by all devices, so I'm creating my own. I have the original image as a bitmap and it's displayed on the screen as an image view. Now what I need to do next is have a rectangle (already know size it needs to be) that can be resized and moved for the user to crop the image (Say get a face). How can I create a resizable rectangle like this? 回答1:

How to perform Auto crop for document Recognize image using camera?

半城伤御伤魂 提交于 2019-11-29 20:12:13
I want to make a an application like a cam scanner for cropping a document. But I need same functionality like my two images.. First Images shown image captured by camera.. Second image recognize a captured image part like this.. I research more and more but not getting any out put so, I ask here if,any one done this tell me.. Thanks Here is a exactly same demos that you want to achieve https://github.com/Aniruddha-Tapas/Document-Scanner ( Has auto detection feature ) https://github.com/jhansireddy/AndroidScannerDemo I assume your problem is to detect the object to scan. Object detection

openCv crop image

佐手、 提交于 2019-11-29 17:53:13
问题 I running into problems with my openCv IplImage cropping. Assuming both tmp and img are IplImage* . Using the code: printf("Orig dimensions: %dx%d\n", img->width, img->height); cvSetImageROI(img, cvRect(0, 0,500,500)); tmp = cvCreateImage(cvGetSize(img),img->depth,img->nChannels); cvCopy(img, tmp, NULL); cvResetImageROI(img); img = cvCloneImage(tmp); printf("Orig dimensions after crop: %dx%d\n", tmp->width, tmp->height); when I use the the cvRect above I'll get an image cropped with a size of

Crop Canvas / Export html5 canvas with certain width and height

谁说我不能喝 提交于 2019-11-29 17:50:34
问题 There are hundreds of tutorials, how one can crop an image by drawImage() on a canvas. context.drawImage(imageObj, sourceX, sourceY, sourceWidth, sourceHeight, destX, destY, destWidth, destHeight); However, I have a canvas that fills the user's browser. By exporting the canvas as an image I would like to export only an area of 640px*480px from (0|0). Problem: How can I tell javascript to use only 640*480 of the canvas for the toDataURL()? Here is what I have so far: $("#submitGraphic").click(

jQuery Guillotine - Swap Image

此生再无相见时 提交于 2019-11-29 16:40:58
I am using jquery guillotine to crop image and save to the server but unfortunately when i want to do things dynamically it doesn't work as it should be . I have created thumbnails on the same picture and when you click on a thumbnail it should let you edit that picture and crop etc. I have 3 scripts on the page , 1 ) guillotine , 2) scripts that when you click on thumbnails swaps the small image with the big one , 3) and when you click on crop button gets the values and does the job in php. after i swap the image , i call/run the guillotine but it seems like it is caching the first images

How to overlay one video on another in iOS?

你。 提交于 2019-11-29 15:46:19
问题 I am trying to crop an already taken video into a circle in iOS. How might I go about doing this. I know how I would do it with AVCaptureSession but I don't know to pass in an already taken video as an AVCaptureDevice? Is there a way to crop a video into a circle. I want to overlay it on top of another video so it has to have a transparent background as well. Thanks. 回答1: I guess you want to produce something like this: You don't want an AVCaptureSession , because you're not capturing video.

Crop saved Image using com.android.camera.action.CROP on android

瘦欲@ 提交于 2019-11-29 15:22:20
I have reads many question about this, but I still failed using this code... maybe anyone can corect my code... I want to crop an image from file that i know the location using com.android.camera.action.CROP like this... mImageCaptureUri = Uri.fromFile(f); Intent intent = new Intent("com.android.camera.action.CROP"); intent.setType("image/*"); intent.setData(mImageCaptureUri); intent.putExtra("crop", true); intent.putExtra("outputX", 200); intent.putExtra("outputY", 200); intent.putExtra("aspectX", 1); intent.putExtra("aspectY", 1); intent.putExtra("scale", true); intent.putExtra("return-data"