Questions tagged [processing]

28924 questions
1

votes
1

answer
331

Views

How to improve the resolution of EffectComposer in Three.js?

I am using EffectComposer to apply skin effect to my avatar. However, the final resolution looks quite blurry compared to the version without post-processing. I have tried to change pixelRatio setting, but without much success. I'm using the code in the following example: https://threejs.org/exampl...
Igor Almeida
1

votes
1

answer
206

Views

Data parallelism in Tensorflow. Which one is better?

I came across 2 examples of data parallelism in Tensorflow. 1) The CIFAR-10 example: https://github.com/tensorflow/models/blob/master/tutorials/image/cifar10/cifar10_multi_gpu_train.py#L65 2) Effective Tensorflow https://github.com/vahidk/EffectiveTensorflow As I understand in [1] We create a new co...
Rahul
1

votes
0

answer
56

Views

Normalizing image sizes based on batch average content dimensions?

I have several thousand images of textual content that should be roughly the same font size and content block size. The images were captured in such a manner that the actual content sizes are variable, but shouldn't be. These images are trimmed so that all of the images have different dimensions,...
ylluminate
1

votes
1

answer
77

Views

Image fusion of greyscale images using java and opencv gives strange results

I am currently trying to fuse radiological greyscale images using java and the OpenCV wrapper. I wrote some code to find alike images in a database and fuse them. The fusion part is where I am struggling.This is the method I am struggling with: public BufferedImage registerImages(BufferedImage sourc...
F. Zi
1

votes
0

answer
63

Views

UI lag when play high frame rate multi-videos

For now, my app need to play two videos at once. My idea is using two MediaPlayerElements to play that two videos. My app run normally when it run in a high perfomance PC, but when I run my App in lower performance tablet my App's UI is very lag. So hardware perfomance affected my App. In both case...
GIANGPZO
1

votes
0

answer
113

Views

PeopleSoft Application Engine debugging - any way to pre-set breakpoints?

I am using Application Engine in debugging mode. Works well, but every single time I need to re-specify my breakpoints from scratch (yes, aware of history scrolling via up/down arrow, not what I want). Here's a command script, runAE.cmd, I wrote to automate the launch: 'C:\Program Files\PeopleSoft-...
JL Peyret
1

votes
2

answer
74

Views

Rotating a template to match an edge

(I use MATLAB R2015a). I have a plot of edge points of an object (obtained using edge detection), and I have a plot of the template of the object. I want to rotate the template until it matches with the detected edge points. (Figure link included: solid blue - template, red dots - edge detected poin...
Aadhy
1

votes
0

answer
30

Views

Using Parallel process to update object attributes in main process

I've been looking into the multiprocessing module to figure this out but I'm not entirely sure of all the components I need or how to structure them. The basic structure/logic that I'm trying to get goes something like this though: import datetime import time import multiprocessing class So_Classy(...
JoB
1

votes
0

answer
54

Views

fast 3D histogram python

I am looking for a fast way to itereate over pixels and create a 3D histogram and return an array sorted by the most used colors. My actual code is : def hist_3dhist(im): hist = {} for h in range(im.shape[0]): for w in range(im.shape[1]): if im.shape[2] == 4 and im[h, w, 3] == 0: ## if transparent...
pensfute
1

votes
0

answer
73

Views

Matlab parallel processing with big data [duplicate]

This question already has an answer here: Sending data to workers 3 answers Saving time and memory using parfor? 2 answers I'm new to parallel processing, here's my problem: I have a big data variable that cannot fit twice in RAM. Therefore, this won't work: for ind=1:4 data{ind}=load_data(ind); e...
user2305193
1

votes
0

answer
49

Views

Counted objects are not accurate in many cases in image proceesing

Before you flag the question please read it first- I found How to count the number of objects detected with Template Matching?, tutorial and it's good but not perfect. The problem with this and what I am facing is that, It's not giving accurate counts, but draws the rectangle around all the found(o...
the.salman.a
1

votes
1

answer
1.1k

Views

The output of cv2.VideoWriter is incorrect. It's faster

I'm trying to use opencv's cv2.VideoWriter to record a video for certain time. The problem is the output is incorrect. For example, the video for 10 seconds only got 2 seconds, and it plays faster like speed up. Here's my code. Any suggestions or ideas are welcome. Also, another problem is that the...
user3470406
1

votes
1

answer
174

Views

MPI matrix multiplication

I'm trying to make an MPI matrix multiplication program but the scatter function doesn't seem to be working for me. Only one row is getting scattered and the rest of the cores receive garbage value. Also when calling the display_matrix() function before I MPI_Init() seems to be running 4 threads ins...
aBDYsINGH
1

votes
0

answer
206

Views

Fails to crop video with ratio height = width using FFMpeg on Android 7

I am using FFMpeg Android this link in our Android app crop the video to 1:1 ratio i.e height = width The below command works great on Android devices with Api < 24 but Fails on Api 24. I have also pasted my log analysis below, appreciate if anyone can help me fixing this issue. public static Strin...
Babs
1

votes
2

answer
1.2k

Views

OpenCV C++ error using cvSaveImage Error:Assertion failed ((flags & FIXED_TYPE) != 0) in cv::_InputArray::type

Im relativly new to OpenCV. In this case I tried to save an image using cvSaveImage after making some processing, but this error was thrown Assertion failed ((flags & FIXED_TYPE) != 0) in cv::_InputArray::type, file C:\build\master_winpack-build-win64-vc14\opencv\modules\core\src\matrix_wrap.cpp, li...
Michal Obert
1

votes
0

answer
178

Views

ImportError: No module named vlfeat

I have installed VLFeat on anaconda environment successfully, but once I wanna import it, shows >>> import vlfeat Traceback (most recent call last): File '', line 1, in ImportError: No module named vlfeat Any idea about this? thanks
S.EB
1

votes
1

answer
238

Views

How do i pass objects to executor.map along with iterables?

import glob, os import tarfile import concurrent.futures def function(file1,arc): print(file1) arc.add(file1) destination='/home/lol/org' src=['a','b'] for i in src: if not os.path.exists(os.path.join(destination,i)): os.mkdir(os.path.join(destination,i)) #tFile = tarfile.open('files1.tar', 'w') for...
Varun Sudarshan
1

votes
1

answer
76

Views

How do I quantize a value of type float?

I have a processing script for a 2-dimensional Minecraft clone. I am currently stuck at placing blocks, as I need them to be snapped to a grid of size block_size. Here is the code: final float block_size = 8; final float ground_level = 8; final float sky_level = 256; final float x_min = 0; final flo...
W. Mays
1

votes
0

answer
15

Views

Why are name dependencies (WaR, WaW) in ILP architectures problematic?

Assume the following two instructions are executed simultaneously: addi $t0, $t1, 4 addi $t1, $t2, 4 It's an anti-dependence, or Write-after-Read. Assuming they are executed at the same time, wouldn't the first instruction still read the correct value before the second instruction writes back to $t1...
smatts
1

votes
0

answer
32

Views

MySQL : parallel transaction with different connections

Assuming we have several different connections to a db that execute in parallel a transaction for inserting data into a table. What will happen if one of those fails and make the rollback before the others make the different commits? Will the table be the same as before without any added record?
kopbuc
1

votes
0

answer
1.5k

Views

Extracting Contours from an image in OpenCV - Python

I have the following Image result.png with Countours drawn at every rectangle: In the next step I am trying to extract only the inner portion of these rectangles to get the images which has centralised digits(2, 0, 1, 8). The code I am using is as follows: import cv2 BLACK_THRESHOLD = 200 THIN_THRES...
Aadit
1

votes
0

answer
37

Views

How to improve the calibration of my image processing?

I want to add a function with trackbars to calibrate in order to detect specific (or as wished) shape. The trackbars should calibrate HSV and Threshold. Here is my code, but it only detects perfect shapes in perfect lighting and doesn't recognise anything if the lighting isn't perfect. This needs to...
Andromedan
1

votes
2

answer
126

Views

How to detect a multiple-bar pattern?

I'd like to detect a custom 'multiple-bar pattern' in an image. The pattern looks like this, kind of a group of parallel black bars with the same width but different height, see this image: This pattern could be on the image or even not but if it is - I'd like to get it's position. Note: The color...
1

votes
1

answer
393

Views

Can't upload images in Wordpress 4.9.5

I've been wrestling with this for 2 days, I've tried everything that Google searching for 2 days has to offer, and still I can't get it to work. Basically, when I'm editing a page and adding a 'featured image' the upload is interrupted and all I'm left with is the blue progress bar. I opened the con...
Roaziel
1

votes
1

answer
103

Views

How can i minimize the blurriness after i resize my images?

My code to resize images is : from PIL import Image ratio = 0.2 img = Image.open('/home/user/Desktop/test_pic/1-0.png') hsize = int((float(img.size[1])*float(ratio))) wsize = int((float(img.size[0])*float(ratio))) img = img.resize((wsize,hsize), Image.ANTIALIAS) img.save('/home/user/Desktop/test_pic...
Jess
1

votes
0

answer
330

Views

.net resize video resolution before saving

I have a website ASP.NET MVC c# where users can upload a video interview of themselves of around 1 min, max 100MB in size. I am thinking to save a resized version of the video (max 500px width or height) thus saving space and not to make the page that shows multiple videos run slowly. The videos are...
Claudia Goga
1

votes
0

answer
326

Views

Plotting Wigner-Ville distribution with pytftb on python 3

I am testing wigner ville distribution to see if it works for the estimation of original amplitude of a signal with noise. The pytftb provides a wigner ville function that works well with their examples. I use it like this: tfr = WignerVilleDistribution(prepack[0]) tfr.run() tfr.plot(show_tf=True) A...
Danf
1

votes
1

answer
129

Views

How to extract photos from JPG with white background?

I have a JPG file which contains multiple photos over a white background. I'm looking for a CLI tool which can extract photos from the source JPG (without supplying coordinates) into separate JPG files maintaining quality and photo resolution. From some research I suspect ImageMagick can achieve thi...
Andrew
1

votes
0

answer
26

Views

Linux command that tracks statistics of CPU usage while running application on HPC/HTC

In my PBS script, I am running matlab and would like to know how many many cores were actually used during the time. Especially I would like to know the max number of cores used at a time. If I only allocate x number of cores but at any time matlab uses more than x number of cores then my job will...
MathIsKey
1

votes
1

answer
33

Views

Web camera can't see any face in face_tracking project

I am making project face_detection using OpenCV, Arduino and Processing. However I have faced some problems. The code is correctly written but after compiling, the web camera of my laptop can't see any face, only dark window. 'import hypermedia.video.*; import java.awt.Rectangle; import processing....
Bekbol
1

votes
0

answer
449

Views

skin color segmentation using YCbCr colorspace

I am trying to execute this code but I am getting the below stated error. It says that the array size doesn't match. I have tried a few solutions given on the internet. Changed the values of the color and also tried by removing the np.array from the code in the concerned lines skin_ycrcb_min = np.ar...
Madhusudan Shah
1

votes
1

answer
127

Views

Could not install NuGet package MPI.NET 1.3.0 in MS Visual Studio 2017

I am trying to install NuGet package MPI.NET 1.3.0 to MS Visual Studio 2017 C# project. I am getting the following error: Could not install package 'MPI.NET 1.3.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.0', but the package does not contain any a...
vp24
1

votes
0

answer
143

Views

moviepy - cut every second frame from videoclip

I am making a .mp4 video clip using moviepy. Broadly speaking, it is a visualization of numerical simulation, that has some fixed time step. Every frame is calculated from previous after that time step. All calculations are carried out in numpy and frames are made using matplotlib. The overall durat...
1

votes
0

answer
89

Views

The system cannot find the file specified (Python 3)

I'm trying read texts from an image using pytesseract but it throws this error no matter what I try. Code: import os import subprocess import pytesseract from PIL import Image subprocess.call('dir', shell=True) print(os.path.isfile('test.jpg')) #True im = Image.open('test.jpg') text = pytesserac...
Bharat
1

votes
1

answer
86

Views

Very low accuracy on Digit recgonition dataset with images having 4 channels, using Convolutional Neural Networks

I am currently working on a digit recognition challenge by Analytics Vidhya, the link to which is https://datahack.analyticsvidhya.com/contest/practice-problem-identify-the-digits/ . The images in the dataset pertaining to this challenge are of dimensions 28*28*4 (28 = length = width , 4 = no. of c...
1

votes
1

answer
106

Views

Dense dispairity map generation in OpenCV with ORB

I am trying to generate a dense disparity map with OpenCV's ORB detectors. I followed this tutorial and understand how it generates its disparity map. However, I don't understand how the code in the tutorial generates a dense disparity map because I cannot find any portion of the code that calculate...
Derpson
1

votes
0

answer
28

Views

how to get the colour mode of an image in javascript?

I have been using exif-js library and I can retrieve width, orientation, height, resolution and other metadata. But I cannot find the way to get the color mode of the image. I need to find out if the image is in CMYK or RGB. Has anyone done it with exif-js or can you recommend another way of doing i...
Marco
1

votes
2

answer
30

Views

Regarding FIND Instruction using Batch File. Storing result in a variable

I am searching a string on a list of files under many subfolders. If the string is found, then i'll perform more statements (which is not important anyways on my question). So what I did is use the FIND instruction, using /c option. Then store the result of the FIND trimming the right most last ch...
HanSoloQue
1

votes
1

answer
88

Views

What is the avilability defuzzification methods in JFuzzyLogic

I'm working on Fuzzy logic in Java for Android app and I'm using JFuzzy Logic open source library but I couldn't find any reference if we can use any other defuzzification methods except Center of Gravity (COG) method. Can anyone help me or just inform me if we have this ability in JFuzzy logic libr...
Samah Ahmed
1

votes
1

answer
574

Views

Save video instead of saving images while using basler camera and python

I'm using Basler camera and python to record some video. I can successfully capture individual frames, but I don't know how to record a video. Following is my code: import os import pypylon from imageio import imwrite import time start=time.time() print('Sampling rate (Hz):') fsamp = input() fsamp =...
Rishabh sharma

View additional questions