Part Number: IWR1443
If you can help me, I would be really grateful for that. Please please read it carefully.
We not only just want ti use the demo, we want to rewrite it. The classification which is neural network will be rewrite. But now, we have to change the detection range of the radar. We think that after FFT 2D, some points have been filtered.
In the Lab0009-gesture-recog-twirl, the original detection range is under 40cm. When I twirl my finger with a distance larger than 40cm, the picture will not be zoomed in or out.
Objective: I want to increse the functional range in the lab009, i.e. when I twirl my finger with a distance of 2m, the picture still can be zoomed in or out according to the gesture.
In the previous answers from the engineer, I learned that
In gesture_twirl.h the following parameters are defined that affect the initial and max range bins used for gesture recognition:
#define NUM_INITIAL_RANGE_BINS_SKIP 2#define MAX_RANGE_BIN_USED 9
But after I incresed the MAX_RANGE_BIN_USED from 9 to 20, the maximum detection range was not changed, i.e. I twirled my finger with a distance greater than 40cm, the picture cannot be zoomed in or out.
And after I decresed the MAX_RANGE_BIN_USED from 9 to 5, the maximum detectioin range was reduced to 30 cm or so.
1. I want to know why the maximum detection range can only be decresed but not incresed.
And I looked into the code carefully. The variable MAX_RANGE_BIN_USED is used in the following code (in the gesture_twirl.c):
//Computing statistics for positive dopplers
for(j=NUM_INITIAL_DOPPLER_BINS_SKIP+1;j<MAX_DOPPLER_BIN_USED_ONE_SIDED+1;j++)//+1 to include the zero doppler bin
valatindx = preDetMatrix[i*numDopplerBins+j];
2. can you explain the following code above specifically line by line:
valatindx = preDetMatrix[i*numDopplerBins+j];
}3. And why there are rangeAvgPos and rangeAvgNeg (both positive and negative)?4. What does the parameter detThresh mean in the function Gesture_findNumDetections(uint16_t numRangeBins, uint16_t numDopplerBins,uint16_t *preDetMatrix,uint16_t detThresh,short * gestureMetrics, uint16_t *maxIndices )5.When I changed the parameter detThresh from 8000 to 4000, the matlab program cannot run correctly, I think maybe the memory of the chip was crashed beacuse of the data overflow(I am not sure), can you tell me why?Does this parameter connected to the maximum detection range.6.The ultimate problem is to change the detection range of the lab0009. For example, the picture can response to my gesture with a distance of 2m or so.Thank you very much!
The same question has been duplicated in the following threads.
As already explained in the first thread above, the gesture recognition at increased range may not work out by changing the search indices without any other modifications. The training for the gesture classifier was trained at done at close range. Therefore the thresholds for the handcrafted classifier may not hold up under your modifications and would also need to be modified. Since longer range gesture was not the aim for this lab it is not supported.
We are glad that we were able to resolve this issue, and will now proceed to close this thread.
If you have further questions related to this thread, you may click "Ask a related question" below. The newly created question will be automatically linked to this question.
In reply to Nitin Sakhuja:
In reply to user5878504:
In the lab009 for IWR1443.
Here is the code of the main_twirl.c from line number 1696 to line number 1702.
I wonder that:
the exact value of : dataPathObj->numRangeBins and dataPathObj->numDopplerBins
and the matrix structure of dataPathObj->rangeDopplerLogMagMatrix. From which bytes to bytes means angle, range or something else.
Since we don't know what are the data means after doing the 2nd Dimension FFT done
/* 2nd Dimension FFT done! */
//counterstart = Pmu_getCount(0);
Gesture_findNumDetections(dataPathObj->numRangeBins, dataPathObj->numDopplerBins, dataPathObj->rangeDopplerLogMagMatrix,8000 ,gestureMetrics,maxIndices);
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.