-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DCVCameraView styling support #29
Comments
Hello @chernandez-bunnings Currently, we don't support editing the style of For the requirements on |
Hello @Dynamsoft-Henry, Thank you for your prompt response. Could you please point me to the documentation of how to draw my own Because I was not able to change the look of it, I was using a similar approach of hiding the As an FYI, I tried multiple approaches for the This image shows the issue. For that screenshot I made the Regarding the overlay methods it would be nice to have them exposed in the RN SDK, but they are not necessary currently for my own use case, as I am not displaying the overlay when a barcode has been detected by the reader; but requirements may change and having that level of customisation may come handy, if not for me, perhaps other users? |
Hello @chernandez-bunnings The If you are using x, y, width and height to draw a scanRegion, you can use the following formula to calculate the coordinates: if viewHeight / viewWidth <= 1920 * 1080 if viewHeight / viewWidth > 1920 * 1080 We will add new APIs to support style settings and coordinate calculating in the future. Currently, please try the above solutions. |
Hello @Dynamsoft-Henry Thank you for sharing this. Unfortunately after implementing this transformation logic, the "regions" still won't align. The misalignment is not as bad as before, but still not a perfect match. I'm wondering if pixel ratio | screen densities | video resolution of devices may be the reason. I'm sharing screenshots of 3 different devices to illustrate the issue as the solution does not scale correctly. As well you will find the source code of this transformation logic.
both versions have the region set as
|
Thanks for reporting the issues. We have developed a sample that shows how to draw the scan region. Currently, it is uploaded to the scanRegionSample branch: https://github.com/Dynamsoft/capture-vision-react-native-samples/tree/scanRegionSample. The sample still need some test before handled. I think we can finish it tomorrow. For the issues on |
Hello @Dynamsoft-Henry Thank you for creating the sample. I tried the solution and I am sharing screenshots of three devices. The region alignment is still wrong in the sample app. In
|
There exists some bugs in the current version of dynamsoft-capture-vision-react-native package. We are debugging them and tending to release a new version today. |
We released a new version. "dynamsoft-capture-vision-react-native": "^1.1.8" Would you like to try the |
Hello @Dynamsoft-Henry, Thanks addressing the issues. I can confirm that I'm able to align the regions after updating the camera sdk to version I will be waiting to the future Cheers. |
Hello @chernandez-bunnings Good to know the new version works for you. Our plans for the new features are as follow:
|
Hello,
Please label this query accordingly, as I could only submit an issue.
I was wondering if there is way (maybe not documented yet) to style the scanRegion and overlay look. Currently I could not find any info in the documentation.
From the (web demo) I can see the reader has a different look, so bearing in mind the differences between the APIs, theoretically this could possible, but not supported yet?
So I am wondering if there is any chance to support this functionality? I would like to make scan region with a border radius, different border colour and a darker masking background.
The text was updated successfully, but these errors were encountered: