Questions tagged [image]

52816 questions
1

votes
3

answer
1.4k

Views

How to center a left-aligned image on mobile?

The image on my home page is left aligned. While it looks great on desktop, it does not look good on mobile I am trying to 'center' the image defined by .entry-image.attachment-post.gsfc-alignleft on mobile views. I have tried the following without success : @media all and (max-width: 675px) { .entr...
Guillaume F.
1

votes
0

answer
97

Views

Store image in sqlite from variable

I created this database public void onCreate(SQLiteDatabase db) { String query='CREATE TABLE '+tableName+' ( ID INTEGER PRIMARY KEY AUTOINCREMENT, ' + col1+' INTEGER, '+col2+' String, '+col3+' String, '+col4+' String );'; db.execSQL(query); } to sotre an image with some informations in a list I get...
Hossame Makhlof
1

votes
1

answer
263

Views

Binary Segmentation of an complex image in python. [closed]

I was trying to implement a binary segementation for my project work but I got stucked with the binary segmentation code. I just want to a get a continuos segmentation of a player and background in the picture like this image (A proper segmentation of a hand). imgort numpy as np impo...
kanik garg
1

votes
0

answer
103

Views

Stucky dithering as custom CIKernel does not work

I'm trying to implement Stucky dithering (error diffusion) as a CIKernel but I am a bit lost. I don't find a way to debug the filter (I m new to CIKernel). Here is what I have came up so far, but the kernel does not compile, plus, I wonder how I could store the spreaded error to the destination pixe...
Stéphane de Luca
1

votes
1

answer
128

Views

How to pair screenshots with videos?

I have folder with short videos and folder with images. Most of the images are sceenshots from one of the videos, but they may not be exactly the same (different size, noise, loss of details because of compression, etc). My goal is to match every image with video it was taken from. So far, I use Ope...
velblúd
1

votes
1

answer
316

Views

How to threshold any image (for black and white color seperation) in java?

SOLVED : Issue was 'jpeg compression'. Saving as '.png' worked. I had detected edges of an image using a canny filter program in java. After applying filter ... This is my image If zoomed in ... Zoomed All have different shades of black and white. I want all my edge pixels as pure white(#FFFFFF) a...
DHS
1

votes
0

answer
35

Views

How to approach focus stacking (super resolution) with GetUserMedia() in pure javascript

I have a use case where I will be capturing a video via GetUserMedia and extracting frames that contain an object. I would like to take the candidate frames and merge them together to create a sharper image. I know I can use Blend Mode Differences (https://en.wikipedia.org/wiki/Blend_modes#Differenc...
rmhrisk
1

votes
1

answer
49

Views

Re-use images in an image field with drupal 8

I have created an image field and I would like to be able to select an image already used in another content. Is there a module to do that from the 'Add new file' button of the field? Thank you for your help
Pascal Pivaty
1

votes
1

answer
20

Views

Image not taking whole of the space in the DataGridCell

I have a Datagrid, which shows thumbnails of some image files along with other data. I am using a converter to crop part of an image and then show that cropped image in the Datagrid. Here is the screenshot of the grid: The image is showing fine, but it is very small.If I change the width of columns...
V K
1

votes
1

answer
68

Views

React Native Image URL lowers my performance

When I display my images in the horizontal scroll-view with paging enabled the performance of app decreases. I know it is due to high resolution of the image. I want a good way so that I can load image with out degrading it's quality. Thank you in advance.
Alish Manandhar
1

votes
1

answer
157

Views

Edge based binarization

I am trying to implement the edge based binarization algorithm that was written in the research paper 'Automatic License Plate Recognition Using Deep Learning Technique' but i as i implemented it i get the final image all black and can not find the problem. import cv2 import numpy as np def edge_bas...
Ibrahim Sherif Yahia
1

votes
0

answer
56

Views

Plotting numbers of features in EBImage in R

I have a question regarding the computeFeatures function of EBImage. I used the following code to compute the features. biocLite('EBImage') library (EBImage) Image nmask = opening(nmask, makeBrush(5, shape='disc')) > nmask = fillHull(nmask) > nmask = bwlabel(nmask) Cell bodies are segmented using...
TwanK
1

votes
0

answer
640

Views

Applying a specific High pass filter on a RGB image in numpy

I'm trying to preproccess my image before feeding it to the CNN. Goal To extract the residual after applying a high pass filter( Reference 1 ) on a RGB image of dimensions 512x512 ( basically a shape of (512,512, 3) ) using the following equation: link to image where I is the Image and the matrix is...
Pradyumna Rahul
1

votes
0

answer
125

Views

Method to separate dotted numbers from an image

I'm going to do a specialized OCR system which recognizes the above dotted numbers. (The sample picture may not contain all special cases - see below. ) We decided to separate the number string and recognize each digit before we put them altogether to form a final result. The question is: How to cle...
Aurus Huang
1

votes
2

answer
126

Views

Drawing a simple line on a JPEG image

I'm stuck again with an apparently simple question. I loaded a JPEG file into a CGImage. I got the correct values for width and height (in pixels) and was able to show 'myImage' in a ImageView Controller. But I wanted to add some graphics on this image and found that I should instead get it into a N...
user8889350
1

votes
0

answer
768

Views

Sobel edge detector in R?

I am working on an R assignment about Sobel edge-detection. Unfortunately the video tutorial I was following uses R for every other task, but switches to python for image processing - I am guessing he did not find any useful R package for image convolution type work (this tutorial is from last year)...
Manojit
1

votes
1

answer
174

Views

How to load all the Images using Media Store?

I want to load all the Images present in the users device. I know that Images can be loaded using Media Store but the biggest drawback for me is that the Images which are present in the folder having .nomedia file are not loaded/retrieved using Media Store. Is there an efficient way using Media Stor...
Rajesh K
1

votes
0

answer
75

Views

What's the best idea to remove defferent backgrounds from images?

I want to convert this photo: to this one: And this photo: to this: And son on. I thought I can use color threshold but what if there are some pictures or content inside the photo? because I don't like to damage them and only want to remove the background. So, as I am new in OpenCV and Image process...
Hasani
1

votes
2

answer
2.5k

Views

ERROR: Image is not defined (trouble using Image() function)

I use a very simple piece of code (but then obviously with my image instead of Image.png). I am trying to give my canvas a background image. var canvas = document.getElementById('canvas'); ctx = canvas.getContext('2d'); var img = new Image(); img.onload=start; img.src='Image.png'; function start(){...
NTMN
1

votes
1

answer
60

Views

move_uploaded_file(); not working

I've just written a script to upload images and i've checked it for a long but I can't find where is the error. The entire code do what it's supposed to do but the move_uploaded_file(); function doesn't. Here is my code: HTML: Subir imagen: JS: $(function(){ $('input[name='file']').on('change', fu...
Ismael Quirantes
1

votes
1

answer
411

Views

Implementing a License plate detection algorithm

To improve my knowledge of imaging and get some experience working with the topics, I decided to create a license plate recognition algorithm on the Android platform. The first step is detection, for which I decided to implement a recent paper titled 'A Robust and Efficient Approach to License Plat...
Gooey
1

votes
1

answer
209

Views

Why did UIImageWriteToSavedPhotosAlbum save a red image after rendering?

I wrote a code using GPUImage2(https://github.com/BradLarson/GPUImage2). I confirmed that my code successfully save an image before touching a set button (Rendering a filtered image). However, my code save a red image (same size, only red filled) after touching a set button. My App. includes a Rende...
MOV
1

votes
0

answer
486

Views

React-Native image pinch-to-zoom using PanResponder (Icon as maps)

What is the best way using react-native to set a pinch-to-zoom image, where i can place icon/button? as google maps when you are zooming icon keep position (when you zoom on the picture, icon(store/bank/metro/...) keep absolute position). Me i want this but only on one picture (1 plan) Im trying to...
btbenjamin
1

votes
1

answer
57

Views

How do I pass multiple images uploaded through a JS function and then submitted with the form?

I'm trying to have multiple images uploaded by a user passed through a function and then processed with the submit of the form. I have the following form which takes in the users upload files:
clutch1020
1

votes
0

answer
195

Views

Evaluating a double integral in Matlab with Dirac Delta function

For an image processing project I need to calculate the following Integral in Matlab. delta is the dirac delta function. But the Problem is when I calculate some samples the output is always 0. My matlab code is as follows: fun = @(x,y) dirac(0 - (x * cosd(135) + y * sind(135))); q = integral2(fun,...
Olli Ver
1

votes
0

answer
382

Views

How to save the false positive and false negative of confusion matrix in image classification by using SVM?

I have successfully classified two classes of image using support vector machine and correctly calculated the confusion matrix. Here is my codes: import sklearn from sklearn import metrics from sklearn import svm from sklearn.svm import SVC from sklearn.metrics import accuracy_score, f1_score, preci...
Vosco
1

votes
1

answer
263

Views

Wordpress plugin using wp.media to crop images

Im using this function in my new Wordpress plugin development, this works ok, using Wordpress Media Uploader for image upload, but I need to use a predefined crop functionality to crop the image after upload and I don't know how do it. function wilson_newsletter_media_library(big_parent){ var frame_...
Wilson PHP
1

votes
1

answer
586

Views

Upload multiple images to FTP server in iOS

I'm developing an application in swift 4. In it, I want to upload multiple images to FTP server. I have tried to do with https://github.com/Constantine-Fry/rebekka but could not build getting error saying Xcode 9 does not support building or migrating Swift 2.x targets. Also tried with https://gist...
RP89
1

votes
0

answer
85

Views

Custom Imagenet Dataset

I want to make my own custom dataset of imagenet taking 20 classes out of 1000. I am able to convert it to TFRecords format but I want a keras friendly version for it as keras is more flexible for me.
Ayush Agarwal
1

votes
1

answer
46

Views

ImageViewPager Wrapping height dynamically according to the child image (view)

Is there a way to dynamically set the ViewPager to wrap the child image just nice without leaving any space in between the height of the view pager and the top and bottom of the image? I tried using the solution of https://gist.github.com/egslava/589b82a6add9c816a007 But the solution in the link onl...
WiL BaJaMas
1

votes
0

answer
169

Views

Tensorflow: correctly loading results from training - (image, label) from Tensorboard does not match loaded (image, label)

I have a trained neural network model that I'm trying to load with Tensorflow. I trained the network on an (image, label) dataset, where the label is a 2D array. When I see the images and labels on Tensorboard, everything looks fine. In seeing the results of the training with Tensorboard, I see t...
haxtar
1

votes
1

answer
86

Views

How to store irregular shapes as a UIImage?

I used this GitHub Repository to make an image cropper that could crop images into irregular shapes. As of right now, I have implemented this repository and am able to crop UIImages in irregular shapes as depicted in the link. In its current state, the cropper uses a UIBezierPath and a CAShapeLayer...
Mitch Kelly
1

votes
1

answer
190

Views

image processing : Segregating panel vs house like structure

I am working on a problem that involves segregating solar panel vs house. Both the house as well as panel are of same color. NOTE: There are two houses in the image. I am referring to the one which is bluish. PFB the image as well as my approach. Any insights how to deal with such situations are wel...
vijju
1

votes
2

answer
896

Views

Onclick image show div

I'm trying to hide a section of the page until a button is clicked, whats the best way to achieve this? I have attached an image below encircled in red is the button I want to work as a toggle to show the content of the laptops section. Currently if you click the image it just opens a tab with an...
harry
1

votes
0

answer
1k

Views

How to upload a image to firebase storage using react native and expo?

I am trying to set a profile pic and upload it to the firebase storage in my ios app using react native. I am using the following code to upload the image:- _pickImage = async () => { let result = await ImagePicker.launchImageLibraryAsync({ allowsEditing: true, aspect: [4, 3] }); this.setState({ ima...
anup
1

votes
1

answer
291

Views

In android Studio Image is not showing in preview

I'm using ImageView in AndroidStudio but AndroidStudio doesn't show my image in the preview. Please find the below screenshot:
faizal mohammed
1

votes
1

answer
430

Views

How to convert URI of image to image file in python

My program makes a simple chart using pygal, and outputs the chart as a URI string. I want to convert this URI into an image that I can then manipulate with pillow. I've tried decoding the string but haven't been able to make it work. The current version of my code takes the URI and converts it into...
Infinity
1

votes
1

answer
458

Views

React Native Local Image Load Times

I am relatively new to React Native, but enjoying it so far! I'm currently using a FlatList to render some data. Each row of the FlatList uses a couple icons (.png) that are saved locally. They are pretty small, less than 100x100, but when I load up the app, there is a delay in the images being rend...
Connor
1

votes
1

answer
75

Views

Laravel. How to put put image from Laravel public folder and to put it into database

maybe somebody could advice me. I have images in Laravel public/images folder and now in my dishes table im trying to put image from public folder public function up() { Schema::create('dishes', function (Blueprint $table) { $table->increments('id')->unique(); $table->string('gamintojas', 20); $tabl...
moniqu
1

votes
1

answer
1.3k

Views

Drawing a histogram in opencv python

I want to detect lane departures of vehicles by processing front camera video.For that I want to select one pixel line of each frame horizontally and analyze how those pixels colors change. For that I want to draw histograms for R,G,B channels which has pixel number from left to right in x axis and...
SSR

View additional questions