lancg / Face-Detection-and-Human-Tracking-Robot

MathWorks' project in 2022
BSD 2-Clause "Simplified" License
3 stars 0 forks source link

facedetection_demp file is not getting deployed #1

Open mkcherku opened 1 year ago

mkcherku commented 1 year ago

Hi, I was trying to deploy the facedetection_demp file on my android device but it throws me an error saying the following:

Input signal at port 1 for "[facedetection_demp/corner1/DataDisplay](matlab:open_and_hilite_hyperlink ('facedetection_demp/corner1/DataDisplay','error'))" is a variable-size signal, but System object "codertarget.internal.androidDataDisplay" indicates that it expects a fixed-size input signal. Connect the input port to a fixed-size signal, or add/modify the 'isInputSizeMutableImpl' method to allow variable-size input signal.

image

Please help me out with it.

lancg commented 1 year ago

Sorry,last week I was busy and didn't see it.We tried but didn't find this error…And it support to have a receiver deployed on right device(and toolbox is needed),and make sure it work.Only Android device may be not enough.---- Replied Message @.>Date07/22/2022 18:45 @.> @.***>Subject[lancg/Face-Detection-and-Human-Tracking-Robot] facedetection_demp file is not getting deployed (Issue #1) Hi, I was trying to deploy the facedetection_demp file on my android device but it throws me an error saying the following: Input signal at port 1 for "facedetection_demp/corner1/DataDisplay" is a variable-size signal, but System object "codertarget.internal.androidDataDisplay" indicates that it expects a fixed-size input signal. Connect the input port to a fixed-size signal, or add/modify the 'isInputSizeMutableImpl' method to allow variable-size input signal.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.> [ { @.": "http://schema.org", @.": "EmailMessage", "potentialAction": { @.": "ViewAction", "target": "https://github.com/lancg/Face-Detection-and-Human-Tracking-Robot/issues/1", "url": "https://github.com/lancg/Face-Detection-and-Human-Tracking-Robot/issues/1", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.***": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

mkcherku commented 1 year ago

Hi Thank you very much for the solution. I got that problem sorted. I have another doubt. Can you explain the logic behind 'controlfunction' in the facedetection_demp file? And why exactly have you chosen x2 to be [105 80]? I need to rewrite the code for mecanum wheeled robot hence need to understand before modifying it.

lancg commented 1 year ago
    HiHere we can get the face and its rectangle.Obtain its 4 coordinates, and its area expresses distance,central coordinates (mean value) show left or right offset( and 105,80 means the central coordinates in our phone as the standard center).Thus we can get the face distance and horizontal offset.Using them we can just control the robot.PID control system can be better.Hope it's useful for you!Best,Lancong---- Replied Message ***@***.***>Date08/02/2022 13:04 ***@***.***> ***@***.******@***.***>SubjectRe: [lancg/Face-Detection-and-Human-Tracking-Robot] facedetection_demp file is not getting deployed (Issue #1)

Hi Thank you very much for the solution. I got that problem sorted. I have another doubt. Can you explain the logic behind 'controlfunction' in the facedetection_demp file? And why exactly have you chosen x2 to be [105 80]? I need to rewrite the code for mecanum wheeled robot hence need to understand before modifying it.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.> [ { @.": "http://schema.org", @.": "EmailMessage", "potentialAction": { @.": "ViewAction", "target": "https://github.com/lancg/Face-Detection-and-Human-Tracking-Robot/issues/1#issuecomment-1202020704", "url": "https://github.com/lancg/Face-Detection-and-Human-Tracking-Robot/issues/1#issuecomment-1202020704", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.***": "Organization", "name": "GitHub", "url": "https://github.com" } } ]