I've been trying to have a button (Arduino) change the fill color of an ellipse in Processing 3. I thought an if statement like `if(button == 0){ if(fillValue == rgb){ fill(0,0,0);}`or something more or less. So if some one has the awnser please help.

Member Avatar
Member Avatar
+0 forum 3

Shows how to convert a comma separated value (csv) string to a list of records, and then do some data processing. The csv strings usually come from csv files created by spreadsheets.

Member Avatar
Member Avatar
+1 forum 2

Hello, I am making project of Face detection from image. I have read OpenCV library for it, but exactly i can't get how to find multiple face from image. i had group photos of my friends, i want find face of each person of the photo like tagging in facebook or picasa. please suggest some other library i can refer to make it successful. just give me idea from where i have to start up? Also i want to make it in java only not in MATLAB. Thanks

Member Avatar
Member Avatar
+0 forum 2

Hi,I am a beginner in php. And I am trying to create this php program where a user selects a picture and it displays it! Theare is an input page which is html and an processing page which is php! I seemes to have a problem in the processing page of the program.The problem is on line 22 in the processing page and it relates to escape character. How do I fix my issue please help I alredy spend more the several hours on it and still can't figure it out! Here are the code for the processing page: The …

Member Avatar
Member Avatar
+0 forum 1

A php code sent a query to the database say credentials from login page for verifying and something was returned say TRUE OR FALSE as status. Now my question is, if I do not know the code of the developer who wrote the login form, does there exist any way to find out what query is made to the database OR what has been returned by the database? Since I'm unaware of the developer's code which means I'll need a parallel script working in parallel with the login form. Can I also do that? The reason why I asked this …

Member Avatar
Member Avatar
+0 forum 1

How does request processing works out from the perspective of a php developer? More than that I'm concerned with e.g. once request is parsed through.htaccess ,mapped to the file and respone is sent back. The mechanism of how this response gets sent back to the client is what I eagerly want to know ? Why? I'm developing a PHP script that needs to know what exactly is coming from the database to the client so that I can alter it in the middle. I cannot tweak the code of the developer as I have to make my script generic enough …

Member Avatar
Member Avatar
+0 forum 2

Question: Well I have to input a number correctly with comma's and a decimal. My input would be 243,111.11 and the output would come out as 2,43,,111.11 Do I have to create additional for loops statements for each digits and check for comma's/decimal? I almost scrapped this code for attempting to try switch statements. All I seek if if i'm on the right track, and any advice/tip is appreciated. Thus far: #include <stdio.h> #include <string.h> #include <iostream> #include <string> int main() { using namespace std; char myStr[256]; cout << "Enter Any integers "; cin.getline(myStr,256); int numDigits = strchr(myStr, '.') - …

Member Avatar
Member Avatar
+0 forum 10

I am in the final year of MSc in computer Science. I request you to suggest me some topics on image processing which can be implemented within a span of 3 to 4 months

Member Avatar
+0 forum 0

Hi All, I am very new to image processing and my requirement is to detect whehter the given large image consist the given subimage (small image) using Java and FAST algorithm. I have found the java lib (jfeaturelib) which support APIs for FAST algorithms and other descriptors etc. Follwing link is from jfeaturelib which explaing how to get features of a image using decriptors and I cound run this code and get the features of both the images. https://github.com/locked-fg/JFeatureLib-Demo/tree/master/src/main/java/de/lmu/dbs/ifi/jfeaturelib/examples But as jfeaturelib documention didn't provide sufficient information on useage of the API I feel helpless. It would be a great …

Member Avatar
Member Avatar
+0 forum 2

hello i want a simple code to convert image into an array (red green and blue) thank you

Member Avatar
Member Avatar
+0 forum 1

Hi, I am writting a program to let user generate excel file from the datagrid in web page. Below is the codes: Private Sub ConvertToExcel(ByVal Data As ProductionScheduleData) Dim stringwrite As New System.IO.StringWriter Dim htmlWrite As New System.Web.UI.HtmlTextWriter(stringwrite) GridExcel.RenderControl(htmlWrite) Response.Clear() Response.ClearContent() Response.ClearHeaders() Response.BufferOutput = True Response.AddHeader("Content-Disposition", "attachment;filename=" + "ProductionSchedule" + ".xls") Response.Charset = "" Response.ContentType = "application/vnd.ms-excel" Response.Write(stringwrite.ToString()) Response.Flush() Response.Close() Response.End() End Sub The excel file was successfully generated. My problem is, after the file generated, the web page seem like still processing something. I can't do the next action, unless I reentry that page with new action. Did I …

Member Avatar
Member Avatar
+0 forum 1

hi guys .. i have problem in this code . it dose not work am trying to make gaussian filter in spatial domain. is this possible ??????? pls, any help #Const gauss_width = True sumr=0 sumg=0 sumb=0 Dim gauss_fact() As Integer = {1,6,15,20,15,6,1} Dim gauss_sum As Integer = 64 For i = 1 To temp.w-2 For j = 1 To temp.h-2 sumr=0 sumg=0 sumb=0 For k = 0 To DefineConstants.gauss_width - 1 color=getpixel(temp,i-((DefineConstants.gauss_width-1)>>1)+k,j) r=getr32(color) g=getg32(color) b=getb32(color) sumr+=r *gauss_fact(k) sumg+=g *gauss_fact(k) sumb+=b *gauss_fact(k) Next k putpixel(temp1,i,j,makecol(sumr/gauss_sum,sumg/gauss_sum, sumb/gauss_sum)) Next j Next i For i = 1 To temp.w-2 For j = 1 …

Member Avatar
Member Avatar
+0 forum 6

Hi programmers, I am a c# programmer but I have a very big project in C++ (Which I am not familiar with) and I am facing a big problem. As part of the project, I need to convert the image (any image of any type bmp,jpeg,png...etc) to grayscale using openMP. After doing some research, I got the main method which allows me to do the conversion using openMP, it's as follows: // pDest is an unsigned char array of size width * height // pSrc is an unsigned char array of size width * height * 4 (32-bit) // To …

Member Avatar
Member Avatar
+0 forum 21

Hey, I'm making a simple moving car at night with its headlight bulbs and I'm using PROCESSING software, not java. What I tried to make is when the car touches the right border, the headlight bulb of the right side of the car should be changed to the left side of the same car. It doesn't work with this code below. Any suggestions? float moveX, moveY, speed = 3; float dia; void setup() { size(600, 400); background(0); moveX = width/2; moveY = height/2; dia = 50; } void draw() { background(0); rectMode(CENTER); noStroke(); fill(255); rect(moveX, moveY, dia, 20); moveX += …

Member Avatar
Member Avatar
+0 forum 1

I am doing image segmentation using region growing algorithm. I have created Region and Pixel class where each region has list of pixels. public class Region { private List<Pixel> pixelList; } Pixel class has fields like r,g,b, hue,saturation, brightness of individual pixel in image. The result of segmentation is list of regions. List<Region> segment(){..} I want to find one region object or sublist of region objects which is "Region of interest". Please advice me about finding this. Is there any algorithm for this? Please help.

Member Avatar
Member Avatar
+0 forum 2

Can some one briefly tell me about that how to do fileprocessing in c++

Member Avatar
Member Avatar
+0 forum 2

I'm curious. The first language I learned is a small port to java called "Processing." It's been around a while and it was a fun little language to learn. My question is: How many of you use it? Info at processing.org and examples at openprocessing.org Check it out if you've never heard of it.

Member Avatar
Member Avatar
+0 forum 6

For some days I have been trying to optimize an image processing program (cropping, rotate, changing brightness and undo) written in c# 4.0. Getting suggestions from google I have optimized the code in many ways. At first some disposable objects hadn’t been disposed that’s why exception was shown. But I have tried to dispose all disposable objects. Still the program is showing out of memory exceptions. That’s why I have uploaded the program for better solutions. Please download from the link http://www.box.com/s/8eab0f3669ec4d79e3fc My machine configuration: Core 2 Duo, 2 GB RAM, Windows XP service pack 3 Follow the steps: Run …

Member Avatar
Member Avatar
+0 forum 2

Hello everyone and good day!!! I'm trying to embedd an image watermark to another image for copyright protection and I plan to use DCT and embedding the watermark in the middle band coefficeint of the host image. The problem is I don't know which of the formulas to use since there are a lot of them when I google DCT. I get confuse on which is which? Base from what I read so far 1. the image is divided into 8x8 sub-blocks 2. then DCT is applied to each of the sub-blocks. I'm stuck here what happens next? I'm using …

Member Avatar
Member Avatar
+0 forum 3

I currently have the following code for a sprite struct (c-style for use in DLL): typedef struct LABglSpriteTAG { unsigned int glTexture; int w; int h; LABglColour *data; bool compiled; }*LABglSpriteHANDLE; And the following function: void LABglSpriteConvolute(LABglSpriteHANDLE spr, int w, int h, int *kernel) { size_t dim=spr->w*spr->h; LABglColour *out=new LABglColour[dim]; for (size_t i=0; i<dim; ++i) out[i]=0; int centerx=w/2; int centery=h/2; for (int x=0; x<spr->w; ++x) { for (int y=0; y<spr->h; ++i) { for (int kx=0; kx<w; ++kx) { int xx=w-1-kx; for (int ky=0; ky<h; ++ky) { int yy=h-1-ky; int rx=x+(kx-centerx); int ry=y+(ky-centery); if (rx>=0&&rx<spr->w&&ry>=0&&ry<spr->h) out[y*spr->w+x]+=spr->data[ry*spr->w+rx]*(1.0/kernel[ky*w+kx]); } } } } delete[]spr->data; …

Member Avatar
Member Avatar
+0 forum 1

Hey, I have the following piece of code in Processing (programming language) that I am supposed to change and implement in new ways. However I just can't seem to understand it. I would love it if someone here explained it to me step by step. Here's the code: [CODE]// TREE L-Systems (Branching) int SZ = 512; //screen size int sz = SZ/2; //half screen size float d = sz/128; // turtle line length float ang = (25.7/180.0)*PI; //turtle rotation float s = 1; //branch scale factor float x = SZ/2; // initial pos x float y = SZ; // initial …

Member Avatar
Member Avatar
+0 forum 1

Hi, I am using Paypal to do my payment processing, however the user authentication JSP session variables I am using are expiring during the transition from my site to paypal's then back to mine again. The result is obviously that access is denied on return and the transaction does not complete (my site needs to then take action when payment is processed) Any ideas how to get round this? Thanks

Member Avatar
Member Avatar
+0 forum 3

Hey all! I have some questions about pythons capability of processing video fails. I would like to run and edit some files with pythhon. Can i use pygame or wxPython or do i need some other libaries? And does somebody have some example codes or helpful materials of video processing? Thnaks a lot!

Member Avatar
+0 forum 0

hi, i want to know if there are any libraries for image/video processing in c/c++ with a compatibilty that it can later be adapted to DSP, without much difficulty. thanks in advance.

Member Avatar
Member Avatar
+0 forum 5

This question seems to always have 2 sides to it. If I make a [COLOR="Red"]register.php[/COLOR] with the registration form, should I have it submit to [COLOR="green"]processreg.php[/COLOR] or should it just process all on the same page? Same thing for login. I have read that it may e more secure to have them on separate pages and you will not run into form resend problems, but what's your take on this matter? I am creating a site with potentially hundreds of thousands (100K+) users on it, should I just make it go to [COLOR="Green"]processreg.php[/COLOR], then if it's invalid, redirect back to …

Member Avatar
Member Avatar
+0 forum 2

Hi im in a bit of a pickle :S this is probably a lot easier than i imagine. i am a undergrad working on robotics and the robot im working on takes pictures in RGB565 which is 16 bit. but i dont know how that works :/ i understrand 24 bit where red green and blue have a byte each but you cant divide 16 into 3 equal part... so i read more and found that the color is in format RRRRRGGGGGGBBBBB (which is 16 bits) but its odd that green has a bigger range than the other two. can …

Member Avatar
Member Avatar
+0 forum 7

I was wondering if it's possible for me to create a Digital Sound Processing (DSP) program using Python. Basically, I don't know anything about how I would do this and I would like somebody to point me in the right direction. I don't want somebody to write code, but I would like someone to point me in the right direction so I have a starting point. If somebody knows a good site on DSP and DSP algorithms (ie. how to edit the sound to get certain effects). If you find something on mixing or how to make an audio editing …

Member Avatar
Member Avatar
+0 forum 2

How we can search images similar to our image on internet or in our local directory? Further how we can recognise that image is of human or animal or some abstract like mountain, road etc?

Member Avatar
Member Avatar
-2 forum 2

Okay, so I am trying to write a program which uses the Myers-Briggs personality test to turn this: Snoopy AABAAAAAAAAAAAABAAAABAAAAAAAAAAAABAAAABAAABABABAABAAAAAABAAAAAABAAAAAA Charlie Brown AAABBAABBABBBAABAAAABABABBAAAABABBBBABBBABAABABAABABAAABABAAABBAABABBB Linus AABBAABBBBBABAABBBBABABBABAAAABABBABABBAABAABABAABABBBBBBBAAAAAAABBBBB Lucy BABBAAABBBBAAABAAAAAABBBAABAAAAABBBAAABAAAAABABAAAABAABBBBAAABBAABABBB Peppermint Patty BBBBAAABBBBABBBAAAAAABBBAABAAAAABBBAAABAAAAABABAAAABAABBBBAAABBAABABBB Into this: Snoopy: 6A-4B 17A-3B 18A-2B 18A-2B [40%, 15%, 10%, 10%] = ISTJ Charlie Brown: 7A-3B 11A-9B 9A-11B 10A-10B [30%, 45%, 55%, 50%] = ISFP Linus: 6A-4B 7A-13B 8A-12B 11A-9B [40%, 65%, 60%, 45%] = INFJ Lucy: 5A-5B 11A-9B 14A-6B 11A-9B [50%, 45%, 30%, 45%] = ESTJ Peppermint Patty: 5A-5B 10A-10B 14A-6B 9A-11B [50%, 50%, 30%, 55%] = ENTP My code presently looks like this (sorry for the mess. I …

Member Avatar
Member Avatar
+0 forum 2

Good morning all, here i have some probs. in logic if possible just solved it i have a text file contains following data..... sec TID SID ATTRIBUTE 69013 1-3039 1 REGISTER 69013 1-3039 1 100 69013 1-3039 1 401 69013 1-3039 2 REGISTER 69013 1-3039 2 100 69013 2-3039 1 REGISTER 69013 3-3039 1 REGISTER 69013 4-3039 1 REGISTER 69013 1-3039 2 200 69013 2-3039 1 100 69013 2-3039 1 401 .................. .................. 69023 193-3039 2 100 69023 193-3039 2 401 69023 222-3039 1 REGISTER 69023 177-3039 2 100 69024 177-3039 2 401 69024 214-3039 1 100 69024 214-3039 1 …

Member Avatar
+0 forum 0

The End.