GMU:Tutorials/Performance Platform/Custom People Tracking: Difference between revisions

From Medien Wiki
Line 55: Line 55:
=='''Detection'''==
=='''Detection'''==


'''Capture obejct: jit.rgb2luma'''
'''Capture: jit.rgb2luma'''


In the capture part, "jit.rgb2luma" is responsible for the pixel capture to read the pixel input. And this object is transforming the detected colorful image into rgb value in alpha mode which changes from 0 to 255.
In the capture part, "jit.rgb2luma" is responsible for the pixel capture to read the pixel input. And this object is transforming the detected colorful image into rgb value in alpha mode which changes from 0 to 255.


'''Image adjustment object: jit.op @op < @val 172'''
'''Image adjustment: jit.op @op < @val 172'''


You can use "jit.op @op < @val 172" to adjust the brightness of the detected image in order to  have more accurate position of blobs. In this object, "value 172" is  a set you can change due to your own light environment, and it is actually a threshold to read all the pixels which are under 172 in brightness. The "integer input" in the right side which is "7" in the picture is as a input of the value you can change by yourself.
You can use "jit.op @op < @val 172" to adjust the brightness of the detected image in order to  have more accurate position of blobs. In this object, "value 172" is  a set you can change due to your own light environment, and it is actually a threshold to read all the pixels which are under 172 in brightness. The "integer input" in the right side which is "7" in the picture is as a input of the value you can change by yourself.


'''Read images into pixels data object'''
'''Read images into pixels data'''


"cv.jit.label", "cv.jit.blobs.bound", "cv.jit.blobs.bound.draw" can be regarded as combo objects, these three objects aim to detail the pixel matrix on the image filter by "jit.op @op < @val 172" in the last step. To read the pixels with similar brightness as pixel blobs, to classify them as a group, and finally use mark this group in rectangle. And in this case, the blobs represent the head of people in the top view.
"cv.jit.label", "cv.jit.blobs.bound", "cv.jit.blobs.bound.draw" can be regarded as combo objects, these three objects aim to detail the pixel matrix on the image filter by "jit.op @op < @val 172" in the last step. To read the pixels with similar brightness as pixel blobs, to classify them as a group, and finally use mark this group in rectangle. And in this case, the blobs represent the head of people in the top view.
'''Read the position of blobs'''


[[Image:testing result position result.png|thumb|left|653px]]
[[Image:testing result position result.png|thumb|left|653px]]
[[File:stesting process.jpg]]
[[File:stesting process.jpg]]
<br style="clear:both">
<br style="clear:both">