Questions tagged [processing]

21346 questions
1

votes
1

answer
1.4k

Views

do parallel combine progress bar and process

I'm having issues to combine the process that I want to run in parallel and the creation of the progress bar. My code for the process is: pred_pnn
GabyLP
1

votes
1

answer
126

Views

How to install FFMPEG in Red Hat OS From source code?

Please somebody provide me references for installing FFMPEG with mp3 and h264 codecs enabled from source code. I gone through official FFMPEG website, No detailed information as how to install FFMPEG with all features enabled and no information about dependencies.
Satishakumar Awati
1

votes
1

answer
1.3k

Views

Align images based on a detected features in Opencv

Hi I've a base image and other images that I'd like to rotate with the same angle as the base image. this is my base image. this is an example image that I'd like to rotate. here my full code. #include #include #include "opencv2/core/core.hpp" #include "opencv2/features2d/features2d.hpp" #inclu...
Anar Bayramov
1

votes
2

answer
1.2k

Views

ICC based image conversion using Java

I would like to convert images using ICC profiles and Java. The source image can be RGB or CMYK based, and maybe could have an icc profile embeded. The new images should also be in RGB or CMYK color mode, and has to have a icc profile embeded. All source images will be in JPEG format. Which (externa...
tmmls
1

votes
2

answer
1.9k

Views

How to create a simple l-system in Processing

I want to create a simple l-system in Processing. I want to change every letter 'A' to 'AB' and every letter 'B' to 'A', starting with 'A'. The result should look something like this: A → AB → ABA → ABAAB → ABAABABA → etc... (P.S. I don't know much about processing)
m.prcssng
1

votes
2

answer
1.5k

Views

Call methods parallel and combine results

I have a MainMethod which needs to call two methods Method1 and Method2 parallel. Both of them will return list of Employee but from different database. I need to call them parallel and then combine the results of Method1 and Method2 in MainMethod and then return result to the caller of MainMethod....
Ziggler
1

votes
1

answer
1.1k

Views

Do i need to install Nvidia's SDK(CUDA) for OpenCL to detect Nvidia GPU?

I have a code written in C (using opencl specs) to list all the available devices. My PC has an AMD FirePro as well as Nvidia's Tesla graphics card installed. I first installed AMD-APP-SDK-v3.0-0.113.50-Beta-linux64.tar.bz2 but it didn't seem to work so thereafter I installed OpenCL™ Runtime 15.1...
ikk
1

votes
4

answer
974

Views

Python: How to run nested parallel process in python?

I have a dataset df of trader transactions. I have 2 levels of for loops as follows: smartTrader =[] for asset in range(len(Assets)): df = df[df['Assets'] == asset] # I have some more calculations here for trader in range(len(df['TraderID'])): # I have some calculations here, If trader is successful...
roland
1

votes
1

answer
3k

Views

How to find the Bit Depth of an image

I am trying to get the Statistics of image like width, height, bands, min, max, mean, stddev etc., I could find all of these but however i can't find the Bit Depth of an image. i could not find any function , is there a way for this ?
PythonLearner
1

votes
2

answer
1.3k

Views

Execute batch code when user click on exit

I am working on some code testing, and I stumbled on a problem I can't find or fix. My problem is: If a user accidentally closes the cmd window, I'd like to execute a batch code before it actually closes. For example: I run script A.bat . When a user wants to exit, I want it to delete my B.bat and...
10

votes
2

answer
114

Views

No output after using PyCUDA

I've installed PyCUDA using pip. I tried this in two computers. One with a fresh install of Python 3.7.1 and one with Python 3.6.5. Everything fails after using PuCUDA with no error message. The minimum example is this: import sys import pycuda.driver as cuda import pycuda.autoinit #
Panos Kal.
1

votes
0

answer
18

Views

multiprocessing in python does not stop running

I tried a simple example of multiprocessing in python from their website itself, but it does not give any input. It's showing as running itself and I am not able to stop it in jupyter notebook. from multiprocessing import Pool def f(x): return x*x if __name__ == '__main__': p = Pool(5) print(p.map(f...
Sachin Sudheer
0

votes
0

answer
4

Views

Gprof, fortran: How to complie an Openmpi code?

I am able to compile my Openmpi code using gfortran compiler. The compile syntax I give is : mpif90 -o mycode.exe mycode.f90 mpirun -np 4 ./mycode.exe It works. And now I want to profile my code using Gprof. I know I should add the -pg flag, but if I put it after mpif90 it crashed. Where should I pu...
Shiqi He
1

votes
1

answer
270

Views

Generate a Gaussian Image without adding noise

I want to generate a Gaussian Image by Matlab. It has 3 circles (as three classes). The intensity in each circle will be followed by Gaussian distribution. Thus, the histogram of the image will be multiplicate Gaussian distribution as a question. However, I used a free-noise image and added it with...
Jame
1

votes
1

answer
142

Views

Incremental text file processing for parallel processing

I'm at the first experience with the Julia language, and I'm quite surprises by its simplicity. I need to process big files, where each line is composed by a set of tab separated strings. As a first example, I started by a simple count program; I managed to use @parallel with the following code: d =...
Estoque'm'
1

votes
3

answer
326

Views

Which is a efficient way to query a database in Grails? SQL, HQL or GORM?

I am working on a application where I need to query(simple as well as complex) on a database many times. I can understand that for simple queries there won't be a substantial difference between any of the approach mentioned above. I would like know the efficient way in case of semi complex and compl...
Abhinandan Satpute
1

votes
2

answer
1.4k

Views

skimage.color.rgb2gray import trouble

I am having problem with importing skimage.color module. Although I can import and call skimage.color.rgb2gray from python shell, I cannot do the same thing from my application. I checked skimage lib places on my PC. They all seems to be fine. But when I try to call skimage.color. from my code it a...
enterbutton
1

votes
2

answer
535

Views

Detect current Keyframe interval in AVAsset

I am working on an application that plays back video and allows the user to scrub forwards and backwards in the video. The scrubbing has to happen smoothly, so we always re-write the video with SDAVAssetExportSession with the video compression property AVVideoMaxKeyFrameIntervalKey:@1 so that each f...
johnrechd
0

votes
0

answer
6

Views

How to seperate two differently named text files from a folder. Is there any classifier that do directly based on title given to file

I had a folder as employment in which i had 1500 files of two different types like aggrement and amendment. my task is to build a classifier that seperates two different files and put in the two different folder.
ravi
1

votes
1

answer
293

Views

p5.js — canvas.parent() is not a function — type error?

Okay, never used professing or p5 before but I'm helping a designer/artist friend with a wordpress website. He's made a p5 sketch and needs me to stick the canvas up in a header div at the top of the front page. I did some research and apparently I'm supposed to use canvas.parent("NameOfDivIdHere")...
David A. French
0

votes
1

answer
15

Views

Why is the result from cornerHarris being used to calculate euclidean distance?

I had read in the question that cornerHarris returned a matrix with confidence scores. I came across the following snippet which did not make sense to me, if it this method returns a confidence matrix. Here is the snippet. # GET CORNER MATRIX dst = cv2.cornerHarris(gray, blockSize, ksize, k) max=n...
Jessica
0

votes
0

answer
13

Views

How to avoid colour banding in polynomial interpolation background extraction

I have a code that takes some "nodes", or "samples" in an image. With these nodes I build a synthetic background image using polynomial interpolation. My problem is that for some images, with small dynamic, I have a colour banding in my result. However, my source does not have any colour banding. Th...
lock
0

votes
0

answer
4

Views

Alternative hash table equality testing for keys

SBCL profiling shows one of my Common Lisp hash table functions is consuming a significant amount of time. The function compares two hash tables to determine if they have the same keys: (defun same-keys (ht1 ht2) "Returns t if two hash tables have the same keys." (declare (hash-table ht1 ht2)) (when...
davypough
-1

votes
0

answer
14

Views

How to detect gates objects from by Edge Detection in Python Open CV

I want to detect this gate from the video in real time. I can detect the edge. There are gates of other colours too. Can anyone suggest me how to detect the gate from here?
Adnan Sabbir
5

votes
1

answer
125

Views

Unable to use sort_contors for building seven segment OCR

I am trying to build an OCR for recognising seven segment display as mentioned below Using preprocessing tools of open CV I got it here Now I am trying to follow this tutorial - https://www.pyimagesearch.com/2017/02/13/recognizing-digits-with-opencv-and-python/ But on the part digitCnts = contour...
Mansi Shukla
1

votes
1

answer
55

Views

Reference Abaqus C++ API static libraries to read ODB files

I have Abaqus CAE, Visual Studio 2017, Visual C++ compiler installed in my computer. I'm trying to reference Abaqus CAE's static libraries in my Visual Studio C++ project to read my ODB file. This is the code file that I'm trying to compile & execute : ``` #include "pch.h" #include #include #inclu...
Dularish
1

votes
1

answer
22

Views

Is there a way to manually attach packages and globals with `future.apply::future_apply`

I am using R's excellent future package. And in the documentation it mentions %global% and %packages% for assigning global variables and packages to be evaluated in the future environment. But those seem to only work with %
xiaodai
1

votes
3

answer
7k

Views

CCTV Automatic number plate recognition and integration of data,software? [closed]

I have a client who is looking for a solution to integrate cctv with a (any) ANPR solution that can,I assume recognize the number plate of cars and store in a database and has the ability to post this data to other backoffice applications, crm, marketing app. etc. Is there any ready software to do t...
abmv
1

votes
0

answer
10

Views

Why do I have to save my BufferedImage before comparison?

I have a few images on my drive, and I want to compare them to images from an online resource. I read the bytes of the online image into a byte[] and then create a BufferedImage object like this: BufferedImage captcha = ImageIO.read(new ByteArrayInputStream(captchaBytes)); Then I compare this image...
Raghav
0

votes
0

answer
4

Views

How to map values from 3d color table into an image?

I'm trying to apply a color table from a png to an image, but can't match the pixel from the png to the target image. The color table is 64^3 https://imgur.com/a/i9SCpBC https://i.imgur.com/IP38EHr.png From what I understand each pixel in the larget image, need to use a similar value in the color t...
MIkael
0

votes
0

answer
11

Views

How to interpret (rho, theta) pairs found by Hough transform

I obtained a dataframe of Hough lines with variables theta, rho and score. The code I used for this is: df min(df$theta) [1] 0 > max(df$theta) [1] 6.283185 > min(df$rho) [1] -427.4126 > max(df$rho) [1] 427.414 As for theta, all values are very low. This made me think the values are in rads, rather...
Stan Zutt
1

votes
0

answer
19

Views

Pytorch LSTM batch training and evaluating

I'm trying to figure out/learn, how to correctly train and evaluate pytorch LSTM by using batches and also what are other possible approaches. Datasets I have datasets from different datetime parts of single timeseries. Every dataset has variable length(1k-5k rows) and same amoun...
Tomas Trdla
0

votes
0

answer
5

Views

AudioKit/DSP: Understanding the different between the size of uncompressed audio on disk vs. in memory

This is a more generic RTFM DSP question coming from someone very comfortable with audio production and software , but new to audio software development, regarding the difference in size between uncompressed (wav, caf, aiff) files (44.1 sample rate, 16 bit) on disk, vs. the actual float values of th...
Max
0

votes
0

answer
3

Views

Load datasets and store it in another file using opencv

How can I read all images from datasets and store it in another location using opencv.
Aviii04
0

votes
0

answer
4

Views

Reverberant operation on audio or spectrograms

I would like to perform the reverberant operations on the given audio or spectrograms (shape = (256, 128)) with the below conditions: we added reverberation to clean speech by convolving the samples with > the simulated impulse response of a highly reverberant room (exponentially decaying random Gau...
sealpuppy
1

votes
3

answer
2.6k

Views

ffmpeg : how to determine frame rate automatically?

I use this simple script to convert video to images using ffmpeg, but frame rate is fixed, how can I determine it automatically? FRAME_RATE="30" SEPARATOR='/' VIDEO_PATH=$1 VIDEO_BASE_DIR=`dirname $1` FRAMES_DIR=$VIDEO_BASE_DIR$SEPARATOR"Frames" rm -rf $FRAMES_DIR mkdir $FRAMES_DIR #Convert video to...
mrgloom
1

votes
3

answer
1.2k

Views

Processing lines of text file between two marker lines

My code processes lines read from a text file (see "Text Processing Details" at end). I need to amend my code so that it carries out the same task, but only with words in between certain points. Code should not bother about this text. Skip it. *****This is the marker to say where to start working w...
Hidden
1

votes
1

answer
1.2k

Views

RANSAC with multiple lines to be detected

This is a bit of a theoretical question, but I was wondering how one randomly chooses points when there are multiple lines to be detected in an image. In most examples I have seen so far, there seems to be only one line to be detected, and it seems easy. However, I am not sure how it is extended to...
user2857014
0

votes
1

answer
19

Views

How do I extract text from a file to a variable while also replacing that text with a marker?

I have a file of property: value; pairs (it's CSS). I want to go through this file and regex extract certain values to shell variables, while replacing the text in the file with a marker. Eg for FILE1: position: float; background: url("data:image/loremipsum"); height: auto; background: url("data:im...
DemonicLocust
1

votes
2

answer
370

Views

GIT clone all repositories in parallel i.e. total time taken to clone all is close to what you'd take for the largest repo: fatal: index-pack failed

OK. Mac OS. alias gcurl alias gcurl='curl -s -H "Authorization: token IcIcv21a5b20681e7eb8fe7a86ced5f9dbhahaLOL" ' echo $IG_API_URL https://someinstance-git.mycompany.com/api/v3 Ran the following to see: list of all orgs that a user has access to. NOTE: to a new user (passing just $IG_API_URL here...
Arun Sangal

View additional questions